[Paper Review] Hazard Detection in Supermarkets using Deep Learning on the Edge
This paper proposes EdgeLite, a lightweight deep learning model for real-time hazard detection in supermarkets using edge devices like the Coral Dev Board and Raspberry Pi. Trained on a new public dataset of supermarket floor hazards, EdgeLite achieves 92.37% accuracy on the Coral Dev Board—outperforming six state-of-the-art models—while maintaining low memory usage and inference time suitable for resource-constrained environments.
Supermarkets need to ensure clean and safe environments for both shoppers and employees. Slips, trips, and falls can result in injuries that have a physical as well as financial cost. Timely detection of hazardous conditions such as spilled liquids or fallen items on supermarket floors can reduce the chances of serious injuries. This paper presents EdgeLite, a novel, lightweight deep learning model for easy deployment and inference on resource-constrained devices. We describe the use of EdgeLite on two edge devices for detecting supermarket floor hazards. On a hazard detection dataset that we developed, EdgeLite, when deployed on edge devices, outperformed six state-of-the-art object detection models in terms of accuracy while having comparable memory usage and inference time.
Motivation & Objective
- Address the lack of public datasets for supermarket floor hazards, particularly spills and debris.
- Develop a lightweight deep learning model suitable for deployment on low-power edge devices with limited memory and processing capacity.
- Enable real-time, on-device inference for hazard detection to reduce latency and improve privacy compared to cloud-based processing.
- Demonstrate that a custom model can outperform existing SOTA models in accuracy while maintaining comparable inference speed and memory usage on edge hardware.
Proposed method
- Collected and curated a new public dataset of 1,500 annotated images depicting supermarket floor hazards such as spills and fallen items.
- Designed EdgeLite, a custom convolutional neural network (CNN) architecture optimized for edge deployment with reduced parameter count and efficient operations.
- Trained the model on a high-end desktop using TensorFlow and MXNet, with Adam optimizer, a batch size of 32, and a learning rate of 0.002 with decay.
- Applied model compression techniques including ONNX export, TensorFlow Lite conversion, and TPU compilation via edgetpu_compiler to reduce model size by over 65%.
- Deployed the final model on two edge devices: the Coral Dev Board and Raspberry Pi for real-time inference.
- Used input images of size 224×224 to standardize evaluation across devices and models.
Experimental results
Research questions
- RQ1Can a custom lightweight CNN architecture achieve higher accuracy than existing SOTA models in detecting supermarket floor hazards on edge devices?
- RQ2To what extent does model compression and TPU compilation reduce inference time and memory usage without sacrificing accuracy?
- RQ3How does the performance of the proposed EdgeLite model compare to MobileNetV1, MobileNetV2, InceptionNet V1/V2, ResNet V1, and GoogleNet in terms of accuracy, latency, and memory footprint on edge hardware?
- RQ4Is it feasible to deploy a high-accuracy object detection model for hazard detection on low-power edge devices like the Raspberry Pi and Coral Dev Board?
- RQ5Does on-device inference using EdgeLite significantly reduce communication costs and privacy risks compared to cloud-based processing?
Key findings
- EdgeLite achieved 92.701% accuracy on the desktop machine, 92.37% on the Coral Dev Board, and 91.981% on the Raspberry Pi—surpassing all six SOTA models in accuracy across all devices.
- On the Coral Dev Board, EdgeLite had an inference time of 0.506 seconds, which was slower than MobileNetV2 (0.268 sec), but still within acceptable real-time thresholds for surveillance applications.
- EdgeLite used 5.2 MB of RAM on the Coral Dev Board and 3.1 MB on the Raspberry Pi—slightly higher than MobileNetV2 (5 MB and 2.74 MB, respectively), but still within practical limits for edge deployment.
- The model compression pipeline reduced the original model size by over 65%, enabling efficient deployment on devices with limited storage and memory.
- The Raspberry Pi showed the most efficient memory usage overall, with all models consuming less RAM than on the desktop or Coral Dev Board.
- The public dataset of 1,500 annotated images fills a critical gap in benchmarking supermarket hazard detection, enabling reproducible research in this domain.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.