A smoking behavior recognition method and system based on multi-source sensor decision-level fusion
By integrating image, smoke, infrared, and temperature and humidity sensors through a multi-source sensor decision-level fusion method, and combining YOLOv6 detection and DS evidence theory, the problem of single sensor susceptibility to interference in public place smoking behavior recognition is solved, achieving real-time monitoring with high accuracy and low false alarm rate.
Patent Information
- Application Number
- CN202611344474.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-01
- Publication Date
- 2026-11-24
AI Technical Summary
In the current technology for identifying smoking behavior in public places, single visual monitoring is easily affected by occlusion, changes in lighting, and small targets at a distance, while single smoke sensors are easily affected by water vapor and oil fumes, resulting in low recognition accuracy and high false alarm rate, making it difficult to meet the requirements of real-time performance and robustness.
A multi-source sensor decision-level fusion method is adopted, integrating an image acquisition module, a smoke sensor, a human infrared sensor, and a temperature and humidity sensor. Multi-source evidence fusion is performed through the YOLOv6 lightweight target detection model and DS evidence theory to reduce the risk of misjudgment and improve the recognition accuracy and system robustness.
It effectively reduces the false alarm rate, improves the identification accuracy and robustness, meets the real-time monitoring needs of public places, and the system is lightweight and suitable for deployment on edge devices, making it valuable for engineering promotion due to its low cost and ease of deployment.
Smart Images

