| Literature DB >> 35958795 |
Zhong Wang1, Tong Li1.
Abstract
The existing deep learning models have problems such as large weight parameters and slow inference speed of equipment. In practical applications such as fire detection, they often cannot be deployed on equipment with limited resources due to the huge amount of parameters and low efficiency. In response to this problem, this paper proposes a lightweight smoke detection model based on the convolutional attention mechanism module. The model is based on the YOLOv5 lightweight framework. The backbone network draws on the GhostNet design idea, replaces the CSP structure of the FPN and head layers with the GhostBottleNeck module, adds a convolutional attention mechanism module to the backbone network layer, and uses the CIoU loss function to improve the regression accuracy. Using YOLOv5s as the benchmark model, the parameter amount of the proposed lightweight neural network model is 2.75 M, and the floating-point calculation amount is 2.56 G, which is much lower than the parameter amount and calculation amount of the benchmark model. Tested on the public fire dataset, compared with the traditional deep learning algorithm, the model proposed in the paper has better detection performance and the detection speed is significantly better than the benchmark model. Tested under the unquantized simulator, the speed of the proposed model to detect a single picture is 60 ms, which can meet the requirements of real-time engineering applications.Entities:
Mesh:
Year: 2022 PMID: 35958795 PMCID: PMC9357762 DOI: 10.1155/2022/8396550
Source DB: PubMed Journal: Comput Intell Neurosci
Figure 1Focus_mod module.
Figure 2Ghost module.
Figure 3Ghost bottleneck module.
Figure 4CBAM module.
Figure 5Lightweight network model.
Parameters and calculations of the sub-modules.
| Module | Parameters | FLOPs/M |
|---|---|---|
| Focus | 1760 | 181.86 |
| Focus_mod | 232 | 27.85 |
| Conv | 464 | 196.61 |
| CBAM | 594 | 230.2 |
| CSP | 1120 | 481.69 |
| GBN | 317 | 136.4 |
Overall architecture of lightweight network model.
| Input | Operator | Conv | Stride | SE |
|---|---|---|---|---|
| 640 ✕ 640 ✕ 3 | Focus_mod | 3 ✕ 3 | 1 | — |
| 320 ✕320✕64 | CBAM | 3 ✕ 3 | 2 | — |
| 160 ✕160✕64 | GBN | 5 ✕ 5 | 2 | 1 |
| 160 ✕160✕64 | Conv | 3 ✕ 3 | 2 | — |
| 80 ✕80✕64 | GBN | 3 ✕ 3 | 1 | 1 |
| 40 ✕ 40 ✕ 128 | Conv | 3 ✕ 3 | 2 | — |
| 40 ✕ 40 ✕ 128 | GBN | 3 ✕ 3 | 1 | — |
| 20 ✕ 20 ✕ 256 | Conv | 3 ✕ 3 | 2 | — |
| 20 ✕ 20 ✕ 256 | GBN | 3 ✕ 3 | 1 | — |
| 20 ✕ 20 ✕ 256 | SPP | 1 ✕ 1 | 2 | — |
| 20 ✕ 20 ✕ 512 | GBN | 3 ✕ 3 | 1 | 1 |
| 20 ✕ 20 ✕ 256 | Conv | 1 ✕ 1 | 1 | — |
| 40 ✕ 40 ✕ 256 | Upsample | — | ||
| 40 ✕ 40 ✕ 256 | GBN | 3 ✕ 3 | 1 | 1 |
| 40 ✕ 40 ✕ 128 | Conv | 1 ✕ 1 | 1 | — |
| 80 ✕ 80 ✕ 128 | Upsample | — | ||
| 80 ✕ 80 ✕ 128 | GBN | 3 ✕ 3 | 1 | 1 |
| 40 ✕ 40 ✕ 128 | Conv | 3 ✕ 3 | 2 | — |
| 40 ✕ 40 ✕ 256 | GBN | 3 ✕ 3 | 1 | 1 |
| 20 ✕ 20 ✕ 512 | Conv | 3 ✕ 3 | 2 | — |
Figure 6Sample images from the dataset.
Figure 7Performance curves of different loss functions.
The performance of different models.
| Model | Parameters | FLOPs (G) | mAP@0.5 (%) |
|---|---|---|---|
| YOLOv5s | 7255094 | 16.86 | 97.04 |
| YOLOv5s + Ghost | 4434246 | 8.88 | 97.09 |
| YOLOv5s + Ghost + CBAM | 3624520 | 6.28 | 97.23 |
| YOLOv5s-Lightweight | 2751176 | 2.56 | 97.45 |
Figure 8Performance detection curves of different models. (a) mAP@0.5. (b) Precision. (c) Recall.
Figure 9Detection results with the lightweight network model.