Open access Jurnal 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
19 authors · 78 co-authorship links
Hover or tap a name to highlight its co-authors. Double-click to open the author's page.
- Jenderal Soedirman University
- Affiliation unknown
- 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 | Jenderal Soedirman University | 5 |
| Kadir Kadir | Affiliation unknown | 3 |
| Dena Safariza | Affiliation unknown | 3 |
| Munawar Asikin | Affiliation unknown | 3 |
| Danu Umbara | Affiliation unknown | 3 |
| Rizky Hilmianto | Affiliation unknown | 3 |
| Robert Kurniawan | Affiliation unknown | 3 |
| Asep Anwar Nugraha | Affiliation unknown | 2 |
| Mulyono Mulyono | Affiliation unknown | 2 |
| Felia Aidah Nuriza | Affiliation unknown | 2 |
| Vera Maya Santi | Affiliation unknown | 1 |
| Aulia Baihaqi | Affiliation unknown | 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.