Figure CN123158528A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of intelligent monitoring and information fusion technology, specifically to a smoking behavior recognition method and system based on decision-level fusion of multi-source sensors, which is particularly suitable for automated real-time monitoring and early warning of smoking behavior in public places such as airports, train stations, shopping malls, and office areas. Background Technology
[0002] Smoking in public places not only harms the health of individual smokers but also has a serious negative impact on the public environment. The World Health Organization's Global Tobacco Epidemic Report points out that protecting the public from the harms of tobacco smoke remains a core component of building smoke-free environments. Therefore, constructing an automated monitoring system for smoking behavior that can operate continuously, be deployed at low cost, and has real-time response capabilities has clear engineering application needs and social value.
[0003] Currently, methods for monitoring smoking behavior mainly include manual inspection, single sensor monitoring, visual intelligent recognition, and multi-source fusion judgment.
[0004] (1) Manual inspection and single sensor monitoring
[0005] Early methods primarily relied on manual inspections or threshold judgments from smoke sensors. Manual inspections are limited by the experience of management personnel, inspection frequency, and coverage area, making it difficult to achieve all-weather, full-coverage monitoring. While single smoke sensors are low-cost and fast-responding, they are prone to false alarms in high-humidity environments, under conditions of steam, oil fumes, and particulate matter interference. Traditional vision methods based on frame difference, background modeling, and moving target segmentation are sensitive to changes in lighting, occlusion, distant small targets, and changes in smoke morphology, exhibiting insufficient robustness.
[0006] (2) Visual detection methods based on deep learning
[0007] In recent years, YOLO series single-stage object detection methods have been gradually applied to smoking behavior recognition tasks due to their balance between detection accuracy and inference speed. Targeting the characteristics of smoking behavior, such as human body key points, hand-mouth spatial relationships, and small cigarette targets, related research mainly focuses on two aspects: human posture constraints and small target detection enhancement. For example, Jiang Xiaofeng et al. combined human body key point detection with YOLOv4, using geometric constraints such as hand-mouth distance, arm angle, and movement cycle to determine smoking actions; Chen Sai et al. combined human skeletal key points with improved YOLOv7 cigarette detection for use in park security scenarios; Wang et al. proposed YOLOv8-MNC, improving detection performance through improved feature extraction and small target detection structures; Zhang et al. proposed DAHD-YOLO, introducing multi-branch feature extraction and context anchoring mechanisms based on YOLOv8; and Liu et al. proposed GCEA-YOLO for smoking behavior detection in oilfield operation scenarios.
[0008] The above research shows that lightweight detection models, small target feature enhancement, and robustness optimization in complex scenarios have become important technical approaches for smoking behavior recognition.
[0009] (3) Multi-source information fusion method
[0010] However, single-vision detection is susceptible to factors such as occlusion, changes in lighting, small targets at long distances, and the poor visibility of e-cigarette vapor, making it difficult to maintain stable judgments in complex public places. To address this, researchers have introduced multi-source heterogeneous information fusion methods. Yang et al. constructed a dual-modal target detection algorithm based on CNN-Transformer, combining infrared and visible light; Hamda et al. proposed an improved combination method based on evidence distance and belief entropy to address the high-conflict evidence problem in multi-sensor data fusion in the IoT environment; Wang et al. fused multi-source sensor data such as temperature, CO, and smoke in tunnel fire detection, verifying the applicability of the improved DS evidence theory in security monitoring.
[0011] Nevertheless, existing methods are mostly focused on general target detection or fire safety monitoring scenarios. Unified modeling of smoking behavior in public places, involving visual evidence, smoke response, human presence information, and environmental constraints such as temperature and humidity, still lacks a systematic solution. Furthermore, some fusion models have high computational complexity, making them difficult to deploy on low-power edge devices and unable to meet real-time requirements.
[0012] In summary, for real-time identification of smoking behavior in public places, there is an urgent need to construct a lightweight fusion method and system that takes into account the uncertainty modeling of multi-source evidence, real-time reasoning at the edge, and strong anti-interference ability in complex environments. Summary of the Invention
[0013] I. Technical problems to be solved
[0014] To address the technical problems of low accuracy and high false alarm rate in smoking behavior recognition caused by single visual monitoring being susceptible to occlusion, lighting, and small targets at a distance, and single smoke sensors being susceptible to interference from water vapor and cooking fumes, this invention provides a smoking behavior recognition method and system based on decision-level fusion of multi-source sensors. By combining multi-source heterogeneous sensor collaborative perception with decision-level fusion of DS evidence theory, the method effectively reduces the risk of single-modal misjudgment and improves recognition accuracy and system robustness.
[0015] II. Technical Solution
[0016] To achieve the above objectives, the present invention provides the following technical solution.
[0017] 1. System Overall Architecture
[0018] This invention employs a collaborative architecture of "edge-end data acquisition and inference + cloud-based storage and analysis." The edge computing platform serves as the core computing unit, integrating an image acquisition module, a smoke sensor, a human infrared sensor, and a temperature and humidity sensor to construct a multi-source heterogeneous data acquisition network. After acquisition, the multi-source data undergoes target detection and fusion decision-making at the edge. The decision results and keyframes are then transmitted to the cloud or PC for visualization and historical data storage.
[0019] 2. Sensor Module and Data Acquisition
[0020] The image acquisition module uses a high-definition camera to capture video images of the monitored area.
[0021] A smoke sensor is used to detect the smoke concentration in a monitored area. Preferably, the smoke sensor is an MQ-2 type semiconductor gas sensor, and its sensitive material is tin dioxide. It exhibits high resistance in clean air, but its resistance decreases upon encountering a reducing gas, causing a change in the output voltage. (Sensitive resistor...) With smoke concentration The functional relationship between them is:
[0022] (1)
[0023] in, This is the reference resistance value in clean air, calibrated experimentally. This is the sensitivity coefficient.
[0024] The analog voltage signal output by the smoke sensor is converted into a digital signal by an analog-to-digital converter (ADC). Mapping parameters are determined using a two-point calibration method, and the ADC readings are then used to... Converted to smoke concentration :
[0025] (2)
[0026] in, For conversion factors, This represents the median ADC reading corresponding to clean air.
[0027] The human infrared sensor is used to detect the presence of a human body in the monitored area. Preferably, the human infrared sensor is a passive infrared (PIR) sensor, sensitive to infrared radiation in the wavelength range of 7–14 μm, and outputs a TTL level signal: a high level is output when human movement is detected, and a low level is output otherwise.
[0028] The temperature and humidity sensor is used to detect the temperature and humidity of the monitored area. Preferably, the temperature and humidity sensor is a single-bus digital temperature and humidity sensor, and its measurement accuracy within the temperature range of 0 to 50°C and the humidity range of 20% to 90% meets the system requirements.
[0029] Multi-source data is encapsulated into data frames according to a preset protocol and transmitted to the edge computing platform via wired or wireless means.
[0030] 3. Visual Inspection Module
[0031] The visual detection module uses a lightweight object detection model to detect objects in video images and outputs the visual detection confidence score.
[0032] Preferably, the lightweight object detection model is the YOLOv6 model. YOLOv6 employs a RepVGG reparameterizable structure in its backbone network, a multi-branch architecture during training, and merges multiple branches into a single 3×3 convolution during inference through algebraic transformations, achieving a balance between accuracy and speed. The detection head uses an Efficient DecoupledHead, separating the classification and regression tasks.
[0033] More preferably, the YOLOv6 model undergoes one or more of the following optimizations:
[0034] (1) INT8 post-quantization: The FP32 floating-point model after training convergence is converted into an INT8 fixed-point model, and the quantization parameters of each activation layer are determined by KL divergence calibration method.
[0035] (2) Structured pruning: The channels of the RepVGG backbone network are subjected to L1 regularized sparse training, and the L1 norm penalty term of the channel weights is added to the loss function. ,in The scaling factor for the batch normalization layer;
[0036] (3) Loss function optimization: The SIoU (SCYLLA-IoU) loss function is used instead of the GIoU loss function to explicitly consider the angle difference between the predicted box and the ground truth box. The SIoU loss is defined as:
[0037] (3)
[0038] in, For distance cost, Cost of shape.
[0039] Before inference, the visual detection module preprocesses the video images, including bilinear interpolation scaling, Gaussian smoothing filtering, color space transformation and histogram equalization, and normalization.
[0040] 4. Multi-source evidence fusion module
[0041] The multi-source evidence fusion module is built on the Dempster-Shafer evidence theory and is used to map the data from each sensor to a unified basic probability assignment (BPA), and to achieve multi-source evidence fusion through the Dempster combination rule.
[0042] (1) Identification Frame
[0043] Establish an identification framework ,in This indicates "currently not smoking". This indicates "smoking behavior is currently present." The power set of the identification frame. It contains all possible combinations of propositions.
[0044] (2) Basic Probability Assignment (BPA)
[0045] The system comprises four evidence sources: a visual detection source, a smoke sensor source, a human infrared sensor source, and a temperature and humidity sensor source. Let the... One source of evidence for the proposition The confidence level is The reliability weight of this source of evidence in the fusion decision is: The basic probability assignment function is defined as:
[0046] (4)
[0047] in, This indicates that the source of the evidence cannot be determined. or The confidence level, i.e. the quantitative expression of the "ignorance" part, reflects the core advantage of DS evidence theory in uncertainty modeling.
[0048] The confidence level for each source of evidence is calculated as follows:
[0049] (a) Visual detection source
[0050] Since the confidence scores of deep learning models often suffer from calibration bias, this invention employs a temperature scaling method to calibrate the original confidence scores.
[0051] (5)
[0052] in, Confidence of visual evidence scaled to temperature. The raw detection confidence score output by the YOLOv6 model. The temperature scaling parameter was determined through validation set sensitivity analysis.
[0053] (b) Smoke sensor source
[0054] First, the sensor's reference ADC value was collected under clean air conditions. Real-time ADC readings Converted to relative smoke response :
[0055] (6)
[0056] The relative smoke response was then mapped to smoke evidence confidence using the Logistic function:
[0057] (7)
[0058] in, The slope parameter controls the steepness of the confidence transition from 0 to 1; It is the half-saturation point, that is The ADC value corresponding to a confidence level of 0.5. The above parameters were determined through sensor calibration experiments.
[0059] (c) Human infrared sensor source
[0060] The human infrared sensor outputs a binary signal. Its confidence level is directly taken as:
[0061] (8)
[0062] (d) Temperature and humidity sensor source
[0063] Environmental parameters do not directly indicate smoking behavior, but they provide contextual information for other sources of evidence. The confidence levels for temperature and humidity are defined as follows:
[0064] (9)
[0065] in, For the Sigmoid function, Temperature threshold This is the humidity threshold. When the ambient temperature is high and the humidity is low... A larger value indicates that the current environmental conditions are favorable for smoke diffusion and detection, and the reliability of other evidence sources should be improved.
[0066] (3) Dempster's combination rule
[0067] set up and It is an identification framework Let there be two fundamental probability assignment functions on the given surface, and they are independent. Then their orthogonality is... Defined as:
[0068] (10)
[0069] (11)
[0070] Among them, the normalization factor Indicates the degree of conflict between two sources of evidence:
[0071] (12)
[0072] The range of values is : This indicates that the evidence is completely consistent; A larger value indicates a more significant contradiction between pieces of evidence; when When the denominator approaches 1, The combination rule is invalid.
[0073] The present invention defines the following grading criteria for the degree of conflict:
[0074] Low conflict, good consistency of evidence, and high credibility of fusion results;
[0075] There are conflicts and disagreements between China and the West, and the results of the integration should be adopted with caution.
[0076] High conflict, with seriously contradictory evidence.
[0077] when When this happens, the system automatically triggers the "manual review" flag, prompting administrators to check whether the relevant sensors are working properly.
[0078] The system performs Dempster fusion sequentially from visual source to smoke source to infrared source to temperature and humidity source. The basic probability distribution after fusion is denoted as... .
[0079] (4) Decision-making rules
[0080] The decision rule adopts the maximum value criterion: if And the difference exceeds the threshold If the smoking behavior is confirmed, then the smoking behavior is determined to exist; otherwise, it is determined to be non-smoking behavior or an uncertain state is entered.
[0081] 5. Sliding time window smoothing mechanism
[0082] To suppress frequent state jitter caused by transient disturbances, a sliding time window smoothing mechanism is introduced.
[0083] Let the visual frame timestamp sequence be The sensor sampling timestamp sequence is For the first For each frame of visual image, the most recent sensor sampling result no later than the time of that visual frame is used for alignment:
[0084] (13)
[0085] When satisfied At that time, the sensor reading is considered valid at the current visual frame moment and participates in the fusion.
[0086] At each visual frame time (t_i^v), the system inputs the confidence scores of each evidence source into the DS evidence fusion module to obtain the basic probability allocation of the fusion for the current frame:
[0087] (14)
[0088] Define a frame-level fusion determination flag function:
[0089] (15)
[0090] Let the width of the sliding window be... Seconds. At the current moment. The set of frame-level fusion determinations participating in the statistics within the window is as follows:
[0091] (16)
[0092] The number of fusion decisions that satisfy the smoking judgment within the window is:
[0093] (17)
[0094] The total number of fusion decisions within the window is:
[0095] (18)
[0096] The percentage of judgments for smoking inside the window is:
[0097] (19)
[0098] When satisfied At that time, the system outputs a smoking alarm, among which This is a preset ratio threshold. Preferably, , .
[0099] 6. Methodology and Flow
[0100] The smoking behavior recognition method based on multi-source sensor decision-level fusion provided by this invention includes the following steps:
[0101] S1: Acquire video images of the monitored area through the image acquisition module, detect smoke concentration through the smoke sensor, detect the presence of human bodies through the human infrared sensor, and detect temperature and humidity through the temperature and humidity sensor;
[0102] S2: Perform target detection on the video image and output the visual detection confidence score;
[0103] S3: Map the visual detection confidence level, smoke concentration, human presence information and temperature and humidity data to a unified basic probability allocation;
[0104] S4: Based on the DS evidence theory, the basic probability allocations of each evidence source are fused to obtain the fused basic probability allocation;
[0105] S5: Output the smoking behavior judgment result based on the basic probability allocation after fusion.
[0106] Preferably, in step S2, a lightweight YOLOv6 target detection model is used for target detection, and the model is optimized by INT8 quantization and / or structured pruning.
[0107] Preferably, in step S3, the confidence level of the smoke sensor source is calculated according to formulas (6) and (7).
[0108] Preferably, in step S4, the Dempster combination rule is used to perform fusion according to formula (10), and the conflict coefficient is calculated according to formula (12). ;when At that time, the manual review flag is triggered.
[0109] Preferably, in step S5, a sliding time window smoothing mechanism is used to make the determination according to formulas (15) to (19).
[0110] III. Beneficial Effects
[0111] Compared with the prior art, the present invention has the following advantages:
[0112] 1. Multimodal collaborative perception enhances detection robustness: This invention integrates four types of heterogeneous sensors: image, smoke concentration, human presence, and temperature and humidity. Through the collaborative perception of visual behavioral evidence and environmental constraint evidence, it effectively solves the problems of single visual perception being susceptible to occlusion and lighting effects, as well as the problem of single smoke sensors being susceptible to interference from water vapor and oil fumes.
[0113] 2. Dempster Evidence Theory-Based Decision Fusion to Reduce False Alarm Rate: This invention constructs a multi-source evidence fusion model based on Dempster evidence theory. It explicitly expresses the uncertainty of each evidence source through basic probability allocation, achieves organic fusion of multi-source evidence through Dempster's combination rule, and utilizes the conflict coefficient... The degree of contradiction between quantitative evidence was analyzed. Experimental results show that the system's false alarm rate can be reduced to 1.6%, which is significantly better than single vision and single sensor solutions.
[0114] 3. Lightweight visual detection model for real-time edge inference: This invention adopts a lightweight YOLOv6 target detection model, combined with RepVGG reparameterizable structure, INT8 quantization and structured pruning method, to achieve an inference speed of 72FPS on edge devices, with an average response latency of only 386ms, meeting the real-time monitoring needs of public places.
[0115] 4. Sliding time window smoothing mechanism to suppress state jitter: This invention introduces a sliding time window smoothing mechanism, which counts the proportion of fusion decisions that meet the smoking judgment conditions within the time window. When the proportion exceeds a preset threshold, an alarm is output, which effectively suppresses frequent state jitter caused by instantaneous interference.
[0116] 5. Low cost, easy deployment, and high engineering promotion value: This invention takes an edge computing platform as its core, with low hardware cost per node, and can be flexibly deployed in various public places, with good return on investment and engineering promotion value. Attached Figure Description
[0117] Figure 1 This is a schematic diagram of the overall hardware architecture of the system of the present invention;
[0118] Figure 2 This is a hardware block diagram of the system of the present invention;
[0119] Figure 3 This is a circuit diagram of the sensor module of the present invention;
[0120] Figure 4 This is a flowchart of the system software of the present invention;
[0121] Figure 5 This is the main program flowchart of the present invention;
[0122] Figure 6 This is a point diagram of the scene of the present invention;
[0123] Figure 7 Real-world images of the scenario deployment for this invention. Detailed Implementation
[0124] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort are within the scope of protection of the present invention.
[0125] Example 1: System Overall Architecture and Hardware Implementation
[0126] like Figure 1 As shown, this invention provides a smoking behavior recognition system based on multi-source sensor decision-level fusion, employing a collaborative architecture of "edge-end data acquisition and inference + cloud-based storage and analysis." The edge device uses a Raspberry Pi 4B as its core computing unit, equipped with a quad-core Cortex-A72 processor (1.5GHz) and 4GB of LPDDR4 memory. It connects to a high-definition camera (1080p resolution, 25FPS frame rate) via a USB 3.0 interface and to an MQ-2 smoke sensor, a DHT11 temperature and humidity sensor, and an HC-SR501 human infrared sensor via GPIO interfaces. After multi-source data is acquired, target detection and fusion decision-making are performed at the edge device. The decision results and keyframes are transmitted to a PC via TCP socket for visualization and historical data storage.
[0127] like Figure 2 As shown, the Raspberry Pi acts as the main controller, reading data from three types of sensors via polling, with a data acquisition cycle of 1 second. When a new frame arrives, the system triggers a YOLOv6 inference task. GPIO pins are configured for input mode and connected to the data output terminals of the sensors. All peripherals are connected through independent I / O channels to avoid signal crosstalk. The data acquisition thread and the visual inference thread employ different scheduling priorities to ensure the real-time performance of critical tasks.
[0128] The circuit design of the sensor module is as follows: Figure 3 As shown. The MQ-2 smoke sensor is powered by 5V, and its sensitive material is tin dioxide. The analog voltage signal output by the sensor is converted into a digital signal by a 16-bit analog-to-digital converter ADS1115 and transmitted to the Raspberry Pi at a rate of 400kbps via the I²C bus.
[0129] Sensitive resistor With smoke concentration The functional relationship is as follows:
[0130]
[0131] in This is the reference resistance value in clean air, calibrated experimentally. This is the sensitivity coefficient. The mapping parameters were determined using a two-point calibration method (clean air and 500 ppm butane standard gas), and the ADC readings were then used. Converted to smoke concentration :
[0132]
[0133] in For conversion factors, This represents the median ADC reading corresponding to clean air.
[0134] The DHT11 temperature and humidity sensor employs a single-bus communication protocol. At the start of data acquisition, the host first sends a low-level start signal of ≥18ms, followed by pulling the bus high for 20–40μs. Upon response, the sensor returns a 40-bit data packet in the following format: 8-bit humidity integer + 8-bit humidity decimal + 8-bit temperature integer + 8-bit temperature decimal + 8-bit checksum. Verification has shown that the sensor's measurement accuracy within the 0–50℃ temperature range and 20%–90% humidity range meets system requirements (temperature ±2℃, humidity ±5%).
[0135] The HC-SR501 human infrared sensor operates based on the passive infrared (PIR) principle and is sensitive to infrared radiation in the 7–14 μm wavelength range. The peak radiation from normal human body temperature (approximately 37°C) is located around 9.4 μm, which falls within the sensor's response band. The sensor outputs a TTL level signal: a high level (3.3V) when human movement is detected, and a low level (0V) otherwise. The sensing angle is a 120° cone angle, and the sensing distance is adjustable (3–7 meters).
[0136] Multi-source data is encapsulated into 11-byte fixed-length frames according to the format in Table 1. The frame header uses a 0xAA55 two-byte synchronization code for the receiver to detect the start position of the frame. Sensor data is filled in sequentially, and a CRC-8 checksum byte is appended to the end of the frame to ensure that the bit error rate of the wireless link transmission is lower than [previous value]. .
[0137] Table 1 Multi-source data encapsulation protocol
[0138] byte Bit width meaning Range / resolution 0~3 32bit Temperature × 100 0~500K (resolution 0.01℃) 4~7 32bit Humidity × 100 0~10000 (resolution 0.01%RH) 8 8bit Infrared level 0 or 1 9~10 16bit MQ-2 ADC value 0~1023 (corresponding to 0~3.3V)
[0139] System software process as follows Figure 4 As shown, a dual-thread scheduling strategy is adopted: a high-priority thread is responsible for image acquisition and YOLOv6 inference, while a low-priority thread is responsible for sensor data acquisition and decision fusion. The two threads exchange data through shared memory and use mutex locks to ensure data consistency.
[0140] After system startup, the initialization of each module is completed, including GPIO pin configuration, camera parameter settings, YOLOv6 model loading, and network connection establishment. Then, two timers are started: an image timer (40ms period) to trigger video frame acquisition and target detection, and a sensor timer (1s period) to trigger sensor data reading. The main loop continuously listens for user interface events, updates the display based on the fusion decision results, and stores the data in the database.
[0141] The main program flow is as follows Figure 5 As shown, the complete logic from initialization to the event loop is illustrated in detail.
[0142] Example 2: Specific Implementation of the Visual Inspection Module
[0143] The visual inspection module uses the YOLOv6 lightweight object detection model. YOLOv6 is designed for real-world deployment scenarios and features significant improvements in the backbone network, detection head, and training strategy.
[0144] For the backbone network, a RepVGG structure is adopted. During the training phase, a multi-branch architecture is used, which includes a parallel combination of 3×3 convolution branches, 1×1 convolution branches, and identity mapping branches. By drawing on the idea of residual networks, gradient propagation is enhanced through multi-path information flow, avoiding the gradient vanishing problem of deep networks. During the inference phase, algebraic transformations are used to merge multiple branches into a single 3×3 convolution, which significantly improves the inference speed.
[0145] In terms of the detection head, an Efficient Decoupled Head is adopted to separate the classification and regression tasks. Each branch uses a lightweight combination of 1×1 convolution and 3×3 convolution, which allows classification and regression to be optimized independently, while controlling the growth of the number of parameters through parameter sharing.
[0146] In terms of training strategy, an Anchor-Auxiliary strategy is introduced, using anchor boxes for auxiliary supervision during the training phase and completely anchor-free during the inference phase; at the same time, self-distillation technology is adopted to improve model performance. The YOLOv6-Nano version has only 4.3M parameters and achieves an inference speed of 45FPS on an ARM Cortex-A72 processor, making it suitable for deployment on edge devices.
[0147] I. Dataset Construction
[0148] To cover the diversity of various real public places, data was collected through a dual-channel approach of "web crawling + on-site shooting". A total of 6,240 original images were obtained, with resolutions of 1280×720 and 1920×1080, covering scenes such as office corridors, high-speed rail waiting halls, restaurant private rooms, library study rooms, and low-light environments at night. The LabelImg tool was used to manually annotate the images, with labels divided into two categories: "person" and "smoke". Among them, "smoke" was further subdivided into cigarette smoke (4,082 cases, about 68%) and e-cigarette vapor (2,158 cases, about 32%) based on the difference in smoke source. The annotation followed three rules: (1) a horizontal bounding box was used, with the effective pixel ratio within the box being greater than 80%; (2) different targets in the same image with a mutual occlusion degree of less than 50% should be annotated separately; (3) the smoke area should contain the visible outline of the main smoke plume, and a small amount of background is allowed.
[0149] After two rounds of cross-review, 240 images with inconsistent labeling or poor quality were removed, leaving 6000 valid images. These images were randomly divided into a training set (4800 images), a validation set (600 images), and a test set (600 images) in an 8:1:1 ratio. Stratified sampling was used to ensure consistent category distribution across subsets, and the KL divergence test value was less than 0.01, indicating negligible distribution differences.
[0150] II. Data Augmentation
[0151] Data augmentation employs a hybrid strategy of offline and online augmentation. In the offline augmentation phase, the following is applied sequentially to the training set images: random horizontal flipping (probability-based) Random rotation (±15°), color jitter (brightness adjustment ±20%, contrast adjustment ±15%), and Mosaic-9 stitching (3×3 grid) were applied. After offline enhancement, the training sample size was expanded to 24,000 images. In the online enhancement stage, the YOLOv6 built-in Albumentations data enhancement pipeline was used to generate enhanced data in real time during model training, including adding Gaussian noise (…). ) and random fogging (Fog, ).
[0152] III. Model Optimization Methods
[0153] To achieve real-time inference speeds on edge devices, YOLOv6-Nano undergoes three optimizations:
[0154] (1) Quantization acceleration after INT8: The FP32 floating-point model after training convergence is converted into an INT8 fixed-point model. The quantization parameters of each activation layer are determined by KL divergence calibration. The quantized model reduces the mAP from 0.742 to 0.733 on the test set, with the accuracy loss controlled within 1.2%, and the inference speed is increased from 32 FPS to 74 FPS.
[0155] (2) Structured pruning: A network slimming method is used to perform L1 regularized sparse training on the channels of the RepVGG backbone network. An L1 norm penalty term for the channel weights is added to the loss function. ,in is the scaling factor for the batch normalization layer. After pruning, the number of model parameters decreased from 4.3M to 3.5M (a reduction of 18%), FLOPs decreased by 22%, and accuracy decreased by only 0.4% (mAP decreased from 0.742 to 0.738).
[0156] (3) Loss function optimization: Replace the original GIoU bounding box loss with SIoU loss, and explicitly consider the angle difference between the predicted box and the ground truth box:
[0157]
[0158] Experiments show that SIoU loss improves mAP by 1.1%.
[0159] Table 2 Comparison of YOLOv6 model optimization effects
[0160] Model Configuration Number of parameters (M) Inference speed (FPS) mAP@0.5 relative baseline change YOLOv6-Nano (baseline) 4.3 32 0.742 — +INT8 Quantization 4.3 74 0.733 -0.009 +Structured pruning 3.5 39 0.738 -0.004 +Quantification +Pruning 3.5 72 0.736 -0.006 +Quantification +Pruning +SIoU 3.5 72 0.749 +0.007
[0161] IV. Preprocessing Link
[0162] The preprocessing stage of the inference pipeline performs four operations sequentially: bilinear interpolation resizes to 640×640 pixels; applies a 5×5 Gaussian kernel ( Smoothing filtering is performed; histogram equalization is applied to the Y channel in the YCrCb color space; normalization is then performed. The information entropy of the preprocessed image is then calculated. Improvement of approximately 18%, edge gradient energy This represents an improvement of approximately 12%, which is beneficial for detecting small smoke plumes. Preprocessing is entirely performed on the CPU, with a single frame taking 8ms, accounting for approximately 10% of the entire inference process.
[0163] Example 3: Specific Implementation of the Multi-Source Evidence Fusion Module
[0164] This embodiment describes the detailed implementation of the multi-source evidence fusion module.
[0165] I. Identification Framework and Basic Probability Assignment
[0166] The system comprises four evidence sources: a visual detection source, a smoke sensor source, a human infrared sensor source, and a temperature and humidity sensor source. Let the... One source of evidence for the proposition The confidence level is The reliability weight is The basic probability allocation function is defined by formula (4).
[0167] Visual detection source: Raw detection confidence score output by the YOLOv6 model. After temperature scaling calibration Temperature scaling parameters Sensitivity analysis of the validation set was used to determine this. .
[0168] Smoke sensor source: First, calculate the relative smoke response using formula (6). Then, the confidence level is mapped using the Logistic function according to formula (7):
[0169]
[0170] Among them, the MQ-2 sensor calibration experiment was used to determine , .
[0171] Human infrared source: Take according to formula (8) ,in .
[0172] Temperature and humidity source: calculated according to formula (9) ,in , .
[0173] II. Dempster Combinations and Conflict Measurement
[0174] The system performs Dempster combinations sequentially in the order of visual source → smoke source → infrared source → temperature and humidity source. For two BPAs... and The orthogonal sum is calculated according to formula (10). Conflict coefficient. Calculate according to formula (12).
[0175] In actual operation, when high-conflict scenarios occur (such as a sudden increase in MQ-2 readings while a steam cleaner is operating but no cigarette target is detected visually), the conflict coefficient... The error rate can reach 0.78. The system automatically triggers the manual review flag and temporarily suspends alarm output, effectively avoiding false alarms.
[0176] III. Decision Making and Time Smoothing
[0177] Decision-making based on the maximum value criterion: If And the difference exceeds the threshold If so, then the act of smoking is determined to have occurred.
[0178] Simultaneously, time alignment and sliding window smoothing are performed according to formulas (13) to (19). Window width threshold This mechanism ensures that an alarm is only output when the fusion confidence exceeds the threshold more than 60% of the time within the window, effectively suppressing transient interference.
[0179] Example 4: Experimental Verification and Performance Evaluation
[0180] This embodiment illustrates the test results of the system in a real public place.
[0181] I. Experimental Setup
[0182] The experiment deployed test nodes in three representative public locations: office corridors (illuminance range 45–220 lux, area approximately 80 m²), high-speed rail waiting halls (80–1200 lux, approximately 400 m²), and restaurant private rooms (30–180 lux, approximately 50 m²). A total of 6 nodes were deployed, accumulating approximately 20 hours of continuous video data collection. The frame contains 215 smoking events (positive samples) and 1085 non-smoking events (negative samples).
[0183] Evaluation metrics include: Precision, Recall, F1-score, Mean Precision (mAP@0.5), and Mean Response Time (MRT). ) and false positive rate (FPR).
[0184] II. Overall Performance Comparison
[0185] The complete system of this invention was compared with four baseline methods: (1) visual detection using only YOLOv6; (2) sensor-only (MQ-2 + human infrared + temperature and humidity threshold judgment); (3) real-time smoking detection algorithm based on improved YOLOv4 proposed in relevant literature; and (4) multi-person smoking action recognition method based on human joint points proposed in relevant literature. The performance comparison results are shown in Table 3.
[0186] Table 3 Performance Comparison of Different Methods
[0187] Evaluation indicators This system Visual only Sensors only Based on improved YOLOv4 Based on human joint points Precision 0.956 0.945 0.887 0.943 0.925 Recall 0.742 0.712 0.542 0.698 0.725 F1 score 0.836 0.812 0.678 0.804 0.814 mAP@0.5 0.749 0.742 — 0.728 0.731 <![CDATA[T lat (ms)]]> 386 385 320 510 1800 FPR (%) 1.6 2.4 11.4 2.6 3.2
[0188] As shown in Table 3, this invention outperforms the comparative methods in terms of Precision, Recall, F1-score, and FPR. Compared with the visual-only method, the recall rate of this system increased from 0.712 to 0.742, and the F1-score increased from 0.812 to 0.836, indicating that sensor evidence can supplement some visually missed samples. The average system response latency is 386ms, which is lower than the practical threshold of 500ms, meeting the real-time early warning requirements for public places.
[0189] III. Comparison of Different Fusion Algorithms
[0190] To verify the advantages of the DS evidence theory method, this scheme is integrated with weighted voting (weighting). The results were compared with those of Bayesian fusion (equal prior probabilities). The results are shown in Table 4.
[0191] Table 4 Performance Comparison of Different Fusion Algorithms
[0192] Fusion Method Precision Recall F1 FPR (%) Single-frame fusion time (ms) Weighted voting (β=0.6) 0.942 0.718 0.814 2.5 2 Bayesian fusion (and other prior knowledge) 0.938 0.725 0.817 2.8 3 DS Evidence Theory (This Invention) 0.956 0.742 0.836 1.6 3
[0193] The DS method outperforms weighted voting and Bayesian fusion in all metrics, particularly in precision (95.6%) and false alarm rate (1.6%). Analysis suggests that the DS method, through... Explicitly expressing the state of "uncertainty" allows for the postponement of decisions rather than the forced output when there is conflicting evidence, which is the main reason why it is superior to weighted voting and Bayesian methods.
[0194] IV. Analysis of Key Influencing Factors
[0195] Experiments on the effect of light intensity show that when the illuminance drops below 50 lux, the mAP of the baseline YOLOv6 model without preprocessing assistance decreases from 0.749 to 0.658, a reduction of 12.2%. Under these conditions, the complete model of this invention (including preprocessing) has an mAP of 0.726, a reduction of only 3.1%, verifying the adaptability of histogram equalization preprocessing to low-light environments.
[0196] Experiments on the effects of environmental temperature and humidity showed that the false alarm rate of a single sensor was 6.3% under normal temperature and humidity conditions, but soared to 22.4% under high temperature and high humidity conditions. The fusion system of this invention maintained a false alarm rate below 2.1% under all conditions, validating the confidence level of the temperature and humidity sources. The effectiveness.
[0197] V. System Delay Decomposition
[0198] Table 5 shows the latency contribution breakdown of each module in the system. Quantized YOLOv6 inference is the most time-consuming step (128ms, accounting for 33.2%). DS evidence fusion accounts for only 5ms (1.3%), confirming the lightweight nature of the fusion engine.
[0199] Table 5 System Delay Decomposition
[0200] Module Delay (ms) Percentage of total delay Image Acquisition 40 10.4% YOLOv6 reasoning (INT8, including preprocessing) 128 33.2% Sensor readings (three-way parallel processing) 5 1.3% Data encapsulation and TCP transmission 10 2.6% DS Evidence Fusion (Four Sources + Time Smoothing) 5 1.3% Front-end display and database writing 190 49.1% Total system latency 386 100%
[0201] Example 5: System Deployment and Application Verification
[0202] This system has been piloted and deployed in the waiting hall of a high-speed railway station. Deployment locations are as follows: Figure 6 As shown, the actual deployment scene is as follows: Figure 7 As shown, a total of 3 monitoring nodes were installed, covering an area of approximately 600m². Each node is powered via PoE (Power over Ethernet), with a Raspberry Pi 4B mounted in a custom metal protective box (with a cooling fan) and fixed to a wall or pillar 2.5 meters above the ground. The cameras have a downward angle of approximately 15°, and the horizontal field of view covers the main waiting area and passageways. The backend server is deployed in the station's monitoring center, receiving alarm information from each node via the MQTT protocol and can be linked with the broadcast system.
[0203] The statistical data of the system running continuously for 2 months is shown in Table 6.
[0204] Table 6 Actual Operation Statistics (2 months)
[0205] Statistical indicators numerical values Cumulative runtime 1440 hours Smoking event detected 173 times Number of valid alarms 167 times Number of false alarms 6 times Number of missed detections 5 times Average alarm response time 392ms System online rate 99.8%
[0206] I. Representative Cases
[0207] Case 1 (Successfully Detected): A male passenger lit a cigarette in the seating area in the middle of the waiting hall. Approximately 3 seconds later, the system issued a smoking alarm with a delay of 410ms. Security personnel arrived at the scene within 45 seconds after receiving the alarm and dissuaded the passenger from smoking.
[0208] Case 2 (Interference Resistance Verification): When cleaning staff used the steam cleaner, the MQ-2 sensor reading spiked, but visual detection failed to detect the cigarette target. The fusion engine detected a conflict of evidence. The system correctly outputs "normal", avoiding false alarms.
[0209] Case 3 (Missed Detection Analysis): At the edge of the monitoring at the furthest node (approximately 15 meters away), a passenger was seen smoking an e-cigarette. The smoke concentration was low and the passenger was facing away from the camera, so neither the visual system nor the sensors triggered the detection, resulting in a missed detection. Plans are underway to add more nodes in this area.
[0210] II. Economic Analysis
[0211] The hardware cost of a single node is approximately 850 yuan. Taking the deployment of 3 nodes in a 600m² waiting hall as an example, the total hardware investment is approximately 2550 yuan, plus installation and debugging costs of approximately 4000 yuan. If manual inspection is used, the annual labor cost exceeds 60,000 yuan, indicating that this system has a good return on investment.
[0212] III. Technological Expansion
[0213] The multimodal perception and decision fusion framework of this invention can be extended to scenarios such as fire early warning in chemical industrial parks, classroom behavior detection on campuses, and fall monitoring for the elderly in nursing homes, and has good versatility.
[0214] Industrial applicability
[0215] The smoking behavior recognition method and system based on multi-source sensor decision-level fusion provided by this invention can be widely applied to the automatic monitoring and early warning of smoking behavior in public places such as airports, train stations, shopping malls, office buildings, schools, and hospitals. The system has advantages such as high recognition accuracy, low false alarm rate, low response latency, and low deployment cost, and has good market application prospects and promotional value. Furthermore, the multi-source sensing and decision fusion framework of this invention can also be extended to scenarios such as fire early warning in chemical industrial parks, classroom behavior detection on campuses, and fall monitoring for the elderly in nursing homes, demonstrating good versatility and potential for technological expansion.
[0216] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A smoking behavior recognition method based on multi-source sensor decision-level fusion, characterized in that, Includes the following steps: S1: Acquire video images of the monitored area through the image acquisition module, detect smoke concentration through the smoke sensor, detect the presence of human bodies through the human infrared sensor, and detect temperature and humidity through the temperature and humidity sensor; S2: Perform target detection on the video image and output the visual detection confidence score; S3: Map the visual detection confidence, smoke concentration, human presence information and temperature and humidity data to a unified basic probability assignment (BPA). S4: fusing the basic probability assignments of each evidence source based on D-S evidence theory to obtain the fused basic probability assignment ; S5: Output the smoking behavior determination result based on the fused basic probability allocation; In the step S3, the confidence degree of the i-th evidence source to the proposition is denoted as , the reliability weight of the evidence source is denoted as , and the recognition framework is denoted as . , , denotes no smoking behavior, denotes the existence of smoking behavior, and the basic probability assignment function is defined as:
2. The method of claim 1, wherein, In step S4, the Dempster combination rule is used for fusion: where the conflict coefficient is defined as: When the artificial review flag is triggered.
3. The method according to claim 1, characterized in that, In step S2, a lightweight YOLOv6 object detection model is used for object detection. This model is optimized with INT8 quantization and / or structured pruning and deployed on an edge computing platform. The loss function used is the SIoU loss function. in, For distance cost, Cost of shape.
4. The method according to claim 1, characterized in that, In step S3, the confidence level of the smoke sensor source. The sensor's reference ADC value was obtained by acquiring it under clean air conditions. Real-time ADC readings Converted to relative smoke response: Then, the Logistic function is used to map the confidence level of the smoke evidence: in, For the slope parameter, This is the half-saturation point.
5. The method according to claim 1, characterized in that, In step S3, the confidence level of the human infrared sensor source ,in The confidence level of the temperature and humidity sensor source is: in, For the Sigmoid function, Temperature threshold This represents the humidity threshold.
6. The method according to claim 1, characterized in that, In step S2, the confidence level of the visual detection source The original detection confidence level was adjusted using a temperature scaling method. Perform calibration: in, This is the temperature scaling parameter.
7. The method according to claim 1, characterized in that, In step S5, a sliding time window smoothing mechanism is used for the determination: let the window width be... At present The percentage of judgments for smoking inside windows is: in, The number of fusion decisions required to satisfy smoking judgments within the window. The total number of fusion decisions within the window; when The system outputs a smoking alarm, among which... This is a preset ratio threshold.
8. A smoking behavior recognition system based on multi-source sensor decision-level fusion, characterized in that, include: Edge computing platform; An image acquisition module, connected to the edge computing platform, is used to acquire video images of the monitoring area; A smoke sensor, connected to the edge computing platform, is used to detect the smoke concentration in the monitored area; A human infrared sensor, connected to the edge computing platform, is used to detect the presence of human bodies in the monitoring area; A temperature and humidity sensor, connected to the edge computing platform, is used to detect the temperature and humidity of the monitored area; The edge computing platform includes a visual detection module and a multi-source evidence fusion module. The visual detection module is used to perform target detection on the video image and output visual detection confidence. The multi-source evidence fusion module is used to execute the smoking behavior recognition method as described in any one of claims 1 to 7.
9. The system according to claim 8, characterized in that, The multi-source evidence fusion module uses Dempster's combination rule to fuse the basic probability allocations of each evidence source, when the conflict coefficient... The manual review flag is triggered at that time.
10. The system according to claim 8, characterized in that, The visual detection module preprocesses the acquired video images, including bilinear interpolation scaling, Gaussian smoothing filtering, YCrCb color space Y channel histogram equalization and normalization; the edge computing platform is a Raspberry Pi 4B, the smoke sensor is an MQ-2 smoke sensor, the human infrared sensor is an HC-SR501 human infrared sensor, and the temperature and humidity sensor is a DHT11 temperature and humidity sensor.
