A Symptom-Aware Framework for Postpartum Depression Risk Detection Across Heterogeneous Textual Data

Authors

DOI:

https://doi.org/10.21015/vtse.v14i3.2645

Abstract

Postpartum depression (PPD) is a significant maternal mental health condition that can adversely affect maternal well-being, mother–infant bonding, and infant development, highlighting the importance of early risk detection. Although natural language processing (NLP) enables automated analysis of depression-related textual data, many approaches rely on single-domain learning and provide limited evaluation across heterogeneous textual environments. This study proposes the Clinical-Linguistic Symptom-Aware Postpartum Depression framework (CLiSA-PPD), integrating contextual representations from DistilRoBERTa with clinically guided linguistic features capturing anxiety, sadness, sleep disturbance, maternal distress, social isolation, and self-harm risk. An attention-guided fusion mechanism combines contextual and symptom-aware representations for PPD risk classification. The framework is evaluated using a PPD questionnaire dataset converted into narrative-style text and an external depression-related Reddit dataset. Comparative evaluation against Logistic Regression, Linear Support Vector Machine, Bidirectional Long Short-Term Memory, and DistilRoBERTa demonstrates competitive transformer-level performance. CLiSA-PPD achieves an accuracy of 0.9304, recall of 0.9859, F1-score of 0.9567, Matthews Correlation Coefficient of 0.7896, and Brier Score of 0.0562, indicating strong sensitivity and low probabilistic prediction error. Cross-domain evaluation reveals sensitivity to domain and class-distribution shifts, highlighting limitations in discrimination across heterogeneous textual environments. Ablation, explainability, calibration, statistical significance, and robustness analyses assess the contribution, reliability, and interpretability of the proposed framework.

References

[1] Y. Nakamura, T. Ueno, N. Takahashi, D. Ichikawa, A. Yamauchi, and N. Ozaki, "Early identification of postpartum depression using machine learning," Psychiatry Clin. Neurosci., vol. 78, no. 6, pp. 372–373, Jun. 2024, doi: 10.1111/pcn.13659. DOI: https://doi.org/10.1111/pcn.13659

[2] X. Huang, L. Zhang, C. Zhang, J. Li, and C. Li, "Postpartum depression risk prediction using explainable machine learning algorithms," Front. Med. (Lausanne), vol. 12, p. 1565374, Aug. 2025, doi: 10.3389/fmed.2025.1565374. DOI: https://doi.org/10.3389/fmed.2025.1565374

[3] R. Zhang, Y. Liu, Z. Zhang, R. Luo, and B. Lv, "Interpretable machine learning model for predicting postpartum depression: Retrospective study," JMIR Med. Inform., vol. 13, no. 1, p. e58649, Jan. 2025, doi: 10.2196/58649. DOI: https://doi.org/10.2196/58649

[4] Y. Wang et al., "Trajectory on postpartum depression of Chinese women and the risk prediction models: A machine-learning based three-wave follow-up research," J. Affect. Disord., vol. 365, pp. 185–192, Nov. 2024, doi: 10.1016/j.jad.2024.08.074. DOI: https://doi.org/10.1016/j.jad.2024.08.074

[5] S. Lin et al., "Development and validation of an interpretable machine learning model and online web-based calculator based on social-ecosystem theory for early prediction of postpartum depression: A longitudinal study," Front. Public Health, vol. 13, p. 1685305, Oct. 2025, doi: 10.3389/fpubh.2025.1685305. DOI: https://doi.org/10.3389/fpubh.2025.1685305

[6] W. Qi et al., "Prediction of postpartum depression in women: Development and validation of multiple machine learning models," J. Transl. Med., vol. 23, no. 1, p. 291, Mar. 2025, doi: 10.1186/s12967-025-06289-6. DOI: https://doi.org/10.1186/s12967-025-06289-6

[7] L. Sibbald et al., "Identifying prenatal risk factors of postpartum depression with machine learning," Sci. Rep., vol. 15, no. 1, p. 34610, Oct. 2025, doi: 10.1038/s41598-025-18204-6. DOI: https://doi.org/10.1038/s41598-025-18204-6

[8] K. Matsumura, K. Hamazaki, H. Kasamatsu, A. Tsuchida, and H. Inadera, "Decision tree learning for predicting chronic postpartum depression in the Japan Environment and Children's Study," J. Affect. Disord., vol. 369, no. 5, pp. 643–652, Jan. 2025, doi: 10.1016/j.jad.2024.10.034. DOI: https://doi.org/10.1016/j.jad.2024.10.034

[9] A. Gopalakrishnan et al., "Attribute selection hybrid network model for risk factors analysis of postpartum depression using social media," Brain Inform., vol. 10, no. 1, p. 28, Oct. 2023, doi: 10.1186/s40708-023-00206-7. DOI: https://doi.org/10.1186/s40708-023-00206-7

