Enhancing Clinical Sentiment Analysis with a Novel Stochastic Model Based on Brownian Motion

Authors

  • Maria El-Badaoui Lasti Laboratory, National School of Applied Sciences, Sultan Moulay Slimane University, Khouribga, Morocco
  • Noreddine Gherabi Lasti Laboratory, National School of Applied Sciences, Sultan Moulay Slimane University, Khouribga, Morocco
  • Fatima Qanouni Lasti Laboratory, National School of Applied Sciences, Sultan Moulay Slimane University, Khouribga, Morocco
Volume: 15 | Issue: 6 | Pages: 28898-28905 | December 2025 | https://doi.org/10.48084/etasr.13609

Abstract

Depression profoundly affects emotional states, behaviors, and overall quality of life. In the digital era, patients increasingly share their experiences through online comments, offering valuable yet complex emotional narratives. However, traditional sentiment analysis methods, which often assign a single emotional label to an entire text, fail to capture the nuanced intra-comment emotional fluctuations, overlooking the evolving and sometimes contradictory nature of emotional expression. This study introduces a novel sentiment analysis framework that models intra-comment emotional flow as a Brownian-like trajectory. Inspired by the random motion of particles in physics, the proposed method treats each sentence as a time step and assigns it a sentiment polarity score. The cumulative sequence of these scores constructs an emotional curve that reflects the dynamic affective progression throughout the comment, effectively simulating a Brownian path. From these trajectories, quantitative indicators—including drift, variance, -signal changes, trajectory length ( ), maximum emotional level ( ), minimum emotional level ( ), and amplitude — are extracted, providing a detailed and structured understanding of emotional instability. To uncover patterns across comments, the K-Means clustering algorithm is applied, enabling the automatic grouping of comments with similar emotional dynamics. In addition, Principal Component Analysis (PCA) is used to reduce dimensionality and facilitate the visualization and interpretation of emotional profiles. The proposed approach is applied to a corpus of comments from depressed patients to identify characteristic emotional patterns and examine differences according to the type of treatment. This work highlights the relevance of stochastic modeling for advancing sentiment analysis in complex psychological contexts and offers a tool to support remote monitoring, personalized interventions, and early detection of emotional relapse.

Keywords:

sentiment analysis, Brownian motion model, emotional trajectories, K-means

Downloads

Download data is not yet available.

References

L. Breiman, "Random Forests," Machine Learning, vol. 45, no. 1, pp. 5–32, Oct. 2001. DOI: https://doi.org/10.1023/A:1010933404324

C. Cortes and V. Vapnik, "Support-vector networks," Machine Learning, vol. 20, no. 3, pp. 273–297, Sep. 1995. DOI: https://doi.org/10.1023/A:1022627411411

S. Hochreiter and J. Schmidhuber, "Long Short-Term Memory," Neural Computation, vol. 9, no. 8, pp. 1735–1780, Nov. 1997. DOI: https://doi.org/10.1162/neco.1997.9.8.1735

K. D. S. Devi, V. Sireesha, C. Sudha, M. Ravisankar, and P. D. K. Reddy, "A Novel Approach to Sentiment Analysis using GMM-Enhanced N-gram LSTM Networks," Engineering, Technology & Applied Science Research, vol. 15, no. 3, pp. 23068–23073, Jun. 2025. DOI: https://doi.org/10.48084/etasr.10640

M. El-Badaoui, N. Gherabi, F. Quanouni, and M. Amnai, "A Novel Ontology-Based Approach for Analyzing Patient Sentiment Regarding Chronic Diseases," International Journal of Online and Biomedical Engineering (iJOE), vol. 21, no. 08, pp. 155–170, Jun. 2025. DOI: https://doi.org/10.3991/ijoe.v21i08.53767

Z. Sabouri, N. Gherabi, M. Nasri, M. Amnai, H. El Massari, and I. Moustati, "Prediction of Depression via Supervised Learning Models: Performance Comparison and Analysis," International Journal of Online and Biomedical Engineering (iJOE), vol. 19, no. 09, pp. 93–107, Jul. 2023. DOI: https://doi.org/10.3991/ijoe.v19i09.39823

Y. Madani, M. Erritali, J. Bengourram, and F. Sailhan, "A multilingual fuzzy approach for classifying Twitter data using fuzzy logic and semantic similarity," Neural Computing and Applications, vol. 32, no. 12, pp. 8655–8673, Jun. 2020. DOI: https://doi.org/10.1007/s00521-019-04357-9

