Hyperparameter Optimization Method Based on Harmony Search Algorithm to Improve Performance of 1D CNN Human Respiration Pattern Recognition System
Abstract
:1. Introduction
2. Related Research
2.1. UWB Sensor and Repiratory Signal Patterns
2.2. 1D CNN for Signal Pattern Recognition
2.3. Hyperparameters in 1D CNN
- Manual search: This method sets the hyperparameter value depending on the researcher’s intuition or experience and can be used when the understanding of neural network structure and learning data is high. However, this method is inefficient because hyperparameter setting criteria are very ambiguous and many experiments are required.
- Grid search: This method finds the hyperparameter that yields the best performance by predetermining several values for each hyperparameter and combining the values.
- Random search: This method finds the best combination by setting the minimum and maximum range of values that each hyperparameter can have and selecting values randomly within the specified range. This method can be better than the manual search and grid search methods in terms of performance over time.
- Bayesian optimization: Bayesian optimization constructs a specific range of value for a hyperparameter based on a good case studied in the past and optimizing within the determined range. This method has good performance over time but must be studied previously.
2.4. Harmony Search Algorithm
3. Proposed Method
3.1. Design of Harmony Memory and Object Function
3.2. Selecting Optimal Hyperparameters for HS Algorithm
- Local maxima problem: This problem occurs when using a high HMCR value and low MPAP value regardless of the PAR value. This problem frequently recalls existing memory due to the high HMCR value, and the pitch is adjusted by PAR when creating a new harmony. Here, if the MPAP value is too low, falling into local maxima may occur.
- Random selection problem: This problem occurs when the HMCR value is low. As a result, the probability of random selection occurring increases, which can yield efficiency that is similar to a typical random search method. This problem may also occur when the HMCR, PAR, and MPAP values are all high. In particular, if MPAP is too large, even if the existing HM is used, the pitch adjustment value becomes too large, which has the same effect as random selection.
3.3. Optimization of 1D CNN Hyperparameters Using HS Algorithm
Algorithm 1: Algorithm for Optimizing Hyperparameters of 1D CNN using HS |
|
4. Experiments
4.1. Learning and Test Dataset
4.2. Comparison of Recognition Rate between Proposed and Existing Methods
5. Conclusions
Author Contributions
Funding
Conflicts of Interest
References
- Lazaro, A.; Girbau, D.; Villarino, R. Analysis of vital signs monitoring using an IR-UWB radar. Prog. Electromagn. Res. 2010, 100, 265–284. [Google Scholar] [CrossRef] [Green Version]
- Cho, H.; Yoon, S.M. Divide and Conquer-Based 1D CNN Human Activity Recognition Using Test Data Sharpening. Sensors 2018, 18, 1055. [Google Scholar] [CrossRef] [Green Version]
- Kravchik, M.; Shabtai, A. Detecting Cyber Attacks in Industrial Control Systems Using Convolutional Neural Networks. In Proceedings of the 2018 Workshop on Cyber-Physical Systems Security and PrivaCy—CPS-SPC ’18, Toronto, ON, Canada, 15–19 October 2018; pp. 72–83. [Google Scholar]
- Kim, T.; Lee, J.; Nam, J. Sample-Level CNN Architectures for Music Auto-Tagging Using Raw Waveforms. In Proceedings of the 2018 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), Calgary, AB, Canada, 15–20 April 2018; pp. 366–370. [Google Scholar]
- Lee, S.-M.; Yoon, S.M.; Cho, H. Human activity recognition from accelerometer data using Convolutional Neural Network. In Proceedings of the 2017 IEEE International Conference on Big Data and Smart Computing (BigComp), Jeju Island, Korea, 13–16 February 2017; pp. 131–134. [Google Scholar]
- Kim, M.G.; Pan, S.B. Deep Learning Based on 1-D Ensemble Networks Using ECG for Real-Time User Recognition. IEEE Trans. Ind. Inform. 2019, 15, 5656–5663. [Google Scholar] [CrossRef]
- Tran, V.P.; Al-Jumaily, A.; Islam, S. Doppler Radar-Based Non-Contact Health Monitoring for Obstructive Sleep Apnea Diagnosis: A Comprehensive Review. Big Data Cogn. Comput. 2019, 3, 3. [Google Scholar] [CrossRef] [Green Version]
- Javaid, A.Q.; Noble, C.M.; Rosenberg, R.; Weitnauer, M.A. Towards Sleep Apnea Screening with an Under-the-Mattress IR-UWB Radar Using Machine Learning. In Proceedings of the 2015 IEEE 14th International Conference on Machine Learning and Applications (ICMLA), Miami, FL, USA, 9–11 December 2015; pp. 837–842. [Google Scholar]
- Huang, X.; Sun, L.; Tian, T.; Huang, Z.; Clancy, E. Real-time non-contact infant respiratory monitoring using UWB radar. In Proceedings of the 2015 IEEE 16th International Conference on Communication Technology (ICCT), Hangzhou, China, 18–21 October 2015; pp. 493–496. [Google Scholar]
- Fedele, G.; Pittella, E.; Pisa, S.; Cavagnaro, M.; Canali, R.; Biagi, M. Sleep-Apnea Detection with UWB Active Sensors. In Proceedings of the IEEE International Conference on Ubiquitous Wireless Broadband (ICUWB), Montreal, QC, Canada, 4–7 October 2015. [Google Scholar]
- Zhang, Q.; Zhou, D.; Zeng, X. HeartID: A Multiresolution Convolutional Neural Network for ECG-Based Biometric Human Identification in Smart Health Applications. IEEE Access 2017, 5, 11805–11816. [Google Scholar] [CrossRef]
- Yildirim, O.; Baloglu, U.B.; Acharya, U.R. A deep convolutional neural network model for automated identification of abnormal EEG signals. Neural Comput. Appl. 2018, 1–12. [Google Scholar] [CrossRef]
- Yildirim, O.; Pławiak, P.; Tan, R.-S.; Acharya, U.R. Arrhythmia detection using deep convolutional neural network with long duration ECG signals. Comput. Biol. Med. 2018, 102, 411–420. [Google Scholar] [CrossRef]
- Andonie, R.; Florea, A.-C. Weighted Random Search for CNN Hyperparameter Optimization. Int. J. Comput. Commun. Control. 2020, 15, 432–445. [Google Scholar] [CrossRef] [Green Version]
- Passricha, V.; Aggarwal, R.K. PSO-based optimized CNN for Hindi ASR. Int. J. Speech Technol. 2019, 22, 1123–1133. [Google Scholar] [CrossRef]
- Wu, J.; Chen, X.-Y.; Zhang, H.; Xiong, L.-D.; Lei, H.; Deng, S.-H. Hyperparameter Optimization for Machine Learning Models Based on Bayesian Optimization. J. Electron. Sci. Technol. 2019, 17, 26–40. [Google Scholar]
- Bochinski, E.; Senst, T.; Sikora, T. Hyper-parameter optimization for convolutional neural network committees based on evolutionary algorithms. In Proceedings of the 2017 IEEE International Conference on Image Processing (ICIP), Beijing, China, 17–20 September 2017; pp. 3924–3928. [Google Scholar]
- Yadav, N.; Yadav, A.; Bansal, J.C.; Deep, K.; Kim, J.H. Harmony Search and Nature Inspired Optimization Algorithms; Advances in Intelligent Systems and Computing; Springer Nature Singapore pte Ltd.: Singapore, 2018. [Google Scholar]
- Peraza, C.; Valdez, F.; Castillo, O. A Harmony Search Algorithm Comparison with Genetic Algorithms. Adv. Intell. Inf. Database Syst. 2014, 574, 105–123. [Google Scholar] [CrossRef]
- Khan, L.; Mumtaz, S.; Khattak, A. Comparison of Genetic Algorithm and Harmony Search for Generator Maintenance Scheduling. Mehran Univ. Res. J. Eng. Technol. 2012, 31, 587–598. [Google Scholar]
- Zhang, T.; Geem, Z.W. Review of harmony search with respect to algorithm structure. Swarm Evol. Comput. 2019, 48, 31–43. [Google Scholar] [CrossRef]
- Saka, M.; Hasançebi, O.; Geem, Z.W. Metaheuristics in structural optimization and discussions on harmony search algorithm. Swarm Evol. Comput. 2016, 28, 88–97. [Google Scholar] [CrossRef]
- Geem, Z.W. Music-Inspired Harmony Search Algorithm and Its Experience-Based Derivative. New Phys. Sae Mulli 2017, 67, 608–614. [Google Scholar] [CrossRef]
- Geem, Z.W. Particle-swarm harmony search for water network design. Eng. Optim. 2009, 41, 297–311. [Google Scholar] [CrossRef]
- Kim, S.-H.; Geem, Z.W.; Han, G.-T. A Novel Human Respiration Pattern Recognition Using Signals of Ultra-Wideband Radar Sensor. Sensors 2019, 19, 3340. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Li, C.; Mak, P.-I.; Gomez-Garcia, R.; Chen, Y. Guest Editorial Wireless Sensing Circuits and Systems for Healthcare and Biomedical Applications. IEEE J. Emerg. Sel. Top. Circuits Syst. 2018, 8, 161–164. [Google Scholar] [CrossRef]
- Milici, S.; Lazaro, A.; Villarino, R.; Girbau, D.; Magnarosa, M. Wireless Wearable Magnetometer-Based Sensor for Sleep Quality Monitoring. IEEE Sens. J. 2018, 18, 2145–2152. [Google Scholar] [CrossRef]
- Li, C.; Lubecke, V.M.; Boric-Lubecke, O.; Lin, J. A Review on Recent Advances in Doppler Radar Sensors for Noncontact Healthcare Monitoring. IEEE Trans. Microw. Theory Tech. 2013, 61, 2046–2060. [Google Scholar] [CrossRef]
- Bernardi, P.; Cicchetti, R.; Pisa, S.; Pittella, E.; Piuzzi, E.; Testa, O. Design, Realization, and Test of a UWB Radar Sensor for Breath Activity Monitoring. IEEE Sens. J. 2013, 14, 584–596. [Google Scholar] [CrossRef]
- Fan, D.; Ren, A.; Zhao, N.; Yang, X.; Zhang, Z.; Shah, S.A.; Hu, F.; Abbasi, Q.H. Breathing Rhythm Analysis in Body Centric Networks. IEEE Access 2018, 6, 32507–32513. [Google Scholar] [CrossRef]
- Loughlin, P.C.; Sebat, F.; Kellett, J.G. Respiratory Rate: The Forgotten Vital Sign—Make It Count! Jt. Comm. J. Qual. Patient Saf. 2018, 44, 494–499. [Google Scholar] [PubMed]
- Brownlee, J. Deep Learning for Time Series Forecasting; Machine Learning Mastery Pty. Ltd.: Vermont Victoria, Australia, 2018; pp. 1–575. [Google Scholar]
- Dubey, S.R.; Chakraborty, S.; Roy, S.K.; Mukherjee, S.; Singh, S.K.; Chaudhuri, B.B. diffGrad: An Optimization Method for Convolutional Neural Networks. IEEE Trans. Neural Netw. Learn. Syst. 2020, 1–12. [Google Scholar] [CrossRef] [Green Version]
- Nalçakan, Y.; Ensari, T. Decision of Neural Networks Hyperparameters with a Population-Based Algorithm. In Proceedings of the Intelligent Tutoring Systems, Montreal, QC, Canada, 11–15 June 2018; pp. 276–281. [Google Scholar]
- Geem, Z.W. Music-Inspired Harmony Search Algorithm: Theory and Applications; Springer: Berlin, Germany, 2009. [Google Scholar]
- Abdel-Raouf, O.; Metwally, M.A.-B. A Survey of Harmony Search Algorithm. Int. J. Comput. Appl. 2013, 70, 17–26. [Google Scholar] [CrossRef]
- Maheri, M.R.; Narimani, M. An enhanced harmony search algorithm for optimum design of side sway steel frames. Comput. Struct. 2014, 136, 78–89. [Google Scholar] [CrossRef]
- Askarzadeh, A.; Rashedi, E.; Giannoccaro, I.; Patnaik, S. Harmony Search Algorithm. In Advances in Computational Intelligence and Robotics; IGI Global: Hershey, PA, USA, 2017; pp. 1–36. [Google Scholar]
- Rosa, G.; Papa, J.P.; Marana, A.N.; Scheirer, W.J.; Cox, D. Fine-Tuning Convolutional Neural Networks Using Harmony Search. In Natural Language Processing and Information Systems; Springer Science and Business Media LLC: Berlin, Germany, 2015; Volume 9423, pp. 683–690. [Google Scholar]
Item | Specification |
---|---|
Detecting Range | 10~22 (m) |
Frequency Range | 3.0~4.0 (GHz) |
Bandwidth | 0.45~1.0 (GHz) |
Distance Resolution | 1.5~3.3 (cm) |
Antenna Angle | 50° (X-Z plane)~77.5° (Y-Z plane) |
Type of Respiration | Definition and Characteristics of Respiration |
---|---|
Eupnea | Respiration when average number of respirations per minute is 15–20 for an adult. |
Bradypnea | Respiration when the number of respirations per minute is 12 or less. Compared to general respiration, the depth of inspiration and expiration is reduced, and the respiration cycle is increased. Often observed when sleeping and may be caused by diseases. |
Tachypnea | Shallow respiration with 20 or more respirations per minute and may occur in the presence of diseases, e.g., fever and weakness or mental instability. This can be appeared during normal light exercise. |
Apnea | When there is a decrease of more than 90% of typical respiratory airflow for more than 10 seconds during sleep. This results in very small amplitudes in the respiratory signal. |
Hyperparameter | Description |
---|---|
Kernel Size | Kernel size of convolutional layer |
Kernel Count | Kernel count of convolutional layer |
Stride | Number of moving pixels of kernel when performing convolution (base: 1) |
Zero-padding | Hyperparameters used to acquire characteristics of the border area of the training data |
Epoch | Number of learning iterations |
Learning Rate | Amount of change in weight that is updated during learning |
Layer Depth | Number of layers constituting entire network |
Neuron Count | Neuron count in fully-connected layer |
Batch Size | Group size to divide training data into several groups |
Loss Function | Function to calculate error (SGD) |
Activation Function | Neuron’s activation function (ReLU, sigmoid, etc.) |
Hyperparameter | Description | Expression of Hyperparameter in Layer |
---|---|---|
KS | Kernel size of each convolution layer | KS = {ks1, …, kscld} |
KC | Kernel count of each convolution layer | KC = {kc1, …, kccld} |
DLNC | Neuron count of each dense layer | DLNC = {dlnc1, dlnc2} |
Methods | Hyperparameters for HS Algorithm | Iteration | Set Recognition Rate (%) | ||
---|---|---|---|---|---|
HMCR | PAR | MPAP | |||
Existing method 1 [38] | 0.95 | 0.8 | 0.2 | 5912 | 95% |
Existing method 2 [39] | 0.70 | 0.50 | 0.1 | 4357 | |
Proposed method | 0.5–0.7 | 0.6–0.8 | 10–18 | 2011 |
Pattern | Samples of Signal |
---|---|
Eupnea | |
Bradypnea | |
Tachypnea | |
Apnea | |
Moving |
Parameter | Description | Value or Range |
---|---|---|
HMS | Harmony Memory Size | 1000 |
HMCR | Harmony Memory Considering Ratio | 0.5~0.7 |
PAR | Pitch Adjusting Ratio | 0.6~0.8 |
MPAP | Maximum Pitch Adjustment Proportion | 10~18 |
Iteration | Number of repetitions for HM update | 10,000 |
k | Threshold for comparing the number ofnon-updates of | 200 |
CLD | Convolution Layer Depth | 3 |
KSi i=1,2,3 | Kernel Size for Convolution | 3~81 |
KCi i=1,2,3 | Kernel Count for Convolution | 16~1024 |
DLNC1 | First Dense Layer (FC Layer) Neuron Count | 256~4096 |
DLNC2 | Second Dense Layer (FC Layer) Neuron Count | 256~4096 |
Iteration | Hyperparameters in HM | (%) | |||||||
---|---|---|---|---|---|---|---|---|---|
1 | 5 | 171 | 63 | 314 | 27 | 573 | 3426 | 1796 | 83.4 |
5 | 19 | 481 | 5 | 56 | 21 | 214 | 862 | 2182 | 83.9 |
21 | 47 | 98 | 27 | 228 | 55 | 638 | 1544 | 3,205 | 84.5 |
55 | 37 | 116 | 73 | 187 | 9 | 203 | 929 | 648 | 84.6 |
⋮ | |||||||||
3652 | 23 | 56 | 17 | 48 | 11 | 102 | 1762 | 984 | 96.7 |
Method | Number ofIteration | Hyperparameters for HS Algorithm | Recognition Rate (%) | |||||||
---|---|---|---|---|---|---|---|---|---|---|
Previous Method [25] | 2,000,000 | 93.9 | ||||||||
Proposed Method | 3652 | 23 | 17 | 11 | 56 | 48 | 102 | 1762 | 984 | 96.7 |
© 2020 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/).
Share and Cite
Kim, S.-H.; Geem, Z.W.; Han, G.-T. Hyperparameter Optimization Method Based on Harmony Search Algorithm to Improve Performance of 1D CNN Human Respiration Pattern Recognition System. Sensors 2020, 20, 3697. https://doi.org/10.3390/s20133697
Kim S-H, Geem ZW, Han G-T. Hyperparameter Optimization Method Based on Harmony Search Algorithm to Improve Performance of 1D CNN Human Respiration Pattern Recognition System. Sensors. 2020; 20(13):3697. https://doi.org/10.3390/s20133697
Chicago/Turabian StyleKim, Seong-Hoon, Zong Woo Geem, and Gi-Tae Han. 2020. "Hyperparameter Optimization Method Based on Harmony Search Algorithm to Improve Performance of 1D CNN Human Respiration Pattern Recognition System" Sensors 20, no. 13: 3697. https://doi.org/10.3390/s20133697
APA StyleKim, S. -H., Geem, Z. W., & Han, G. -T. (2020). Hyperparameter Optimization Method Based on Harmony Search Algorithm to Improve Performance of 1D CNN Human Respiration Pattern Recognition System. Sensors, 20(13), 3697. https://doi.org/10.3390/s20133697