ECG-Based Heart Rate Variability and KNN Classification for Early Detection of Baby Blues Syndrome in Postpartum Mothers
DOI:
10.33395/sinkron.v9i4.14956Keywords:
Baby blues detection, Digital health, ECG analysis, Heart rate variability, KNN classification, Machine learning, Postpartum mental healthAbstract
Early detection of baby blues syndrome plays an important role in preventing postpartum emotional disturbances from developing into more serious mental health conditions. This study proposes a simple and non-invasive approach to identify early signs of baby blues in postpartum mothers by analyzing electrocardiogram (ECG) signals using the K-Nearest Neighbor (KNN) algorithm. The ECG data were gathered through wearable sensors and processed to extract heart rate variability (HRV) features such as RMSSD, SDNN, entropy, and energy. These features were then used to train and test a KNN classification model through a five-fold cross-validation process. KNN was chosen because it is easy to implement, does not assume any specific data pattern, and works well with small datasets like those commonly found in clinical settings. Its ability to group data based on similarity makes it suitable for recognizing subtle physiological changes linked to emotional stress. The model reached an accuracy of 87.5%, with strong precision and recall scores, showing its reliability in distinguishing mothers who show early symptoms of baby blues from those who do not. Among all features, RMSSD and SDNN had the highest impact, pointing to reduced parasympathetic activity in affected individuals. These findings suggest that combining HRV analysis with a straightforward machine learning approach like KNN offers a promising, low-cost solution for early emotional screening in maternal care, especially where resources are limited.
Downloads
References
Agrippina, S., & Yusuf, A. (2019). MFCC Feature Extraction and KNN Classification in ECG Signals. 2019 6th International Conference on Information Technology, Computer and Electrical Engineering (ICITACEE), 1–5.
Auchynnikava, V., Semeia, L., Sippel, K., Sbierski-Kind, J., Fritsche, A., Birkenfeld, A. L., Paluscke-Fröhlich, J., Wikström, A. K., & Preissl, H. (2025). Fetal heart rate variability in relation to maternal physical activity and metabolic health. Early Human Development, 206(May), 1–7. https://doi.org/10.1016/j.earlhumdev.2025.106272
Berglund, J. (2020). Treating Postpartum Depression: Beyond the Baby Blues. IEEE Pulse, 11(1), 17–20. https://doi.org/10.1109/MPULS.2020.2972723
Chechko, N., Stickel, S., & Votinov, M. (2023). Neural responses to monetary incentives in postpartum women affected by baby blues. Psychoneuroendocrinology, 148(November 2022), 105991. https://doi.org/10.1016/j.psyneuen.2022.105991
Egger, M., Ley, M., & Hanke, S. (2019). Emotion Recognition from Physiological Signal Analysis: A Review. Electronic Notes in Theoretical Computer Science, 343, 35–55. https://doi.org/10.1016/j.entcs.2019.04.009
Hamidi, A. A., Robertson, B., & Ilow, J. (2023). A new approach for ECG artifact detection using fine-KNN classification and wavelet scattering features in vital health applications. Procedia Computer Science, 224, 60–67. https://doi.org/10.1016/j.procs.2023.09.011
Infant Lincy, P. M., Santhi, D., & Geetha, A. (2020). A Proficient Evalution with the Pre-Term Birth Classification in ECG Signal using KNN. Proceedings of the 5th International Conference on Inventive Computation Technologies, ICICT 2020, 276–282. https://doi.org/10.1109/ICICT48043.2020.9112448
Li, Z., & Zhang, H. (2023). Fusing deep metric learning with KNN for 12-lead multi-labelled ECG classification. Biomedical Signal Processing and Control, 85(March 2022), 104849. https://doi.org/10.1016/j.bspc.2023.104849
Medapati, B., & Rajani Kumari, L. V. (2021). KNN based sleep apnea detection using ECG signals. 2021 2nd International Conference for Emerging Technology, INCET 2021, 1–5. https://doi.org/10.1109/INCET51464.2021.9456404
Mohebbanaaz, Padma Sai, Y., & Rajani Kumari, L. V. (2020). A Review on Arrhythmia Classification Using ECG Signals. 2020 IEEE International Students’ Conference on Electrical, Electronics and Computer Science, SCEECS 2020. https://doi.org/10.1109/SCEECS48394.2020.9
Moreira, M. W. L., Rodrigues, J. J. P. C., Kumar, N., Saleem, K., & Illin, I. V. (2019). Postpartum depression prediction through pregnancy data analysis for emotion-aware smart systems. Information Fusion, 47(June 2018), 23–31. https://doi.org/10.1016/j.inffus.2018.07.001
Myza Rifali, D. I. (2019). 3 Sistem Cerdas Deteksi Sinyal Elektrokardiogram (EKG) untuk Klasif Sistem Cer Sistem Cerdas Deteksi Siny das Deteksi Sinyal Elektr al Elektrokardiogram (EKG) untuk G) untuk.pdf (pp. 49–55). ELINVO (Electronics, Informatics, and Vocational Education). https://doi.org/10.21831/elinvo.v4i1.28242
Saini, I., Singh, D., & Khosla, A. (2013). Delineation of ECG wave components using K-nearest neighbor (KNN) algorithm: ECG wave delineation using KNN. Proceedings of the 2013 10th International Conference on Information Technology: New Generations, ITNG 2013, 712–717. https://doi.org/10.1109/ITNG.2013.76
Yilmaz, B., Arikan, E., & Asyali, M. H. (2010). Tek kanalli EKG kayitlarindan uyku evrelemesi yapilmasinda kNN ve kuadratik diskriminant analizi yöntemlerinin kullanilmasi. 2010 15th National Biomedical Engineering Meeting, BIYOMUT2010, 3–6. https://doi.org/10.1109/BIYOMUT.2010.5479833
Yudianti, N. N. (2020). Jurnal Penelitian Perawat Profesional Pencegahan Tetanus. British Medical Journal, 2(5474), 1333–1336.
Zhao, Y., Kane, I., Wang, J., Shen, B., Luo, J., & Shi, S. (2015). Combined use of the postpartum depression screening scale (PDSS) and Edinburgh postnatal depression scale (EPDS) to identify antenatal depression among Chinese pregnant women with obstetric complications. Psychiatry Research, 226(1), 113–119. https://doi.org/10.1016/j.psychres.2014.12.016
Downloads
How to Cite
Issue
Section
License
Copyright (c) 2025 Citra Dewi Megawati, salnan Ratih Asriningtias; Bima Romadhon Parada Dian, Teo Pei Kian; Bayu Sutawijaya, Ratna Diana Fransiska

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.