Abstract
To resolve the challenge of balancing computational efficiency and accuracy in liquid level detection models within industrial environments, this study proposes a lightweight SSD algorithm tailored for edge devices. The proposed algorithm facilitates real-time liquid level monitoring and anomaly early warning, thereby mitigating the risk of production incidents. The algorithm first builds a lightweight feature extraction network based on MobileNetV2 and substantially reduces model complexity and computational energy consumption. We propose a Multi-Scale Dilated Inverted Residual Block (MS-DIRB) to mitigate fine-grained information loss during downsampling. By integrating multi-dilated convolutions and a hierarchical feature reuse strategy, the module enhances multi-scale representational capacity while maintaining computational efficiency. Furthermore, a Triplet Attention mechanism is embedded into critical bottleneck structures, establishing a three-dimensional dynamic feature calibration framework that improves discriminative feature learning while maintaining model compactness. Experimental results demonstrate that the proposed algorithm achieves 96.65% mAP, representing a 3.57 percentage-point improvement over the baseline SSD architecture, while reducing model parameters by 81.58%. These experimental outcomes demonstrate the effectiveness of the improved algorithm and its suitability as a real-time detection model in industrial edge computing applications.
Keywords: Object detection, SSD algorithm, Multi-Scale Dilated Inverted Residual Block, Triplet Attention
Subject terms: Engineering, Mathematics and computing
Introduction
With the growing emphasis on energy conservation, emission reduction, and green manufacturing, optimizing liquid level detection technology has become a critical means of reducing production costs and improving energy efficiency. In practical applications such as agricultural irrigation, chemical reactors, and energy storage tanks, traditional detection methods often suffer from limited environmental adaptability and high maintenance requirements, resulting in inadequate real-time monitoring and an increased risk of safety incidents. Reference1–3 adopted traditional computer vision-based liquid level detection techniques, relying on handcrafted features and algorithms for image processing and analysis. These methods suffer from poor adaptability to environmental variations and difficulties in handling complex tasks, limiting their broader applicability. In contrast, detection techniques driven by deep learning employ convolutional neural networks (CNNs) to learn features automatically, offering strong generalization capabilities and end-to-end training advantages. These advancements address the shortcomings of traditional approaches and significantly enhance the performance of computer vision systems, particularly in complex and dynamic environments where deep learning demonstrates unparalleled superiority4,5. Consequently, intelligent liquid level detection technologies based on deep learning have gradually become mainstream. However, existing models exhibit excessive parameter sizes, making them challenging to deploy on edge devices6,7. Moreover, liquid level detection in industrial settings faces complex and volatile environments (e.g., varying illumination, diverse container materials, liquid reflections). In addressing these challenges, the research focus has shifted from merely pursuing accuracy to enhancing the model’s robustness and adaptability in such complex scenarios. In pipeline defect diagnosis, for instance, Lei Wang et al.8,9 introduced a “mechanism-aided bilevel knowledge transfer” framework and a subsequent “biunbiased neural network” method, respectively. This series of work integrates physical mechanisms with unbiased estimation, thereby providing a systematic solution to overcome data domain shift and improve model generalization in unknown scenarios. Xiangkai Shen et al.10 demonstrated the significant potential of multi-task collaborative optimization and physics-informed embedding for enhancing the robustness of model decisions through their “task-oriented physical collaborative network” (TOPC-Net). The core concepts of these studies have collectively informed the design and provided a valuable theoretical framework for this research to address the challenges of liquid level recognition in complex environments. Consequently, designing an object detection model that is lightweight, high-precision, and highly robust is paramount for achieving reliable real-time liquid level monitoring.
Object detection algorithms can be broadly classified into two-stage and one-stage approaches. The main workflow of two-stage detectors consists of candidate region generation11 and subsequent classification and localization of these regions; representative networks include R-CNN12, Fast R-CNN13 and Faster R-CNN14. One-stage detectors differ by predicting object categories and regressing bounding boxes in a single step over the full image, using a unified pass that yields faster inference and superior performance in real-time applications. Prominent one-stage models include SSD15–17, YOLO18,19, and RetinaNet20. Jianfeng Liang et al.21 proposed a liquid level detection method based on Ghost-YOLOv4 . By replacing the CSPDarknet53 backbone with the Ghost backbone and co-optimizing the regression loss function and data enhancement strategy, their method reduces the model parameters while improving the detection accuracy. J. A. Syed et al.22 achieved high accuracy recognition of transparent containers and liquids through training a YOLOv8 model. While these methods are effective for transparent containers, they may face challenges when applied to other container types or complex environments. Guangchao Qiao et al.23 introduced a collaborative YOLOv5s and image processing-based water level measurement method, which extracts gauge regions and scale characters via deep learning to calculate water level elevation, demonstrating strong robustness. While the method performs effectively in wastewater and sewage environments, its ability to detect calibration marks in clear liquids may be compromised by background visual interference. This limitation suggests reduced adaptability when applied across diverse fluid types.
To address the aforementioned issue, we propose a lightweight object detection model that combines strong applicability and high accuracy24–27. In this paper, SSD is used as a framework, and MobileNetV228 is used to replace the VGG1629 network, which significantly decreases the parameter count; the Multi-Scale Dilated Inverted Residual Block (MS-DIRB) is designed for downsampling, which strengthens the model’s ability to capture features across multiple spatial scales. Finally, the Triplet Attention mechanism is selectively added to part of the backbone network to capture cross-dimensional information through channel-space-channel three-way interaction, which dynamically calibrates the feature weights and enhances the feature expression capability, thus contributing to the model robustness and accuracy.
Background and related work
The classical SSD model constructs a multi-scale detection framework based on the VGG16 backbone network. By employing a hierarchical detection strategy with predefined anchor boxes, multi-scale aspect ratios are designed to cover objects of various sizes and non-maximum suppression (NMS) is utilized to filter the prediction box30,31. This single-stage approach circumvents the complex region proposal generation and post-processing steps inherent in two-stage methods, thereby improving target matching efficiency. Although the classical SSD model achieves satisfactory detection performance, it faces issues including an excessive parameter count, substantial computational overhead, and slow inference speed32–34, which render it incompatible with the real-time constraints and stringent storage limitations characteristic of edge deployment scenarios. The classical single-shot multi-box detector (SSD) network is illustrated in Fig. 1.
Fig. 1.
Classical SSD object detection model network architecture.
Improved SSD object detection network
Lightweighting of backbone networks
To mitigate the high computational cost of the original SSD framework (which employs VGG16 as its backbone), we replace the backbone with MobileNetV2, a lightweight architecture optimized35,36 for efficiency through depthwise separable convolutions. Depthwise separable convolution decomposes the standard convolution into a cascade operation of depthwise convolution and pointwise convolution, realizes the compression of computation through the parameter decoupling strategy, and provides a lightweight solution for low-power deployment in edge computing scenarios. The depthwise separable convolution is illustrated in Fig. 2. The MobileNetV2 network introduces the inverse residual module to alleviate the feature degradation problem37–39. Its core structure follows the three-stage design of “expansion-feature extraction-compression”, which retains the ability to express high-dimensional feature space while compressing computational complexity. The module only has a shortcut connection when stride = 1 and the input and output feature matrices are of the same shape, and downsampling is performed directly when stride = 2, as demonstrated in Fig. 3. Furthermore, replacing the original ReLU activation function with ReLU6 in the inverted residual module helps to mitigate gradient explosion and improve training stability.
Fig. 2.
Depthwise separable convolution.
Fig. 3.

