PARALLELIZATION ALGORITHM OF IMAGE CLASSIFICATION ACCORDING TO “SMART HOUSE SECURITY”
DOI:
https://doi.org/10.35546/kntu2078-4481.2022.3.5Keywords:
neural network, optimizer, model, convolutional layer, multithreading, convolutional neural network, parameter.Abstract
Many literature sources were analyzed regarding the practicality of choosing the CNN model. They described all the strengths of this neural network structure. The problem of classification using the neural model CNN and OpenCV is considered. With the help of OpenCV, you can process video streams in real-time, and already with the help of a trained model, you can classify interlaced images. Thus, the study aims to model the architecture of the model in such a way as to minimize the classification time and increase its accuracy. You can also improve classification speed using multithreading. For a complete analysis of the study, the working principle of CNN should be considered. It is a class of deep neural convolutional networks that can recognize and classify certain image features and is widely used for visual image analysis. During the experiments, the CNN classification model is used. To get information about the most optimal options, various parameters are selected to compare the results, such as optimizers and the number of epochs. During the experiments, training took place with different sizes of epochs and optimizers. To improve the speed, the two most effective ones were selected, namely “Adam” and “RMSProp”, because when choosing the others, the accuracy dropped sharply to values less than 40%. To determine the effectiveness of one over the other, we performed training and classification of images with the same parameters. When the number of epochs increases, it is possible to notice positive dynamics in terms of accuracy and negative dynamics in terms of losses on both models when the number of epochs increases. This confirms the effectiveness of CNN for its direct purpose, namely image classification. Experiments on image size were also carried out in work. As a result of this experiment, the training time was reduced by another 8 s per epoch because the input image pixel matrix size became smaller. Also, the conducted experiments proved that with the optimal image size selection, the processing speed could also be increased. After selecting all the optimal input parameters of the neural network, the parallelization process of the classification was analyzed. The work offers ways to optimize the model.
References
Celia T., Özkaramanl H. Fire And Smoke Detection Without Sensors: Image Processing Based Approach. Demirel 15th European SignalProcessing Conference (EUSIPCO 2007), Poznan, Poland, copyright by EURASIP. Electrical and Electronic Engineering, Eastern MediterraneanUniversity, TURKEY, September. 2007. pp. 1-5.
Divya R., Mageshwari D. A Novel Fire Detection System using Image Processing and Artificial Intelligence Techniques. Proceedings published by International Journal of Computer Applications (IJCA), Chennai. 2012.
Patel P., Tiwari S. Flame Detection using Image Processing Techniques, Journal of Computer Applications. Vol. 58. №18. 2012. рр. 1-4.
Xiong Z., Caballero R., Wang H., Finn A. M., Lelic M. A., and Peng P.Y. Video-based Smoke Detection: Possibilities, Techniques, and Challenges. United Technologies Research Centre, East Hartford.
Stauffer C. and Grimson W.E.L. Adaptive Background Mixture Models for Real- Time Tracking. Proc. IEEE Conf. Computer Vision and PatternRecognition. 1999.
Shams R., Hossain S., Priyom S., Fatema N. Automated Fire Extinguishing System With Gsm Alarm. Thesis in the Department of Electrical and Electronic Engineering Of BRAC University.
Töreyin B.U., Dedeoğlu Y., Çetin A.E. Flame detection in video using hidden Markov models. Proc. IEEE Internet Conf. On Image Processing. 2005. pp. 1230-1233.
Arrue B. C., Ollero A., and Martinez de Dios J. R. An intelligent system for false alarm reduction in infrared forestfire detection. IEEE Intelligent Systems. Vol. 15. № 3. 2000. pp. 64–73.
Śrutek M., Andrysiak T. Flame Detection Based On Infrared Images. University of Technology and Life Sciences, Bydgoszcz, Poland. 2013. pp. 1-10.
Yuan C. Automatic Fire Detection Using Computer Vision Techniques for UAV-based Forest Fire Surveillance. A Thesis in the Department ofMechanical, Industrial and Aerospace Engineering. 2017. pp. 72-87.