Publishing Journal • Journal Of Computer Science And Technology (JOCSTEC)

Application Of Mamdani's Fuzzy Logic In Modeling The Prediction Of Drug Abuse Levels In Padang City

DOI: 10.59435/jocstec.v4i3.810 Published: 28 September 2026 Pages: 41-55 (Vol. 4, No. 3) Views: 1
Authors & Researchers
C
Cindy Yunaldi Universitas Nahdlatul Ulama Sumatera Barat1
Y
Yusli Yenni Universitas Nahdlatul Ulama Sumatera Barat2

Abstract

Drug abuse is a problem that can be influenced by various interrelated factors. This study aims to apply Mamdani Fuzzy logic in predicting the level of drug abuse in Padang City based on several factors obtained from documentation and interviews. The input variables used consist of the Age of the Perpetrator, Environment, Socializing, Gender, and Family, while the output variable is the Level of Drug Abuse with Low and High categories. The research stages include data collection, determining variables and fuzzy sets, fuzzification, forming if-then rules, inference using the minimum operator, composition using the maximum operator, and defuzzification using the centroid method. A total of 64 fuzzy rules are used to connect the combination of input variables with the output. Testing is done through manual calculations and implementation using MATLAB. The test results show that the output categories from manual calculations and MATLAB are the same in three test data, namely High, High, and Low. These results indicate that the Mamdani Fuzzy method can be used in modeling the level of drug abuse based on the variables used.

Indexing Journal

Journal Of Computer Science And Technology (JOCSTEC) Cover

Journal Of Computer Science And Technology (JOCSTEC)

ISSN: 2985-4318 Publisher: PT. Padang Tekno Corp