Open access Journal SINTA 3
CLASSIFICATION OF PRE-MARITAL SEX AMONG ADOLESCENTS USING COST-SENSITIVE WEIGHTED RANDOM FOREST ON IMBALANCED DATA
BAREKENG: Jurnal Ilmu Matematika dan Terapan · Vol. 20 No. 4 (2026) · pp. 2693–2710
- ISSN
- 2615-3017, 1978-7227
- Published
- 2026-08-24
- Publisher
- PATTIMURA UNIVERSITY
- Language
- eng
Abstract
Adolescents are a critical developmental phase characterized by significant physical, cognitive, and psychosocial changes, which increase vulnerability to risky behaviors, including premarital sexual activity. Such behavior may lead to serious consequences, such as unintended pregnancy, unsafe abortion, sexually transmitted infections, and HIV/AIDS. This study aims to classify premarital sexual behavior among adolescents using demographic, knowledge, and behavioral factors. The data were obtained from the 2019 Program Performance and Accountability Survey (SKAP), consisting of approximately 5,300 weighted adolescent respondents in East Java. The dataset exhibits extreme class imbalance, with only 0.3% of adolescents reporting premarital sexual behavior. To address this issue, three classification methods were applied: standard Random Forest (RF), Weighted Logistic Regression (WLR), and Cost-Sensitive Weighted Random Forest (CSWRF). Model performance was evaluated using 5-fold cross-validation and multiple metrics, including accuracy, sensitivity, specificity, precision, F1-score, G-Means, and Area Under the Curve (AUC). The results indicate that although the standard RF achieved very high accuracy (above 99%), it failed to identify the minority class, resulting in undefined specificity and poor discriminative ability (AUC ≈ 0.83). The WLR model improved classification balance, achieving reasonable specificity (0.8667) and AUC (0.9459), but produced more false positives. In contrast, the CSWRF model demonstrated the best overall performance, with high AUC values (above 0.95), improved specificity, and a better balance between sensitivity and specificity, indicating its effectiveness in handling highly imbalanced data. Variable importance analysis using Mean Decrease Accuracy (MDA) identified Knowledge of Adolescent Reproductive Health (ARH), residence type, and behavioral factors such as dating experience as the most influential predictors. Despite these findings, this study is limited by potential underreporting bias and exclusion of socio-cultural and psychological variables. Future research should incorporate additional predictors and explore advanced modeling approaches to improve classification performance.
Collaboration network of the authors
21 authors · 81 co-authorship links · 43 across different organisations
Hover or tap a name to highlight its co-authors. Double-click to open the author's page.
- State University of Jakarta
- IPB University
- Badan Pusat Statistik
- State University of Semarang
- Al-Azhar University
- Politeknik Statistika STIS
- Institut Agama Islam Negeri Pontianak
- Different organisations
- Same organisation
- Affiliation unknown
- Thicker line = more joint articles · bigger circle = more articles
Show as table
| Co-author | Organisation | Joint articles |
|---|---|---|
| Irman Firmansyah | IPB University | 5 |
| Kadir Kadir | Badan Pusat Statistik | 3 |
| Dena Safariza | State University of Jakarta | 3 |
| Munawar Asikin | Al-Azhar University | 3 |
| Danu Umbara | State University of Jakarta | 3 |
| Rizky Hilmianto | State University of Jakarta | 3 |
| Robert Kurniawan | Politeknik Statistika STIS | 3 |
| Asep Anwar Nugraha | IPB University | 2 |
| Mulyono Mulyono | State University of Semarang | 2 |
| Felia Aidah Nuriza | Badan Pusat Statistik | 2 |
| Aulia Baihaqi | State University of Jakarta | 1 |
| Vera Maya Santi | State University of Jakarta | 1 |
| Muhammad Rifaldi | Institut Agama Islam Negeri Pontianak | 1 |
| Muhammad Zid | State University of Jakarta | 1 |
Affiliations come from OpenAlex; journal OAI-PMH metadata carries none. Authors without an OpenAlex ID are matched by name, which can merge or split people.