Submitted:
06 August 2024
Posted:
07 August 2024
You are already at the latest version
Abstract
Keywords:
1. Introduction
2. Literature Review
3. Methodology
3.1. The BioVid Heat Pain Database (BVDB)
3.2. Preprocessing
3.3. Feature Extraction
- Maximum of the signal
- Minimum of the signal
- Mean value of the signal
- Standard deviation of the signal
- Variance of the signal
- Root Mean Square of the signal (RMS)
- Peak-to-Peak (maximum of the signal - minimum of the signal)
- Skewness of the signal
- Kurtosis of the signal
- Mean value of the first difference
- Mean absolute value of the first difference
- Mean absolute value of the second difference
3.4. ML Pain Recognition Model Design
3.4.1. ML Based Pain Recognition Model with and without Mixup
- Physiological signals are captured from the subjects, following the methodology outlined in Section 3.1 utilizing the BioVid heat pain database.
- EDA is preprocessed and further decomposed into EDA cleaned, EDA phasic, and EDA tonic. The model is designed by making use of EDA signal only aligning with the findings of [11] given its efficiency and success in pain detection.
- From each signal, twelve statistical features are extracted, resulting in thirty-six features.
- In the case of an ML model without mixup, the thirty-six features extracted using the above step are used to train a conventional machine learning classifier. In our study, a support vector machine(SVM) is used which then categorizes the data into either pain or no-pain states.
- On the other hand, for ML model with mixup the features extracted using step 3 are augmented linearly using mixup [7] where two random samples of extracted features and their corresponding labels are selected and interpolated using equations (1) and (2) where (,) and (, ) are two samples drawn at random from the extracted features as mentioned in [7] and . This augmentation is called mixup, we get a new sample and corresponding label.
- This augmented data and the original features are then used to train the support vector machine model which categorizes the data into pain and no-pain states. Mixup is applied iteratively within a loop to ensure that all data samples are covered.
4. Results
4.1. Leave One Subject Out Cross Validation (LOSOCV)
4.2. Wilcoxon Signed Rank Test
- The null (h0) and alternate (h1) hypothesis are determined. Null Hypothesis (ho): The median difference between the paired samples is zero, or there is no difference between the two related populations. Alternate Hypothesis (h1): The median difference between the paired samples is not zero, indicating a difference between the two related populations.
- A difference (D) is calculated between each pair of observations.
- The pairs with zero differences are discarded.
- We find out the absolute differences and assign ranks to them starting from the lowest to the highest.
- The Sum of ranks for positive and negative differences are calculated separately.
- The smaller sum of ranks(W) is used as the test statistic.
- Obtained value W is compared with the critical value from the Wilcoxon signed-rank distribution table or the p-value is calculated.
4.3. Confusion Matrix
- True Positive (TP): Number of events correctly predicted as "pain" by the ML model.
- True Negative (TN): Number of events correctly predicted as "no pain" by the ML model.
- False Positive (FP): It is the total count of events predicted as "pain" by the ML model when the actual value is "no pain".
- False Negative (FN): It is the total count of events predicted as "no pain" by the model when the actual value is "pain".
4.4. ROC Curve
5. Conclusions and Future Work
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
Abbreviations
| AI | Artificial Intelligence |
| ML | Machine Learning |
| DL | Deep Learning |
| EDA | Electrodermal Activity |
| GSR | Galvanic Skin Response |
| ECG | Electrocardiogram |
| EMG | Electromyography |
| EEG | Electroencephalogram |
| PPG | Photoplethysmography |
| SVM | Support Vector Machine |
| RVC | Random Forest Classifier |
| DBN | Deep Belief Networks |
| NLP | Natural Language Processing |
| BVDB | BioVid Heat Pain Database |
| SCL | Skin Conductance Level |
| RMS | Root Mean Square |
| LOSOCV | Leave-One-Subject-Out-Cross-Validation |
| ROC | Receiver Operating Characteristic |
References
- Kaul, V.; Enslin, S.; Gross, S.A. History of artificial intelligence in medicine. Gastrointest. Endosc. 2020, 92, 807–812. [Google Scholar] [CrossRef] [PubMed]
- El Naqa, I.; Murphy, M.J. What is machine learning? In What is machine learning? Springer: New York, NY, USA, 2015; pp. 1–100. [Google Scholar] [CrossRef]
- Hunter, B.; Hindocha, S.; Lee, R.W. The role of artificial intelligence in early cancer diagnosis. Cancers 2022, 14, 1524. [Google Scholar] [CrossRef] [PubMed]
- Werner, P.; Lopez-Martinez, D.; Walter, S.; Al-Hamadi, A.; Gruss, S.; Picard, R.W. Automatic recognition methods supporting pain assessment: A survey. IEEE Trans. Affect. Comput. 2019, 13, 530–552. [Google Scholar] [CrossRef]
- Lynch, M.E. The need for a Canadian pain strategy. Pain Res. Manag. 2011, 16(2), 77. [Google Scholar] [CrossRef] [PubMed]
- Turk, D.C.; Melzack, R. The measurement of pain and the assessment of people experiencing pain. The Guilford Press: New York, NY, USA, 2011.
- Zhang, H.; Cisse, M.; Dauphin, Y.N.; Lopez-Paz, D. mixup: Beyond empirical risk minimization. arXiv preprint arXiv:1710.09412, 2017; arXiv:1710.09412. [Google Scholar] [CrossRef]
- Lim, H.; Kim, B.; Noh, G.-J.; Yoo, S.K. A deep neural network-based pain classifier using a photoplethysmography signal. Sensors 2019, 19(2), 384. [Google Scholar] [CrossRef] [PubMed]
- Simard, P.Y.; LeCun, Y.A.; Denker, J.S.; Victorri, B. Transformation invariance in pattern recognition—tangent distance and tangent propagation. In Neural Networks: Tricks of the Trade; Springer: Berlin/Heidelberg, Germany, 2002; pp. 239–274. [Google Scholar] [CrossRef]
- Simard, P.Y.; LeCun, Y.A.; Denker, J.S.; Victorri, B. Transformation invariance in pattern recognition—tangent distance and tangent propagation. In Neural Networks: Tricks of the Trade; Springer: Berlin/Heidelberg, Germany, 2002; pp. 239–274. [Google Scholar] [CrossRef]
- Thiam, P.; Bellmann, P.; Kestler, H.A.; Schwenker, F. Exploring deep physiological models for nociceptive pain recognition. Sensors 2019, 19(20), 4503. [Google Scholar] [CrossRef] [PubMed]
- Alazrai, R.; Al-Rawi, S.; Alwanni, H.; Daoud, M.I. Tonic cold pain detection using Choi–Williams time-frequency distribution analysis of EEG signals: a feasibility study. Appl. Sci. 2019, 9(16), 3433. [Google Scholar] [CrossRef]
- Kessler, V.; Thiam, P.; Amirian, M.; Schwenker, F. Pain recognition with camera photoplethysmography. In Proceedings of the 2017 Seventh International Conference on Image Processing Theory, Tools and Applications (IPTA), Montreal, QC, Canada, 28-30 November 2017; IEEE: Piscataway, NJ, USA, 2017; pp. 1–5. [Google Scholar] [CrossRef]
- Gruss, S.; Treister, R.; Werner, P.; Traue, H.C.; Crawcour, S.; Andrade, A.; Walter, S. Pain intensity recognition rates via biopotential feature patterns with support vector machines. PLoS One 2015, 10(10), e0140330. [Google Scholar] [CrossRef] [PubMed]
- Werner, P.; Al-Hamadi, A.; Niese, R.; Walter, S.; Gruss, S.; Traue, H.C. Automatic pain recognition from video and biomedical signals. In Proceedings of the 2014 22nd International Conference on Pattern Recognition (ICPR), Stockholm, Sweden, 24-28 August 2014; IEEE: Piscataway, NJ, USA, 2014; pp. 4582–4587. [Google Scholar] [CrossRef]
- Walter, S.; Gruss, S.; Ehleiter, H.; Tan, J.; Traue, H.C.; Werner, P.; Al-Hamadi, A.; Crawcour, S.; Andrade, A.O.; da Silva, G.M. The biovid heat pain database data for the advancement and systematic validation of an automated pain recognition system. In Proceedings of the 2013 IEEE International Conference on Cybernetics (CYBCO), Lausanne, Switzerland, 13-15 June 2013; IEEE: Piscataway, NJ, USA, 2013; pp. 128–131. [Google Scholar] [CrossRef]
- Kächele, M.; Thiam, P.; Amirian, M.; Schwenker, F.; Palm, G. Methods for person-centered continuous pain intensity assessment from bio-physiological channels. IEEE J. Sel. Top. Signal Process. 2016, 10, 854–864. [Google Scholar] [CrossRef]
- Guo, H. Nonlinear mixup: Out-of-manifold data augmentation for text classification. In Proceedings of the AAAI Conference on Artificial Intelligence, New York, NY, USA, 7-12 February 2020; Volume 34, Number 04. pp. 4044–4051. [Google Scholar] [CrossRef]
- Sun, L.; Xia, C.; Yin, W.; Liang, T.; Yu, P.S.; He, L. Mixup-transformer: Dynamic data augmentation for NLP tasks. arXiv 2020, arXiv:2010.02394. [Google Scholar] [CrossRef]
- Galdran, A.; Carneiro, G.; González Ballester, M.A. Balanced-mixup for highly imbalanced medical image classification. In Medical Image Computing and Computer Assisted Intervention–MICCAI 2021: 24th International Conference, Strasbourg, France, September 27–October 1, 2021, Proceedings, Part V; Springer: Cham, Switzerland, 2021; pp. 323–333. [Google Scholar] [CrossRef]
- Özdemir, Ö.; Sönmez, E.B. Attention mechanism and mixup data augmentation for classification of COVID-19 Computed Tomography images. J. King Saud Univ. - Comput. Inf. Sci. 2022, 34(8), 6199–6207. [Google Scholar] [CrossRef] [PubMed]
- Werner, P.; Al-Hamadi, A.; Niese, R.; Walter, S.; Gruss, S.; Traue, H.C. Automatic pain recognition from video and biomedical signals. In Proceedings of the 2014 22nd International Conference on Pattern Recognition (ICPR), Stockholm, Sweden, 24-28 August 2014; IEEE: Piscataway, NJ, USA, 2014; pp. 4582–4587. [Google Scholar] [CrossRef]
- Chu, Y.; Zhao, X.; Han, J.; Su, Y. Physiological signal-based method for measurement of pain intensity. Front. Neurosci. 2017, 11, 279. [Google Scholar] [CrossRef] [PubMed]








| Method | SVM |
|---|---|
| No mixup | 74.61% |
| Mixup ( = 0.1) | 75.87% |
| Mixup ( = 0.2) | 75.04% |
| Mixup ( = 0.3) | 75.61% |
| Mixup ( = 0.4) | 75.12% |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).