Inverted residual structure of MobileNetV2.
The improved SSD architecture, built upon the MobileNetV2 backbone, integrates multi-scale feature fusion across bottleneck5_3, conv18, and four extra feature layers. This design enables robust multi-scale object detection while maintaining a lightweight structure, effectively balancing model precision and computational demand. Especially appropriate for platforms with limited hardware capacity (e.g., embedded systems and mobile devices), the complete architecture is illustrated in Fig. 4.
Fig. 4.
Network architecture of the MobileNetV2-SSD.
Proposal of the Multi-Scale Dilated Inverted Residual Block
Since the MobileNetV2 inverted residual block employing stride 2 lacks shortcut connections, which resulting in the loss of downsampling information and degradation of shallow gradient flow, this paper proposes the Multi-Scale Dilated Inverted Residual block. Building upon the stride-2 inverted residual block,the design integrates the idea of Atrous Spatial Pyramid Pooling (ASPP)40–42 and leverages the lightweight nature of depthwise separable convolutions to reduce parameter complexity. Specifically, we embed parallel dilated convolution groups (with dilation rates d = [1,2,3]) to design multi-dilated depthwise separable convolutions. This architecture facilitates multi-scale feature extraction while expanding the receptive field to incorporate richer contextual information, thereby addressing the inherent limitations of spatial detail loss in conventional downsampling operations. The dilated depthwise separable convolution with d = 2 is illustrated in Fig. 5.
Fig. 5.
Dilated depthwise separable convolution.
The designed MS-DIRB comprises a multi-branch dilated depthwise separable convolutional layer and adaptive shortcut connections for dimensional adjustment. After performing cross-receptive field feature extraction via three parallel dilated depthwise separable convolutions, the framework employs channel concatenation followed by 1
1 convolution to achieve cross-channel mapping and dimensionality compression. A shortcut connection has been added to address network degradation and gradient dispersion. Due to input–output dimension mismatch, a shortcut branch with 1
1 convolution performs spatial downsampling and channel alignment. Residual addition (Add) achieves cross-scale feature fusion, enhancing shallow gradient response efficiency and suppressing feature loss through projection mapping. Figure 6 illustrates the Multi-Scale Dilated Inverted Residual Block.
Fig. 6.