Z. Putri, S. Sugiyarto, and S. Salafudin, "Sentiment analysis using fuzzy naïve bayes classifier on covid-19," Desimal: Jurnal Matematika, vol. 4, no. 2, pp. 193–202, Jul. 2021.

T. Nijhawan, G. Attigeri, and T. Ananthakrishna, "Stress detection using natural language processing and machine learning over social interactions," Journal of Big Data, vol. 9, no. 1, Dec. 2022, Art. no. 33. DOI: https://doi.org/10.1186/s40537-022-00575-6

A. Balakrishnan, S. M. Idicula, and J. Jones, "Deep learning based analysis of sentiment dynamics in online cancer community forums: An experience," Health Informatics Journal, vol. 27, no. 2, Apr. 2021, Art. no. 14604582211007537. DOI: https://doi.org/10.1177/14604582211007537

D. C. Edara, L. P. Vanukuri, V. Sistla, and V. K. K. Kolli, "Sentiment analysis and text categorization of cancer medical records with LSTM," Journal of Ambient Intelligence and Humanized Computing, vol. 14, no. 5, pp. 5309–5325, May 2023. DOI: https://doi.org/10.1007/s12652-019-01399-8

H. Imaduddin, F. Y. A’la, and Y. S. Nugroho, "Sentiment Analysis in Indonesian Healthcare Applications using IndoBERT Approach," International Journal of Advanced Computer Science and Applications, vol. 14, no. 8, 2023. DOI: https://doi.org/10.14569/IJACSA.2023.0140813

E. R. Kumar and K. V. S. N. Rama, "Sentiment Analysis using Social and Topic Context for Suicide Prediction," International Journal of Advanced Computer Science and Applications, vol. 12, no. 2, 2021. DOI: https://doi.org/10.14569/IJACSA.2021.0120249

S. D. Patravali and S. P. Algur, "COVID-19 Sentiment Analysis using K-Means and DBSCAN," International Journal of Emerging Science and Engineering, vol. 11, no. 12, pp. 12–17, Nov. 2023. DOI: https://doi.org/10.35940/ijese.L2558.11111223

O. Iparraguirre-Villanueva, V. Guevara-Ponce, F. Sierra-Linan, S. Beltozar-Clemente, and M. Cabanillas-Carbonell, "Sentiment Analysis of Tweets using Unsupervised Learning Techniques and the K-Means Algorithm," International Journal of Advanced Computer Science and Applications, vol. 13, no. 6, 2022. DOI: https://doi.org/10.14569/IJACSA.2022.0130669

A. Kumar and S. Shekhar, "Hybrid model of unsupervised and supervised learning for multiclass sentiment analysis based on users’ reviews on healthcare web forums," Journal of Autonomous Intelligence, vol. 7, no. 4, Jan. 2024. DOI: https://doi.org/10.32629/jai.v7i4.971

P. Jain, K. Ram Srinivas, and A. Vichare, "Depression and Suicide Analysis Using Machine Learning and NLP," Journal of Physics: Conference Series, vol. 2161, no. 1, Jan. 2022, Art. no. 012034. DOI: https://doi.org/10.1088/1742-6596/2161/1/012034

N. Wiener, "Differential‐space," Journal of Mathematics and Physics, vol. 2, no. 1–4, pp. 131–174, 1923. DOI: https://doi.org/10.1002/sapm192321131

S. Lloyd, "Least squares quantization in PCM," IEEE Transactions on Information Theory, vol. 28, no. 2, pp. 129–137, Mar. 1982. DOI: https://doi.org/10.1109/TIT.1982.1056489

"Mariabadaoui/Depression_DataSet." Sep. 05, 2025, [Online]. Available: https://github.com/Mariabadaoui/Depression_DataSet.

Downloads

How to Cite

[1]
M. El-Badaoui, N. Gherabi, and F. Qanouni, “Enhancing Clinical Sentiment Analysis with a Novel Stochastic Model Based on Brownian Motion”, Eng. Technol. Appl. Sci. Res., vol. 15, no. 6, pp. 28898–28905, Dec. 2025.

Metrics

Abstract Views: 207
PDF Downloads: 186

Metrics Information