Claim Missing Document
Check
Articles

Found 2 Documents
Search

NPC Braking Decision for Unity Racing Game Starter Kit Using Naïve Bayes Muhammad Aminul Akbar; Tri Afirianto; Steven Willy Sanjaya; Ratih Kartika Dewi
Fountain of Informatics Journal Vol 4, No 2 (2019): November
Publisher : Universitas Darussalam Gontor

Show Abstract | Download Original | Original Source | Check in Google Scholar | DOI: 10.21111/fij.v4i2.3591

Abstract

AbstractRacing video game genre was still being popular today. One way to develop racing games quickly is by using a template or kit that is on the game engine. Racing Game Starter Kit (RGSK) was being the most popular racing game template for Unity game engine. However, there was problem in racing game’s NPC especially in RGSK related to NPC vehicle’s braking decision. The commonly used method is the Brake Zone, but the developers must manually place the zone themselves in the designated locations for braking. The solution that can be applied for that problem is see the angle formed by the vector of the NPC vehicle with the vector from 2 next following waypoint then determine the best configuration angle threshold for NPC braking, but this also has its shortcoming in which to get the best result, a proper threshold configuration is needed in each track. To resolve the problem, researcher proposed the method of machine learning, Naïve Bayes for the braking decision. Naïve Bayes uses two output classes (brake or no brake) in which the data will be obtained from the player. We use data from players who can control racing car games well or have never hit a wall and have fast lap times. The purpose of this study is to provide an alternative braking method to RGSK that can provide fast lap times but does not affect the game's FPS and without the need to determine or change any parameters on each track. The test result using RGSK v1.1.0a in Unity Game Engine showed that the proposed method can be an alternative method in RGSK braking decisions. Our NPC has faster lap time and was able to prevent the vehicle from crashing with the outer wall without dropping the game’s FPS (Frames per Second).Keywords: Braking Decision, Racing Game Starter Kit, Naïve Bayes, Machine learning, Unity engine AbstrakGenre video gim balap masih populer saat ini. Salah satu cara untuk mengembangkan game balap dengan cepat adalah menggunakan template atau kit yang ada di game engine. Racing Game Starter Kit (RGSK) adalah templat game balap paling populer pada Unity Game Engine. Namun, terdapat permasalahan NPC pada gim balapan terutama di RGSK terkait dengan keputusan pengereman kendaraan NPC. Metode yang digunakan untuk eksperimen jenis ini adalah Zona Rem. Namun, pengembang harus secara manual menempatkan zona tersebut di lokasi tertentu pada setiap lintasan. Solusi dari masalah ini yang sudah diterapkan pada RGSK v1.1.0a yaitu dapat menggunakan sudut yang dibentuk oleh vektor kendaraan NPC dengan vektor dari 2 titik arah berikutnya, kemudian menentukan ambang sudut terbaik untuk pengereman NPC, tetapi ini juga memiliki masalah yaitu untuk mendapatkan hasil putaran terbaik atau cepat, perlu menentukan konfigurasi ambang batas yang tepat di setiap trek. Untuk mengatasi masalah tersebut, peneliti mengusulkan metode pembelajaran mesin, Naïve Bayes untuk keputusan pengereman. Naïve Bayes menggunakan dua kelas output (rem atau tidak ada mengerem) di mana data akan diperoleh dari pemain. Kami menggunakan data dari pemain yang dapat mengontrol permainan mobil balap dengan baik atau tidak pernah menabrak tembok dan memiliki waktu putaran yang cepat. Tujuan dari penelitian ini adalah untuk memberikan metode pengereman alternatif untuk RGSK yang dapat memberikan waktu putaran yang cepat namun tidak mempengaruhi FPS game dan tanpa perlu menentukan atau mengubah parameter apa pun di setiap trek. Hasil pengujian menggunakan RGSK v1.1.0a di Unity Game Engine menunjukkan bahwa metode yang diusulkan dapat menjadi metode alternatif dalam keputusan pengereman RGSK. NPC kami mempunyai waktu putaran yang lebih cepat dan mampu mencegah kendaraan agar tidak menabrak dinding luar tanpa menjatuhkan FPS game (Frame per Detik).Kata kunci: Keputusan Pengereman, Racing Game Starter Kit, Naïve Bayes, Pembelajaran Mesin, Unity Engine
Naive Bayes Analysis for Nutritional Fulfillment Prediction in Children Satrio Agung Wicaksono; Satrio Hadi Wijoyo; Fatmawati Fatmawati; Tri Afirianto; Diva Kurnianingtyas; Mochammad Chandra Saputra
Journal of Applied Engineering and Technological Science (JAETS) Vol. 6 No. 2 (2025): Journal of Applied Engineering and Technological Science (JAETS)
Publisher : Yayasan Riset dan Pengembangan Intelektual (YRPI)

Show Abstract | Download Original | Original Source | Check in Google Scholar | DOI: 10.37385/jaets.v6i2.6105

Abstract

Stunting in children remains a significant global health challenge, particularly in low- and middle-income countries. Addressing this issue requires an effective approach to predicting and preventing inadequate nutritional fulfillment. This study uses the Naïve Bayes approach to forecast nutritional needs for children's growth and development, providing practical information for stunting prevention efforts. The data used were sourced from 174 infant and toddler examinations at the Puskesmas Lawang, involving eight key attributes: gender, age, weight, height, head circumference, pre-screening, vision tests, and nutritional status. Key performance metrics were evaluated to validate the model's predictive capabilities, including accuracy, precision, recall, and F1-score. Six test scenarios were conducted using different percentages of training data (90%, 80%, 70%, 60%, 50%, and 40%) to evaluate the reliability of the Naïve Bayes method. Results indicated that the highest accuracy of 78.84% was achieved in the sixth test scenario. The third test scenario produced the highest precision at 97.5%, while the highest recall (100%) was observed in the first three scenarios. The highest F-measure of 90.3% occurred in the fourth scenario. These results suggest the algorithm's potential for early detection to decrease the number of stunting children. The study’s implications are twofold: practically, the model can be integrated into health monitoring systems to assist healthcare professionals and policymakers in designing more effective nutrition programs; theoretically, it highlights the adaptability of Naive Bayes for handling complex, multi-dimensional health data.