Multi-Scale Dilated Inverted Residual Block with a stride of 2.
Citation of the Triplet Attention mechanism
To address the problem of the insufficient feature characterization ability of depthwise separable convolution in MobileNetV2 due to limited cross-channel information interaction, this paper introduces the Triplet Attention lightweight attention mechanism43. This mechanism establishes global dependencies through cross-dimensional three-way interaction, enabling full integration of spatial and channel information to enhance attention weights in key regions and to realize an end-to-end adaptive feature enhancement system44–46. Triplet Attention consists of three parallel branches as shown in Fig. 7. In branch 1, the height and channel interaction branch, the input tensor C
H
W (number of channels C, height H, and width W) is rotated counterclockwise by 90
along the H-axis, then processed by Z-Pool and standard convolutional layers. After applying the sigmoid activation to generate attention weights, an inverse rotation is performed to restore the original dimensions. Branch 2 is an interactive fusion between the channel and width dimensions, which is computed in the same way as the first branch. Branch 3 establishes the interaction between the height and width dimensions by directly performing Z-pooling and convolution operations on the original tensor. The resulting features are passed through a sigmoid activation to compute attention weights. Finally, the tensors produced by the three branches are aggregated to form the output tensor Y.
Fig. 7.
Schematic diagram of Triplet Attention.
In the computation process, the Z-pool layer conducts max-pooling and average-pooling operations on the input tensor, then concatenates the two pooled tensors. This reduces feature dimensionality and computational effort, thereby accelerating the training and inference phases of the model. It is denoted as equation (1):
![]() |
1 |
and
correspond to the maximum and average pooling operations, respectively.
Equation (2) defines the output tensor Y produced by the last three branches.
![]() |
2 |
The symbol
denotes the sigmoid activation function, while
,
and
correspond to convolution operations. The tensors
and
are generated by rotating the input tensor
degrees counterclockwise along the vertical (H) and horizontal (W) axes, respectively.
is derived through a direct Z-pooling operation. An overline indicates that the transformed tensor undergoes a reverse rotation–clockwise along the same axis used previously.
Triplet Attention constructs a joint spatial-channel attention mechanism through three-dimensional cross-dimensional interactions, effectively mitigating limitations of MobileNetV2 in feature representation47. Considering that deploying the mechanism network-wide would significantly increase the number of model parameters, this study adopts a modular integration strategy by selectively embedding it after the 11th, 12th, and 13th inverted residual modules. This approach greatly improves the ability of the main network to extract features without compromising computational efficiency, resulting in a significant improvement in key performance metrics such as feature representation, object detection, and localization accuracy.
Experimental results and analysis
Datasets and hardware environment
The experimental data in this study were collected through a self-built platform, as shown in Fig. 8. An OpenMV H7 Plus device was used to acquire images at different water levels during the perfusion process, resulting in a dataset of 900 images across five water level intervals. All images were annotated using the Labelme tool. The data is partitioned into training, validation, and test sets in proportions of 80%, 10%, and 10%, respectively. To mitigate the risk of model overfitting, a dynamic data augmentation strategy is implemented during training, incorporating randomized operations including but not limited to rotation, brightness adjustment, and color transformation. Data augmentation is dynamically applied each time a batch is sampled from the dataset, with distinct augmentation operations stochastically applied to the original data per epoch. This strategy enhances the model’s generalization capability by exposing it to diversified feature patterns throughout training. Table 1 summarizes the hardware specifications and parameter settings of the testing platform.
Fig. 8.
Data collection and experimental platform.
Table 1.
Experimental platform hardware environment and parameters.
| Name | Parameter |
|---|---|
| CPU | Intel Xeon Platinum |
| GPU | RTX 2080 Ti(11GB) |
| Operating system | Windows10 |
| CUDA | 10.0 |
| Language | Python3.8 |
| Input image resolution | 300 300 |
| Initial learning rate | 0.0001 |
| Batch size | 16 |
| Epoch | 200 |
Model evaluation criteria
To assess the enhanced network’s effectiveness, we employed three primary indicators: mean average precision (mAP), model parameter count (Params), and processing speed measured in FPS. The mAP metric measures the area beneath the curve that plots precision versus recall, capturing the balance between detection accuracy and coverage. Equations (3), (4), and (5) respectively define precision, recall, and mAP mathematically.
![]() |
3 |
![]() |
4 |
![]() |
5 |
where TP refers to the number of samples correctly identified by the model, FP indicates the number of samples wrongly predicted, FN represents the count of missed samples belonging to negative categories, N stands for the total number of categories, and
denotes the average precision for the i category.
Experimental results
The loss function of the SSD algorithm comprises classification loss and localization loss. Figure 9a illustrates that the proposed model achieves better convergence performance and reaches a lower final loss than the MobileNetV2-SSD baseline. Additionally, the enhanced architecture exhibits stronger data-fitting capacity and enhanced robustness.
Fig. 9.
Training loss and Precision-Recall curves before and after model improvement.
The Precision–Recall (P–R) curve is utilized to evaluate the classification performance across varying thresholds, where a larger area under the curve (Average Precision, AP) reflects superior model capability. From Fig. 9b, it can be observed that the MobileNetV2-SSD model experiences a significant decline in precision when recall is high, reflecting a higher false positive rate. The improved model avoids performance collapse in the high recall region and has a higher overall AUC-PR value, verifying the effectiveness of the improved strategy.
Ablation experiment
Table 2 summarizes the innovative model combinations based on different module configurations, while Table 3 presents the corresponding ablation study outcomes. The category-wise AP values for each model are illustrated in Fig. 10. Each module provides a beneficial impact on detection accuracy, and the approach introduced in this paper consistently outperforms others across all AP metrics. Although Model 1 exhibits lower detection accuracy when utilizing MobileNetV2 for feature extraction, it achieves an approximate 82.67% reduction in parameter quantity. Model 2 incorporates the Triplet Attention mechanism into the structure of Model 1, achieving a 2.75% improvement in mAP with only a 0.02% increase in parameter count, demonstrating that refined feature interaction design enables more cost-effective performance gains. Model 3 improves the mAP index by 5.80% over Model 1 by integrating the MS-DIRB module, which not only effectively compensates for the performance loss caused by the lightweight backbone network but also markedly increases the model’s capacity for capturing complex scene features. The experimental results indicate that MS-DIRB, as the core innovative module, contributes most significantly to performance optimization.
Table 2.
Schemes of innovations.
| Model | VGG16 | MobileNetV2 | MS-DIRB | Triplet attention |
|---|---|---|---|---|
| SSD | ![]() |
|||
| Model 1 | ![]() |
|||
| Model 2 | ![]() |
![]() |
||
| Model 3 | ![]() |
![]() |
||
| MD-MobileNetV2-SSD | ![]() |
![]() |
![]() |
Table 3.
Results of the ablation experiment.
| Model | Precision (%) | Recall (%) | mAP(%) | Params |
|---|---|---|---|---|
| SSD | 93.65 | 80.61 | 93.08 | 24280556 |
| Model 1 | 89.12 | 69.54 | 89.08 | 4207624 |
| Model 2 | 91.49 | 86.16 | 91.83 | 4208524 |
| Model 3 | 92.75 | 90.03 | 94.88 | 4471640 |
| MD-MobileNetV2-SSD | 96.79 | 93.31 | 96.65 | 4472540 |
Fig. 10.
AP values of the ablation models at different liquid levels.
Comparison experiment
In order to validate the effectiveness of the proposed approach, a comprehensive comparison was made with mainstream object detection algorithms such as Faster R-CNN, SSD, YOLOv5s, YOLOv8s, YOLOv8n and MobileNetV2-SSD. Experimental results confirm that the proposed model delivers the most accurate performance in detecting liquid levels and barrel scale lines. The performance parameters of each algorithm are shown in Table 4, and the AP values for different liquid levels are shown in Fig. 11. As shown in Table 4, MobileNetV2-SSD significantly compresses parameter volume, reducing it to nearly one-sixth of that in SSD300, which achieves significant compression of the model volume while the inference speed is improved by 46.61%, but its detection accuracy suffers from an obvious compromise. To mitigate the loss in accuracy, the MD-MobileNetV2-SSD object detection algorithm is proposed in this study. The proposed method improves detection accuracy by 7.57% compared with MobileNetV2-SSD through only a 6.20% increase in parameter count, while achieving a 3.57% mAP gain compared with the SSD300 model and maintaining 35.89% faster inference speed.
Table 4.
Performance comparison of different models.
| Model | Backbone | Precision (%) | Recall (%) | mAP (%) | Params | FPS |
|---|---|---|---|---|---|---|
| Faster R-CNN | VGG-16 | 95.48 | 89.33 | 94.32 | 142562335 | 8.90 |
| SSD300 | VGG-16 | 93.65 | 80.61 | 93.08 | 24280556 | 40.18 |
| YOLOv5s | CSPDarknet53 | 92.70 | 84.49 | 93.46 | 7114785 | 46.64 |
| YOLOv8s | C2f-Darknet | 94.74 | 95.75 | 96.34 | 11166560 | 42.15 |
| YOLOv8n | C2f-Darknet | 93.70 | 95.75 | 94.26 | 3157200 | 59.04 |
| MobileNetV2-SSD | MobileNetV2 | 89.12 | 69.54 | 89.08 | 4207624 | 58.91 |
| MD-MobileNetV2-SSD | MobileNetV2 | 96.79 | 93.31 | 96.65 | 4472540 | 54.60 |
Fig. 11.
AP values of different models at different liquid levels.
In the comparative analysis with current mainstream YOLO series algorithms, the proposed method also demonstrates significant advantages. Compared to the YOLOv8s algorithm, our model achieves a 0.31% higher mAP while reducing the parameter count to only 40.05% of its counterpart, alongside a 29.54% increase in inference speed, thereby realizing an optimization in both accuracy and efficiency. When compared to the extremely lightweight YOLOv8n, our algorithm attains a 2.39% improvement in mAP at the cost of only a 7.52% decrease in speed, while exhibiting more balanced and stable performance on key categories, indicating a superior trade-off between lightness and detection capability. Furthermore, against the widely adopted YOLOv5s, our proposed algorithm shows comprehensive superiority across all three metrics: accuracy, speed, and model complexity. As illustrated in Fig. 11, across various liquid level scenarios, the proposed model achieves optimal detection performance on most key categories while maintaining its lightweight advantage, proving its robustness and practical utility in industrial settings. Experimental evidence confirms the superiority of the proposed model within the industrial context, while showing that the lightweight architecture enables efficient inference without substantially compromising accuracy.
To examine the performance of our proposed algorithm, experiments were conducted on the PASCAL VOC2007 dataset. Although this study focuses on industrial scenarios, the public dataset was selected to evaluate the model’s generalization capability, preventing the improved solution from overfitting to the specific industrial dataset and thereby comprehensively validating the effectiveness of the proposed enhancements. All tests were performed under identical hardware configurations to ensure implementation consistency. According to Table 5, the results indicate that the original MobileNetV2-SSD framework attains an mAP score 2.72% lower than the SSD300 baseline model for object detection tasks, primarily due to inherent limitations of its lightweight architecture. Our improved MobileNetV2-SSD achieves 63.69% mAP on the VOC2007 dataset, thereby narrowing the gap with SSD300 to merely 0.54% and significantly reducing computational costs. This improvement confirms that our model maintains its lightweight nature while approaching the detection accuracy of SSD300. These results validate the effectiveness of the improved solution in general object detection tasks and provide a reliable solution for balancing detection accuracy and computational efficiency.
Table 5.
Performance comparison between the original and improved models on the PASCAL VOC2007 dataset.
| Model | Backbone | Precision (%) | Recall (%) | mAP (%) | Params | FPS |
|---|---|---|---|---|---|---|
| SSD300 | VGG-16 | 72.94 | 56.79 | 64.23 | 26285486 | 38.87 |
| MobileNetV2-SSD | MobileNetV2 | 77.04 | 51.75 | 61.51 | 6204004 | 52.59 |
| MD-MobileNetV2-SSD | MobileNetV2 | 79.73 | 52.68 | 63.69 | 6468920 | 48.23 |
Experimental results presentation
To visually verify the performance of the algorithm, a visual comparative analysis of the test set samples is performed based on the confidence threshold of 0.5, and Fig. 12 presents the test results. The SSD300 detection algorithm suffers from defects such as leakage detection, localization bias, and insufficient confidence in detecting the low liquid level region. In the MobileNetV2-SSD algorithm, the same problems of leakage detection, false detection, and low confidence exist. The algorithm developed in this study effectively addresses the aforementioned issues, achieving a confidence level of over 90% in liquid detection during the filling process and an average accuracy of 87.2% in barrel scale recognition. It significantly enhances both localization precision and detection accuracy, demonstrating strong technical feasibility in industrial-grade dynamic liquid level monitoring scenarios.
Fig. 12.
Detection results of different algorithms for liquid level measurement.
A visual analysis was performed on the PASCAL VOC2007 dataset via randomized sampling of five test images, and the comparative detection results are depicted in Fig. 13. The proposed model achieves detection accuracy comparable to the SSD300 benchmark while requiring substantially lower computational complexity. Compared to the MobileNetV2-SSD architecture, our framework demonstrates significant enhancements in classification accuracy and bounding box localization precision, coupled with markedly reduced missed detection rates in high-density scenarios. These improvements effectively resolve the inherent limitations of MobileNetV2-SSD regarding constrained receptive fields and insufficient hierarchical feature representation. The achieved balance between detection performance and operational efficiency establishes a novel paradigm for deploying high-accuracy visual recognition systems in resource-limited environments.
Fig. 13.
Detection results of different algorithms on the PASCAL VOC2007 dataset.
Conclusion
This study proposes a lightweight object detection architecture for industrial perfusion scenarios, which achieves a synergistic improvement of detection efficiency and accuracy through multilevel structural optimization. A lightweight backbone network is used to significantly compress the model volume. A MS-DIRB is designed to establish multi-receptive-field feature interaction mechanism by integrating dilated convolutions with varying dilation rates. This effectively mitigates the fine-grained information loss during downsampling and enhances the feature representation capability for complex targets. To address the loss in accuracy introduced by the lightweight design, this work integrates Triplet Attention, which enhances the activation of key features by facilitating cross-channel communication. This addition incurs only a 0.02% parameter increase. Experimental results indicate that the improved approach achieves a notable enhancement in detection performance without compromising computational efficiency, making it well-suited for deployment in edge-embedded systems. The scheme effectively meets the real-time demand of dynamic liquid level monitoring tasks through multi-scale feature fusion and attention co-optimization mechanisms and provides a technical path with engineering landing value for liquid level monitoring. Future work will focus on two dimensions: model enhancement and engineering deployment. At the model level, the generalization capability will be validated through the construction of more complex industrial datasets, alongside continued exploration of advanced lightweight backbone networks and attention mechanisms to boost detection accuracy and efficiency in complex scenarios. At the engineering level, efforts will prioritize practical application, leveraging key techniques such as pruning and quantization to accomplish deployment and performance verification on edge computing platforms, ultimately achieving genuine industrial real-time monitoring.
Supplementary Information
Author contributions
X.Q. was responsible for experimental execution, manuscript writing, and figure organization, while L.J. was responsible for developing the initial proposal and experimental design, manuscript editing, and review.
Funding
This research received no external funding.
Data availability
Data is provided within the manuscript or supplementary information files.
Declarations
Competing interests
The authors declare no competing interests.
Footnotes
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary Information
The online version contains supplementary material available at 10.1038/s41598-025-29277-8.
References
- 1.Yan, F., Shao, X., Li, G., Sun, Z. & Yang, Z. Edge detection of tank level ir imaging based on the auto-adaptive double-threshold Canny operator. In 2008 Second International Symposium on Intelligent Information Technology Application, vol. 3, 366–370. 10.1109/IITA.2008.10 (2008).
- 2.Xu, Q., Chakrabarti, C. & Karam, L. J. A distributed Canny edge detector and its implementation on FPGA. In 2011 Digital Signal Processing and Signal Processing Education Meeting (DSP/SPE), 500–505. 10.1109/DSP-SPE.2011.5739265 (2011).
- 3.Felipe, M. A. A., Olegario, T. V., Bugtai, N. T. & Baldovino, R. G. Vision-based liquid level detection in amber glass bottles using OpenCV. In 2019 7th International Conference on Robot Intelligence Technology and Applications (RiTA), 148–152. 10.1109/RITAPP.2019.8932807 (2019).
- 4.Xiao, Y. et al. A review of object detection based on deep learning. In Proc. AAAI Conference on Artificial Intelligence, vol. 79, 23729–23791. 10.1007/s11042-020-08976-6 (2020).
- 5.Narayan, A., D K, C., Saji, S. E., Fang, T. & Saniie, J. A PyTorch-based deep learning approach for enhanced liquid level detection in industrial environments. In 2024 IEEE International Conference on Electro Information Technology (eIT), 562–566. 10.1109/eIT60633.2024.10609939 (2024).
- 6.Kamath, V. & A, R. Investigation of MobileNet-SSD on human follower robot for stand-alone object detection and tracking using Raspberry Pi. Cogent Eng.11, 2333208. 10.1080/23311916.2024.2333208 (2024).
- 7.Deng, S. et al. Edge intelligence: The confluence of edge computing and artificial intelligence. IEEE Internet Things J.7, 7457–7469. 10.1109/JIOT.2020.2984887 (2020). [Google Scholar]
- 8.Wang, L., Zhang, H., Liu, J., Zuo, F. & Lu, S. A Mechanism-aided bilevel knowledge transfer framework for pipeline corrosion condition quantitative assessment. IEEE Trans. Ind. Inform.21, 7165–7175. 10.1109/TII.2025.3574535 (2025). [Google Scholar]
- 9.Wang, L., Zhang, H., Liu, J. & Zuo, F. Knowledge transfer and reinforcement based on biunbiased neural network: A novel solution for open-set fault transfer diagnosis. IEEE Trans. Neural Netw. Learn. Syst.36, 15794–15806. 10.1109/TNNLS.2025.3569582 (2025). [DOI] [PubMed] [Google Scholar]
- 10.Shen, X. et al. A task-oriented physical collaborative network for pipeline defect diagnosis in a magnetic flux leakage detection system. Comput. Ind.169, 104290. 10.1016/j.compind.2025.104290 (2025). [Google Scholar]
- 11.Hosang, J., Benenson, R., Dollár, P. & Schiele, B. What makes for effective detection proposals. IEEE Trans. Pattern Anal. Mach. Intell.38, 814–830. 10.1109/TPAMI.2015.2465908 (2016). [DOI] [PubMed] [Google Scholar]
- 12.Girshick, R., Donahue, J., Darrell, T. & Malik, J. Rich feature hierarchies for accurate object detection and semantic segmentation. In 2014 IEEE Conference on Computer Vision and Pattern Recognition, 580–587. 10.1109/CVPR.2014.81 (2014).
- 13.Girshick, R. Fast R-CNN. In 2015 IEEE International Conference on Computer Vision (ICCV), 1440–1448. 10.1109/ICCV.2015.169 (2015).
- 14.Ren, S., He, K., Girshick, R. & Sun, J. Faster R-CNN: Towards real-time object detection with region proposal networks. IEEE Trans. Pattern Anal. Mach. Intell.39, 1137–1149. 10.1109/TPAMI.2016.2577031 (2017). [DOI] [PubMed] [Google Scholar]
- 15.Liu, W. et al. SSD: Single shot multibox detector. In Computer Vision—ECCV 2016, vol. 9905 of Lecture Notes in Computer Science. 10.1007/978-3-319-46448-0_2 (Springer, 2016).
- 16.Zhou, S. & Qiu, J. RSSD: Object detection via attention regions in SSD detector. In 2019 2nd International Conference on Safety Produce Informatization (IICSPI), 266–269. 10.1109/IICSPI48186.2019.9095895 (2019).
- 17.Araki, R., Onishi, T., Hirakawa, T., Yamashita, T. & Fujiyoshi, H. MT-DSSD: Deconvolutional single shot detector using multi task learning for object detection, segmentation, and grasping detection. In 2020 IEEE International Conference on Robotics and Automation (ICRA), 10487–10493. 10.1109/ICRA40945.2020.9197251 (2020).
- 18.Redmon, J., Divvala, S., Girshick, R. & Farhadi, A. You only look once: Unified, real-time object detection. In 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 779–788. 10.1109/CVPR.2016.91 (2016).
- 19.Ren, P., Fang, W. & Djahel, S. A novel YOLO-Based real-time people counting approach. In 2017 International Smart Cities Conference (ISC2), 1–2. 10.1109/ISC2.2017.8090864 (2017).
- 20.Lin, T.-Y., Goyal, P., Girshick, R., He, K. & Dollár, P. Focal loss for dense object detection. IEEE Trans. Pattern Anal. Mach. Intell.42, 318–327. 10.1109/TPAMI.2018.2858826 (2020). [DOI] [PubMed] [Google Scholar]
- 21.Jianfeng, L. & Palaoag, T. D. Develop a liquid level detection algorithm for infusion bottles based on Ghost-YOLOv4. In 2024 7th International Conference on Computer Information Science and Application Technology (CISAT), 211–215. 10.1109/CISAT62382.2024.10695377 (2024).
- 22.Syed, J. A., Takriti, A. A. & Damindarov, R. R. Computer vision and deep learning enabled real-time liquid level detection and measurement in transparent containers. In 2024 International Conference on Industrial Engineering, Applications and Manufacturing (ICIEAM), 711–716. 10.1109/ICIEAM60818.2024.10553793 (2024).
- 23.Qiao, G., Yang, M. & Wang, H. A water level measurement approach based on YOLOv5s. Sensors. 22, 10.3390/s22103714 (2022). [DOI] [PMC free article] [PubMed]
- 24.Zeng, B. et al. Research on lightweight method of insulator target detection based on improved SSD. Sensors. 24, 10.3390/s24185910 (2024). [DOI] [PMC free article] [PubMed]
- 25.Chang, Y., Ma, D., Ding, Y., Chen, K. & Zhou, D. Lightweight design for infrared dim and small target detection in complex environments. Remote Sens.16, 10.3390/rs16203761 (2024).
- 26.Wang, H. et al. CALYOLOv4: Lightweight YOLOv4 target detection based on coordinated attention. J. Supercomput.79, 18947–18969. 10.1007/s11227-023-05380-3 (2023). [Google Scholar]
- 27.Chen, Y., Zhou, M., Hu, F., Gao, L. & Wang, K. YOLOv8-LDH: A lightweight model for detection of conveyor belt damage based on multispectral imaging. Measurement245, 116675. 10.1016/j.measurement.2025.116675 (2025). [Google Scholar]
- 28.Sandler, M., Howard, A., Zhu, M., Zhmoginov, A. & Chen, L.-C. MobileNetV2: Inverted residuals and linear bottlenecks. In 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, 4510–4520. 10.1109/CVPR.2018.00474 (2018).
- 29.Simonyan, K. & Zisserman, A. Very deep convolutional networks for large-scale image recognition (2015). arXiv:1409.1556.
- 30.Hosang, J., Benenson, R. & Schiele, B. A convnet for non-maximum suppression. In German Conference on Pattern Recognition (GCPR), vol. 9796. 10.1007/978-3-319-45886-1_16 (2016).
- 31.Xiong, S. & Fan, Z. Research on pedestrian detection technology based on SSD algorithm. In 2021 International Conference on Digital Society and Intelligent Systems (DSInS), 352–356. 10.1109/DSInS54396.2021.9670618 (2021).
- 32.Jian, Z., Yonghui, Z., Yan, Y., Ruonan, L. & Xueyao, W. MobileNet-SSD with adaptive expansion of receptive field. In 2020 IEEE 3rd International Conference of Safe Production and Informatization (IICSPI), 177–181. 10.1109/IICSPI51290.2020.9332204 (2020).
- 33.Li, H. & Li, P. Photovoltaic panel hot spot recognition based on lightweight SSD. In 2023 IEEE International Conference on Integrated Circuits and Communication Systems (ICICACS), 1–6. 10.1109/ICICACS57338.2023.10099712 (2023).
- 34.Ning, K. et al. An intelligent surveillance system based on lightweight object detection network L-SSD. In 2019 IEEE International Conference on Integrated Circuits, Technologies and Applications (ICTA), 156–157. 10.1109/ICTA48799.2019.9012867 (2019).
- 35.Zhang, J., Jing, J., Lu, P. & Song, S. Improved MobileNetV2-SSDLite for automatic fabric defect detection system based on cloud-edge computing. Measurement201, 111665. 10.1016/j.measurement.2022.111665 (2022). [Google Scholar]
- 36.Wang, H., Mo, H., Lu, S. & Zhao, X. Electrolytic capacitor surface defect detection based on deep convolution neural network. J. King Saud Univers. Comput. Inf. Sci.36, 101935. 10.1016/j.jksuci.2024.101935 (2024). [Google Scholar]
- 37.Zhang, P., Qi, B. & Huang, W. Enhanced ship target detection with YOLOv5s utilizing lightweight MobileNetV2 and inverted residual block structures. In 2024 IEEE 6th International Conference on Civil Aviation Safety and Information Technology (ICCASIT), 1245–1249. 10.1109/ICCASIT62299.2024.10828069 (2024).
- 38.Yu, Y. & Zhang, C. Facial expression recognition based on improved MobileNetV2 network model. In 2024 5th International Conference on Computers and Artificial Intelligence Technology (CAIT), 65–69. 10.1109/CAIT64506.2024.10962869 (2024).
- 39.Raj, R., Tiwari, P., Gourisaria, M. K. & Das, H. Efficient object detection and labeling in retail environments using MobileNetV2 with inverted residuals. In 2023 OITS International Conference on Information Technology (OCIT), 634–639. 10.1109/OCIT59427.2023.10430647 (2023).
- 40.Li, R. Improved YOLOv7 aerial small target detection algorithm based on hole convolutional ASPP. In 2023 3rd International Conference on Electronic Information Engineering and Computer Communication (EIECC), 663–666. 10.1109/EIECC60864.2023.10456628 (2023).
- 41.Wei, Q., Hu, X., Wang, X. & Wang, H. Improved RetinaNet target detection model. In 2022 2nd International Conference on Algorithms, High Performance Computing and Artificial Intelligence (AHPCAI), 470–476. 10.1109/AHPCAI57455.2022.10087635 (2022).
- 42.Guo, W. & Tang, S. Object detection algorithm based on YOLOv7 traffic infrared image. In 2023 IEEE 5th International Conference on Civil Aviation Safety and Information Technology (ICCASIT), 1471–1474. 10.1109/ICCASIT58768.2023.10351577 (2023).
- 43.Misra, D., Nalamada, T., Arasanipalai, A. U. et al. Rotate to attend: Convolutional Triplet Attention module. In IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), 3139–3148 (IEEE, 2021).
- 44.Wu, M., Xu, G. & Ma, F. Triplet attention mechanism-based framework for tower hard hat detection. In 2025 IEEE 5th International Conference on Power, Electronics and Computer Applications (ICPECA), 135–139. 10.1109/ICPECA63937.2025.10928850 (2025).
- 45.Li, L., Zhou, S., Wang, S. & Zhang, Z. Complex scene random bin picking algorithm based on YOLOv8-TripletAttention. In 2024 10th International Conference on Computer and Communications (ICCC), 725–730. 10.1109/ICCC62609.2024.10942109 (2024).
- 46.Deng, Y., Huang, L. & Gan, X. Heterogeneous attention YOLO model for traffic sign detection. J. Supercomput.81, 765. 10.1007/s11227-025-07256-0 (2025). [Google Scholar]
- 47.Gu, W., Gao, W. & Zou, Y. ATW-YOLO: Reconstructing the downsampling process and attention mechanism of YOLO network for rail foreign body detection. In Signal, Image and Video Processing (SIViP), vol. 19, 368. 10.1007/s11760-025-03958-3 (2025).
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
Data Availability Statement
Data is provided within the manuscript or supplementary information files.


