[10] Y. Liu et al., "Preparing for the bedside—Optimizing a postpartum depression risk prediction model for clinical implementation in a health system," J. Am. Med. Inform. Assoc., vol. 31, no. 6, pp. 1258–1267, Jun. 2024, doi: 10.1093/jamia/ocae056. DOI: https://doi.org/10.1093/jamia/ocae056

[11] D. Shin, K. J. Lee, T. Adeluwa, and J. Hur, "Machine learning-based predictive modeling of postpartum depression," J. Clin. Med., vol. 9, no. 9, pp. 1–14, Sep. 2020, doi: 10.3390/jcm9092899. DOI: https://doi.org/10.3390/jcm9092899

[12] Z. Ma, M. Horvath, D. M. Stamilio, K. Sekyere, and M. N. Gurcan, "Building a machine learning model to predict postpartum depression from electronic health records in a tertiary care setting," J. Clin. Med., vol. 14, no. 18, Sep. 2025, doi: 10.3390/jcm14186644. DOI: https://doi.org/10.3390/jcm14186644

[13] G. Amit et al., "Estimation of postpartum depression risk from electronic health records using machine learning," BMC Pregnancy Childbirth, vol. 21, no. 1, p. 630, Sep. 2021, doi: 10.1186/s12884-021-04087-8. DOI: https://doi.org/10.1186/s12884-021-04087-8

[14] G. Advaith, V. Dhinesh, B. Akshaya, and R. Kingsy Grace, "Postpartum depression prediction using machine learning models with chatbot assistance," in 2025 17th IEEE Int. Conf. Comput. Intell. Commun. Netw. (CICN), 2025, pp. 611–616, doi: 10.1109/CICN67655.2025.11368322. DOI: https://doi.org/10.1109/CICN67655.2025.11368322

[15] Y. Zhang, S. Wang, A. Hermann, R. Joly, and J. Pathak, "Development and validation of a machine learning algorithm for predicting the risk of postpartum depression among pregnant women," J. Affect. Disord., vol. 279, no. 2, pp. 1–8, Jan. 2021, doi: 10.1016/j.jad.2020.09.113. DOI: https://doi.org/10.1016/j.jad.2020.09.113

[16] S. Andersson, D. R. Bathula, S. I. Iliadis, M. Walter, and A. Skalkidou, "Predicting women with depressive symptoms postpartum with machine learning methods," Sci. Rep., vol. 11, no. 1, p. 7877, Apr. 2021, doi: 10.1038/s41598-021-86368-y. DOI: https://doi.org/10.1038/s41598-021-86368-y

[17] W. Zhang, H. Liu, V. M. B. Silenzio, P. Qiu, and W. Gong, "Machine learning models for the prediction of postpartum depression: Application and comparison based on a cohort study," JMIR Med. Inform., vol. 8, no. 4, Apr. 2020, doi: 10.2196/15516. DOI: https://doi.org/10.2196/15516

[18] U. K. Lilhore et al., "Prevalence and risk factors analysis of postpartum depression at early stage using hybrid deep learning model," Sci. Rep., vol. 14, no. 1, p. 4533, Feb. 2024, doi: 10.1038/s41598-024-54927-8. DOI: https://doi.org/10.1038/s41598-024-54927-8

[19] Y. Lin and D. Zhou, "A method for predicting postpartum depression via an ensemble neural network model," Front. Public Health, vol. 13, 2025, doi: 10.3389/fpubh.2025.1571522. DOI: https://doi.org/10.3389/fpubh.2025.1571522

[20] J. M. Reps, M. Wilcox, B. A. McGee, M. Leonte, L. LaCross, and K. Wildenhaus, "Development of multivariable models to predict perinatal depression before and after delivery using patient reported survey responses at weeks 4–10 of pregnancy," BMC Pregnancy Childbirth, vol. 22, no. 1, Dec. 2022, doi: 10.1186/s12884-022-04741-9. DOI: https://doi.org/10.1186/s12884-022-04741-9

[21] M. Alkhateeb, A. Nayeem, A. Ahmed, M. Alsahli, J. Sheikh, and A. Abd-Alrazaq, "AI for detecting and predicting postpartum depression: Scoping review," J. Med. Internet Res., vol. 28, no. 1, p. e77376, Jan. 2026, doi: 10.2196/77376. DOI: https://doi.org/10.2196/77376

[22] H. C. Soong, R. K. Ayyasamy, and R. Akbar, "A review towards deep learning for sentiment analysis," in Proc. Int. Conf. Comput. Inf. Sci. (ICCOINS), 2021, pp. 238–243, doi: 10.1109/ICCOINS49721.2021.9497233. DOI: https://doi.org/10.1109/ICCOINS49721.2021.9497233

[23] A. D'Agostino et al., "Optimal risk and diagnosis assessment strategies in perinatal depression: A machine learning approach from the life-ON study cohort," Psychiatry Res., vol. 332, Feb. 2024, doi: 10.1016/j.psychres.2023.115687. DOI: https://doi.org/10.1016/j.psychres.2023.115687

