Cargando…

Automatic detection of indoor occupancy based on improved YOLOv5 model

Indoor occupancy detection is essential for energy efficiency control and Coronavirus Disease 2019 traceability. The number and location of people can be accurately identified and determined through classroom surveillance video analysis. This information is used to manage environmental equipment suc...

Descripción completa

Detalles Bibliográficos
Autores principales: Wang, Chao, Zhang, Yunchu, Zhou, Yanfei, Sun, Shaohan, Zhang, Hanyuan, Wang, Yepeng
Formato: Online Artículo Texto
Lenguaje:English
Publicado: Springer London 2022
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9436742/
https://www.ncbi.nlm.nih.gov/pubmed/36068815
http://dx.doi.org/10.1007/s00521-022-07730-3
_version_ 1784781439569494016
author Wang, Chao
Zhang, Yunchu
Zhou, Yanfei
Sun, Shaohan
Zhang, Hanyuan
Wang, Yepeng
author_facet Wang, Chao
Zhang, Yunchu
Zhou, Yanfei
Sun, Shaohan
Zhang, Hanyuan
Wang, Yepeng
author_sort Wang, Chao
collection PubMed
description Indoor occupancy detection is essential for energy efficiency control and Coronavirus Disease 2019 traceability. The number and location of people can be accurately identified and determined through classroom surveillance video analysis. This information is used to manage environmental equipment such as HVAC and lighting systems to reduce energy use. However, the mainstream one-stage YOLO algorithm still uses an anchor-based mechanism and couples detection heads to predict. This results in slow model convergence and poor detection performance for densely occluded targets. Therefore, this paper proposed a novel decoupled anchor-free VariFocal loss convolutional network algorithm DFV-YOLOv5 for occupancy detection to tackle these problems. The proposed method uses the YOLOv5 algorithm as a baseline. It uses the anchor-free mechanism to reduce the number of design parameters needing heuristic tuning. Afterwards, to reduce the coupling of the model, speed up the model’s convergence ability, and improve the model detection performance, the detection head is decoupled based on the YOLOv5 model. It can resolve the conflict between classification and regression tasks. In addition, we use the VariFocal loss to assign more weights to difficult data points to optimize the class imbalance problem and use the training target q to measure positive samples, treating positive and negative samples asymmetrically. The total loss function is redesigned, the [Formula: see text] loss is increased, and the ablation experiment verifies the effect of the improved loss. By applying a hybrid activation function of the sigmoid linear unit and rectified linear unit, we improved the model’s nonlinear representation and reduced the model’s inference time. Finally, a classroom dataset was constructed to validate the occupancy detection performance of the model. The proposed model was compared with mainstream target detection models regarding average mean precision, memory allocation, execution time, and the number of parameters on the VOC2012, CrowdHuman and self-built datasets. The experimental results show that the method significantly improves the detection accuracy and robustness, shortens the inference time, and proves the practicality of the algorithm in occupancy detection compared with the mainstream target detection model and related variants of the model.
format Online
Article
Text
id pubmed-9436742
institution National Center for Biotechnology Information
language English
publishDate 2022
publisher Springer London
record_format MEDLINE/PubMed
spelling pubmed-94367422022-09-02 Automatic detection of indoor occupancy based on improved YOLOv5 model Wang, Chao Zhang, Yunchu Zhou, Yanfei Sun, Shaohan Zhang, Hanyuan Wang, Yepeng Neural Comput Appl Original Article Indoor occupancy detection is essential for energy efficiency control and Coronavirus Disease 2019 traceability. The number and location of people can be accurately identified and determined through classroom surveillance video analysis. This information is used to manage environmental equipment such as HVAC and lighting systems to reduce energy use. However, the mainstream one-stage YOLO algorithm still uses an anchor-based mechanism and couples detection heads to predict. This results in slow model convergence and poor detection performance for densely occluded targets. Therefore, this paper proposed a novel decoupled anchor-free VariFocal loss convolutional network algorithm DFV-YOLOv5 for occupancy detection to tackle these problems. The proposed method uses the YOLOv5 algorithm as a baseline. It uses the anchor-free mechanism to reduce the number of design parameters needing heuristic tuning. Afterwards, to reduce the coupling of the model, speed up the model’s convergence ability, and improve the model detection performance, the detection head is decoupled based on the YOLOv5 model. It can resolve the conflict between classification and regression tasks. In addition, we use the VariFocal loss to assign more weights to difficult data points to optimize the class imbalance problem and use the training target q to measure positive samples, treating positive and negative samples asymmetrically. The total loss function is redesigned, the [Formula: see text] loss is increased, and the ablation experiment verifies the effect of the improved loss. By applying a hybrid activation function of the sigmoid linear unit and rectified linear unit, we improved the model’s nonlinear representation and reduced the model’s inference time. Finally, a classroom dataset was constructed to validate the occupancy detection performance of the model. The proposed model was compared with mainstream target detection models regarding average mean precision, memory allocation, execution time, and the number of parameters on the VOC2012, CrowdHuman and self-built datasets. The experimental results show that the method significantly improves the detection accuracy and robustness, shortens the inference time, and proves the practicality of the algorithm in occupancy detection compared with the mainstream target detection model and related variants of the model. Springer London 2022-09-02 2023 /pmc/articles/PMC9436742/ /pubmed/36068815 http://dx.doi.org/10.1007/s00521-022-07730-3 Text en © The Author(s), under exclusive licence to Springer-Verlag London Ltd., part of Springer Nature 2022, Springer Nature or its licensor holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law. This article is made available via the PMC Open Access Subset for unrestricted research re-use and secondary analysis in any form or by any means with acknowledgement of the original source. These permissions are granted for the duration of the World Health Organization (WHO) declaration of COVID-19 as a global pandemic.
spellingShingle Original Article
Wang, Chao
Zhang, Yunchu
Zhou, Yanfei
Sun, Shaohan
Zhang, Hanyuan
Wang, Yepeng
Automatic detection of indoor occupancy based on improved YOLOv5 model
title Automatic detection of indoor occupancy based on improved YOLOv5 model
title_full Automatic detection of indoor occupancy based on improved YOLOv5 model
title_fullStr Automatic detection of indoor occupancy based on improved YOLOv5 model
title_full_unstemmed Automatic detection of indoor occupancy based on improved YOLOv5 model
title_short Automatic detection of indoor occupancy based on improved YOLOv5 model
title_sort automatic detection of indoor occupancy based on improved yolov5 model
topic Original Article
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9436742/
https://www.ncbi.nlm.nih.gov/pubmed/36068815
http://dx.doi.org/10.1007/s00521-022-07730-3
work_keys_str_mv AT wangchao automaticdetectionofindooroccupancybasedonimprovedyolov5model
AT zhangyunchu automaticdetectionofindooroccupancybasedonimprovedyolov5model
AT zhouyanfei automaticdetectionofindooroccupancybasedonimprovedyolov5model
AT sunshaohan automaticdetectionofindooroccupancybasedonimprovedyolov5model
AT zhanghanyuan automaticdetectionofindooroccupancybasedonimprovedyolov5model
AT wangyepeng automaticdetectionofindooroccupancybasedonimprovedyolov5model