[24] S. Wang, R. Xu, G. Li, S. Liu, J. Zhu, and P. Gao, "A plasma proteomics-based model for identifying the risk of postpartum depression using machine learning," J. Proteome Res., vol. 24, no. 2, pp. 824–833, Feb. 2025, doi: 10.1021/acs.jproteome.4c00826. DOI: https://doi.org/10.1021/acs.jproteome.4c00826

[25] H. Liu et al., "An optimization for postpartum depression risk assessment and preventive intervention strategy based machine learning approaches," J. Affect. Disord., vol. 328, pp. 163–174, May 2023, doi: 10.1016/j.jad.2023.02.028. DOI: https://doi.org/10.1016/j.jad.2023.02.028

[26] H. Kim, "Predictive analysis of postpartum depression using machine learning," Healthcare, vol. 13, no. 8, Apr. 2025, doi: 10.3390/healthcare13080897. DOI: https://doi.org/10.3390/healthcare13080897

[27] S. García-Méndez and F. de Arriba-Pérez, "Detecting and explaining postpartum depression in real-time with generative artificial intelligence," Appl. Artif. Intell., vol. 39, no. 1, p. 2515063, Dec. 2025, doi: 10.1080/08839514.2025.2515063. DOI: https://doi.org/10.1080/08839514.2025.2515063

[28] E. Hurwitz et al., "Harnessing consumer wearable digital biomarkers for individualized recognition of postpartum depression using the All of Us Research Program data set: Cross-sectional study," JMIR Mhealth Uhealth, vol. 12, no. 1, p. e54622, May 2024, doi: 10.2196/54622. DOI: https://doi.org/10.2196/54622

[29] D. Kumar et al., "Natural language processing in healthcare: From unstructured data to clinical intelligence," Intell. Syst. Appl., vol. 31, p. 200698, Sep. 2026, doi: 10.1016/J.ISWA.2026.200698.

[30] K. Saqib, A. F. Khan, and Z. A. Butt, "Machine learning methods for predicting postpartum depression: Scoping review," JMIR Ment. Health, vol. 8, no. 11, p. e29838, Nov. 2021, doi: 10.2196/29838. DOI: https://doi.org/10.2196/29838

[31] D. Suganthi and A. Geetha, "Predicting postpartum depression with aid of social media texts using optimized machine learning model," Int. J. Intell. Eng. Syst., vol. 17, no. 3, pp. 417–427, 2024, doi: 10.22266/IJIES2024.0630.33. DOI: https://doi.org/10.22266/ijies2024.0630.33

[32] A. A. Adeniran, A. P. Onebunne, and P. William, "Explainable AI (XAI) in healthcare: Enhancing trust and transparency in critical decision-making," World J. Adv. Res. Rev., vol. 23, no. 3, pp. 2447–2658, Sep. 2024, doi: 10.30574/WJARR.2024.23.3.2936. DOI: https://doi.org/10.30574/wjarr.2024.23.3.2936

[33] A. U. Rehman, A. Iqbal, A. Sayyed, Z. Aslam, M. I. Mohmand, and G. Husnain, "Explainable text-based depression and suicide risk prediction from social media using deep learning and graph neural networks," Healthcare, vol. 14, no. 11, p. 1440, Jun. 2026, doi: 10.3390/HEALTHCARE14111440.

[34] MD Parvez Mosaraf, "PostPartum Depression." Accessed: May 09, 2026. [Online]. Available: https://doi.org/10.34740/kaggle/ds/2830731

[35] "Depression: Reddit Dataset (Cleaned)." Accessed: May 09, 2026. [Online]. Available: https://www.kaggle.com/datasets/infamouscoder/depression-reddit-cleaned/data

[36] H. C. Soong, N. B. A. Jalil, R. Kumar Ayyasamy, and R. Akbar, "The essential of sentiment analysis and opinion mining in social media: Introduction and survey of the recent approaches and techniques," in Proc. IEEE Symp. Comput. Appl. Ind. Electron. (ISCAIE), 2019, pp. 272–277, doi: 10.1109/ISCAIE.2019.8743799. DOI: https://doi.org/10.1109/ISCAIE.2019.8743799

[37] Y. Park et al., "Comparison of methods to reduce bias from clinical prediction models of postpartum depression," JAMA Netw. Open, vol. 4, no. 4, pp. e213909–e213909, Apr. 2021, doi: 10.1001/JAMANETWORKOPEN.2021.3909. DOI: https://doi.org/10.1001/jamanetworkopen.2021.3909

Downloads

Published

2026-09-30

How to Cite

Talpur, M. A. K., Ayyasamy, R. K., Nadeem, M. W., Tahayna, B., Ponnusamy, C., Masilamani, R., & Rehman, M. (2026). A Symptom-Aware Framework for Postpartum Depression Risk Detection Across Heterogeneous Textual Data. VFAST Transactions on Software Engineering, 14(3), 610–627. https://doi.org/10.21015/vtse.v14i3.2645