Vehicle key area temperature monitoring method based on improved YOLOv9

By combining the improved YOLOv9 model with a variety of sensors, the problem of temperature monitoring of high-speed vehicles is solved, the temperature of key areas of the vehicle is accurately monitored, and the efficiency of fire accident prevention is improved.

CN118587661AActive Publication Date: 2024-09-03CHONGQING UNIV +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410632328.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-21
Publication Date
2024-09-03
Estimated Expiration
2044-05-21

AI Technical Summary

Technical Problem

On highways, it is difficult to monitor the temperature of high-speed vehicles, which makes the prevention and timely treatment of fire accidents challenging.

Method used

The improved YOLOv9 model is used, combined with a high-definition bayonet camera, an infrared thermal imager and a radar speedometer, to obtain the infrared image and temperature data of the vehicle. The SEMA attention module is used to enhance the model's spatial information attention ability, accurately segment the key areas of the vehicle, and achieve Temperature monitoring.

Benefits of technology

It improves the ability to accurately monitor the temperature of key areas of high-speed vehicles, reduces missed detections and misdetections, and enhances the ability to detect and confirm hidden dangers of spontaneous combustion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587661A
    Figure CN118587661A
Patent Text Reader

Abstract

The invention relates to the technical field of image processing and visual positioning, in particular to a vehicle key area temperature monitoring method based on improved YOLOv9. The method comprises the following steps: acquiring vehicle monitoring data of a high-speed driving area, and accurately acquiring an infrared image corresponding to each high-speed driving vehicle according to the vehicle monitoring data; inputting the infrared image into an improved YOLOv9 recognition model, and accurately obtaining a plurality of segmented regions of a high-speed driving vehicle by using the improved YOLOv9 recognition model; therefore, the temperatures of a plurality of key areas of the high-speed running vehicle can be obtained according to the segmented areas and the temperature data, the temperatures of the key areas of the high-speed running vehicle can be accurately monitored, and the spontaneous combustion hidden danger of the vehicle can be further checked and confirmed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image processing and visual positioning, and in particular to a vehicle key area temperature monitoring method based on improved YOLOv9. Background Art

[0002] At present, the handling of highway safety operation accidents has begun to shift from post-processing to pre-prevention and source control. Research on reducing highway fire accidents through effective means from the source of risk and reducing highway operation safety risks has become a hot topic in the industry. Spontaneous combustion of vehicles is the main cause of highway fire accidents. Before spontaneous combustion, there are often early signs such as excessive temperature in key areas such as tires.

[0003] Therefore, in order to reduce the risk of tunnel fire accidents, it is necessary to detect high-speed vehicles that are about to reach or have reached the self-ignition temperature in a timely manner so that measures can be taken as soon as possible. Since vehicles are in a fast-moving state on the highway, it is very difficult to accurately monitor the temperature of vehicles traveling at high speeds. Summary of the invention

[0004] In view of the shortcomings of the prior art, the present invention proposes a vehicle key area temperature monitoring method based on improved YOLOv9, so as to accurately monitor the temperature of the key area of ​​the vehicle during high-speed driving.

[0005] The technical solution adopted by the present invention is a vehicle key area temperature monitoring method for improving YOLOv9.

[0006] In a first possible implementation, a vehicle key area temperature monitoring method based on improved YOLOv9 includes:

[0007] Monitor vehicles in high-speed driving areas and obtain vehicle monitoring data;

[0008] Determine the infrared image corresponding to each high-speed vehicle and the temperature data corresponding to the infrared image according to the vehicle monitoring data;

[0009] The infrared image is input into the improved YOLOv9 recognition model to obtain multiple segmented areas of high-speed vehicles;

[0010] The temperatures of multiple key areas of a high-speed vehicle are obtained based on the divided areas and temperature data.

[0011] In combination with the first possible implementation, in the second possible implementation, vehicles in the high-speed driving area are monitored to obtain vehicle monitoring data, including:

[0012] In high-speed driving areas, vehicles are captured by high-definition bayonet cameras to obtain high-definition images of high-speed vehicles, the speed of high-speed vehicles is measured by radar speed meters, and vehicles are photographed by infrared thermal imagers to obtain infrared videos and temperature data of high-speed vehicles.

[0013] In combination with the second possible implementation, in a third possible implementation, determining the infrared image corresponding to each high-speed vehicle according to the vehicle monitoring data includes:

[0014] Determine the license plate number of each high-speed vehicle based on the high-definition image of each high-speed vehicle;

[0015] Determine the speed of the high-speed vehicle at the time when each high-definition image is captured;

[0016] Determine the backtracking time based on the capture time and vehicle speed;

[0017] Determine the infrared image corresponding to each high-speed vehicle in the infrared video according to the backtracking time;

[0018] The infrared images corresponding to each high-speed vehicle are named and stored according to the license plate number and the capture time.

[0019] In combination with the second possible implementation, in a fourth possible implementation, determining the infrared image corresponding to each high-speed vehicle according to the vehicle monitoring data includes:

[0020] The infrared image of the high-speed driving area where no vehicles pass is used as the calibration infrared image;

[0021] The calibrated infrared image is updated in real time at preset intervals; the vehicle in the high-speed driving area is captured by a high-definition bayonet camera, and the infrared video within the preset time period is determined based on the capture time;

[0022] Preliminarily compare each frame of infrared image in the infrared video within a preset time period with the calibrated infrared image, and define the changed area according to the comparison result;

[0023] The infrared image where the pixel fluctuation has the largest change area is determined as the infrared image corresponding to the high-speed vehicle.

[0024] In combination with the first implementable method, in the fifth implementable method, before the infrared image is input into the improved YOLOv9 recognition model, the steps include:

[0025] Performing rendering and coloring processing on the temperature data corresponding to the infrared image to obtain rendering temperature data;

[0026] The SIN function is used to map the rendered temperature data to obtain an updated infrared image.

[0027] Combined with the first implementable method, in the sixth implementable method, improving the YOLOv9 recognition model includes:

[0028] An input module adjusts the size of the input infrared image, performs data enhancement processing on the infrared image after the size adjustment, and obtains an enhanced image;

[0029] The feature extraction module performs convolution processing on the enhanced image to obtain vehicle features;

[0030] Feature fusion module, which fuses vehicle features through the SEMA module to obtain multi-scale features;

[0031] The output module inputs the multi-scale features into three detection heads respectively, and outputs the segmented area of ​​the high-speed vehicle through the detection heads.

[0032] In combination with the sixth implementable method, in the seventh implementable method, the SEMA module includes a first branch and a second branch; the vehicle features are processed through the first branch to obtain the first branch result; the first branch result is normalized, pooled and activated respectively to obtain the first branch channel information; the vehicle features are processed through the second branch to obtain the second branch result; the second branch result is pooled and activated respectively to obtain the second branch channel information; the first branch channel information and the second branch channel information are interacted to obtain the first interaction information and the second interaction information respectively; the first interaction information and the second interaction information are fused, and the fusion result is activated to obtain the attention weight; the vehicle features are weighted by the attention weight to obtain multi-scale features.

[0033] In combination with the sixth possible implementation method, in the eighth possible implementation method, the first branch is used to vertically encode the vehicle features and horizontally encode the vehicle features; the vertical direction encoding and the horizontal direction encoding are convolved simultaneously to obtain a first convolution result; the first convolution result is decomposed into two vectors; the two vectors are activated; the vehicle features are weighted by the two activation vectors to obtain the first branch result.

[0034] In combination with the sixth implementable method, in the ninth implementable method, the second branch is used to calculate the maximum and average values ​​of the vehicle features and construct a spatial map; perform splicing convolution on the spatial map to obtain the global spatial attention weight; weight the vehicle features by the global spatial attention weight to obtain the vehicle spatial weighted features; aggregate the vehicle spatial weighted features by the pooling pyramid to obtain the second branch result.

[0035] In combination with the first implementable manner, in the tenth implementable manner, the infrared image is input into the improved YOLOv9 recognition model to obtain multiple segmented areas of the high-speed vehicle, including:

[0036] The infrared image is input into the improved YOLOv9 recognition model to obtain the tire area;

[0037] The infrared image is segmented into key areas according to the tire area to obtain multiple segmented areas.

[0038] It can be seen from the above technical solution that the beneficial technical effects of the present invention are as follows:

[0039] 1. First, obtain the vehicle monitoring data of the high-speed driving area, and accurately obtain the infrared image corresponding to each high-speed driving vehicle based on the vehicle monitoring data; then input the infrared image into the improved YOLOv9 recognition model, and use the improved YOLOv9 recognition model to accurately obtain multiple segmented areas of the high-speed driving vehicle; thereby, it is possible to obtain the temperatures of multiple key areas of the high-speed driving vehicle based on each segmented area and temperature data, and accurately monitor the temperatures of key areas of the high-speed driving vehicle to ensure further investigation and confirmation of the hidden dangers of vehicle spontaneous combustion.

[0040] 2. The improved YOLOv9 recognition model adopts an attention module SEMA that pays more attention to spatial information. This module pays attention to the global spatial position information, strengthens the ability to pay attention to foreground targets, and can play a role in multi-scale aggregation upstream tasks, which greatly improves the accuracy of the improved YOLOv9 recognition model. It is beneficial to solve the problems of missed detection and false detection caused by the similarity of foreground and background information of vehicle images in high-speed driving scenarios, and further improves the accuracy of monitoring the temperature of key areas of vehicles traveling at high speeds. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following is a brief introduction to the drawings required for the specific embodiments or the prior art description. In all the drawings, similar elements or parts are generally identified by similar reference numerals. In the drawings, the elements or parts are not necessarily drawn according to the actual scale.

[0042] Figure 1 A schematic diagram of a vehicle key area temperature monitoring method based on improved YOLOv9 provided in this embodiment;

[0043] Figure 2 A layout diagram of a vehicle key area temperature monitoring system based on improved YOLOv9 provided in this embodiment;

[0044] Figure 3 A network structure diagram of a SEMA module provided in this embodiment;

[0045] Figure 4 A network structure diagram of a CAP provided in this embodiment;

[0046] Figure 5 A network structure diagram of SAP provided for this embodiment;

[0047] Reference numerals:

[0048] 1-Gantry, 2-First infrared thermal imager, 3-High-definition bayonet camera, 4-Second infrared thermal imager, 5-Radar speedometer, 6-Switch, 7-Industrial computer, 8-DVR, 9-Cloud server. DETAILED DESCRIPTION

[0049] The following embodiments of the technical solution of the present invention are described in detail in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and are therefore only used as examples, and cannot be used to limit the protection scope of the present invention.

[0050] It should be noted that, unless otherwise specified, the technical terms or scientific terms used in this application should be the common meanings understood by technicians in the field to which the present invention belongs. The terms "first", "second", etc. in the specification and claims of the embodiments of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so as to implement the embodiments of the present disclosure described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. Unless otherwise specified, the term "multiple" means two or more. In the embodiments of the present disclosure, the character " / " indicates that the objects before and after are in an "or" relationship. For example, A / B means: A or B. The term "and / or" is a description of the association relationship of objects, indicating that there can be three relationships. For example, A and / or B means: A or B, or, A and B. The term "corresponding" can refer to an association relationship or a binding relationship, and A and B correspondingly refer to an association relationship or a binding relationship between A and B.

[0051] Combination Figure 1 As shown, this embodiment provides a vehicle key area temperature monitoring method based on improved YOLOv9, including:

[0052] Step S01: monitor vehicles in a high-speed driving area and obtain vehicle monitoring data;

[0053] Step S02: determining the infrared image corresponding to each high-speed vehicle and the temperature data corresponding to the infrared image according to the vehicle monitoring data;

[0054] Step S03: input the infrared image into the improved YOLOv9 recognition model to obtain multiple segmented areas of high-speed vehicles;

[0055] Step S04: acquiring the temperatures of multiple key areas of the high-speed vehicle according to the divided areas and the temperature data.

[0056] Optionally, vehicles in the high-speed driving area are monitored to obtain vehicle monitoring data, including: in the high-speed driving area, taking snapshots of vehicles with a high-definition bayonet camera to obtain high-definition images of high-speed vehicles, measuring the speed of high-speed vehicles with a radar speed meter, and photographing vehicles with an infrared thermal imager to obtain infrared videos and temperature data of high-speed vehicles.

[0057] Combination Figure 2 As shown, a temperature monitoring system for key areas of high-speed vehicles based on improved YOLOv9 includes a high-definition bayonet camera 3, a first infrared thermal imager 2 and a second infrared thermal imager 4, a radar speed meter 5, a hard disk recorder 8, a switch 6, an industrial computer 7 and a cloud server 9;

[0058] On the gantry 1 on the highway, a high-definition bayonet camera 3 is deployed in the middle of the horizontal bar, a first infrared thermal imager 2 and a second infrared thermal imager 4 are deployed on the left and right sides of the horizontal bar respectively, and a radar speed meter 5 is deployed in the middle of the right vertical bar; the high-definition bayonet camera 3, the first infrared thermal imager 2, the second infrared thermal imager 4 and the radar speed meter 5 are connected to an industrial computer 7 through a switch 6; the industrial computer 7, the hard disk recorder 8 and the cloud server 9 are connected in sequence.

[0059] Optionally, the high-definition bayonet camera supports the function of quickly capturing license plates.

[0060] Combination Figure 1 As shown, the first infrared thermal imager and the second infrared thermal imager are high-speed infrared thermal imagers, which can cover three lanes, including a fast lane, a normal driving lane and an emergency lane, and have a field of view of 100m to 150m, and optional resolutions of 384*288 and 640*512.

[0061] Optionally, the switch supports 10G network, which can ensure that the infrared video and full-screen temperature data of the high-speed infrared thermal imager are output to the local industrial computer in real time, and the surveillance video of the high-definition bayonet camera is output to the hard disk recorder. The infrared image is obtained by the infrared video frame capture, and the high-definition image is obtained by the surveillance video frame capture.

[0062] Optionally, an infrared image corresponding to each high-speed vehicle is determined based on vehicle monitoring data, including: determining the license plate number of each high-speed vehicle based on the high-definition image of each high-speed vehicle; determining the speed of the high-speed vehicle at the time when each high-definition image is captured; determining a lookback time based on the capture time and the speed; determining the infrared image corresponding to each high-speed vehicle from the infrared video based on the lookback time; and naming and storing the infrared image corresponding to each high-speed vehicle according to the license plate number and the capture time.

[0063] Optionally, the method further includes: controlling the field of view of the infrared thermal imager to be within a range of 100m to 150m. If the field of view is greater than 100m, the entire vehicle can be photographed; and if the field of view is less than 150m, the vehicle image in the infrared image can be identified.

[0064] Optionally, determining the backtracking time according to the capture time and the vehicle speed includes:

[0065] Among them, t 0 is the lookback time, t 1 is the capture moment of the high-definition image, v 1 For vehicle speed.

[0066] In some embodiments, the high-definition bayonet camera has a license plate recognition function. The license plate number a of the high-speed vehicle is recognized through the high-definition image taken by the high-definition bayonet camera, and the high-speed vehicle is named a. The speed measured by the radar speed gun at the capture moment is determined, and the speed is the speed of the high-speed vehicle a. The backtracking time is calculated according to the speed and the capture moment. A frame of infrared image at the position of the backtracking time is selected from the infrared video taken by the infrared thermal imager, and the selected infrared image is the infrared image of the high-speed vehicle a; the temperature data corresponding to the selected infrared image is the temperature data corresponding to the high-speed vehicle a. The selected infrared image and the corresponding temperature data are named by the license plate number and the capture moment, and are stored separately in the local industrial computer. In this way, based on the capture moment of the high-definition bayonet camera, the speed of the high-speed vehicle is measured by the radar speed gun, and then the backtracking time required for the infrared video is calculated, and the infrared image of the high-speed vehicle is obtained from the backtracking time of the infrared video. Compared with obtaining infrared images by triggering and capturing, this solution backtracks the infrared video and obtains the infrared image from the backtracked time, which has smaller time error and is more accurate.

[0067] Optionally, an infrared image corresponding to each high-speed vehicle is determined based on vehicle monitoring data, including: taking an infrared image of a high-speed driving area where no vehicle passes as a calibrated infrared image; updating the calibrated infrared image in real time at a preset interval; capturing vehicles in the high-speed driving area with a high-definition bayonet camera, and determining an infrared video within a preset time period based on the capturing time; preliminarily comparing each frame of infrared image in the infrared video within the preset time period with the calibrated infrared image, and defining a change area based on the comparison result; and determining the infrared image of the change area with the largest pixel fluctuation as the infrared image corresponding to the high-speed vehicle.

[0068] Optionally, the method further includes: determining the license plate number of the high-speed vehicle based on the high-definition image; naming the infrared image and the corresponding temperature data according to the license plate number and the capture time and storing them in a local industrial computer.

[0069] Optionally, the preset time period is 2 seconds, and the infrared video within 2 seconds before and after the capture moment is selected, and the infrared image of each frame in the selected infrared video is compared with the calibrated infrared image.

[0070] In some embodiments, the infrared image of the high-speed driving area through which the vehicle passes is calibrated to obtain a calibrated infrared image, and normalization is performed. The calibrated infrared image is then updated in real time at a preset interval, and the preset interval is 10 minutes / time, 30 minutes / time, 60 minutes / time or 1 day / time. In this way, the calibration image is updated regularly to prevent the influence of surrounding interferences, such as the shadows of the gantry, surrounding billboards, etc. that change over time, the movement of sunlight, etc., thereby avoiding large deviations in the pixels of the calibrated infrared image.

[0071] Optionally, before the infrared image is input into the improved YOLOv9 recognition model, the method includes: rendering and coloring the temperature data corresponding to the infrared image to obtain rendered temperature data; and mapping the rendered temperature data using a SIN function to obtain an updated infrared image.

[0072] Optionally, rendering and coloring the temperature data corresponding to the infrared image includes:

[0073] Among them, T norm is the temperature data after rendering, T is the temperature data before rendering, T max is the maximum temperature data, T min This is the minimum temperature data.

[0074] Optionally, a SIN function is used to map the rendered temperature data, including:

[0075] T sin = sin(T norm ), where T sin It is the mapped rendering temperature data, that is, the updated temperature data.

[0076] In some embodiments, the temperature data is an original temperature matrix. Since the infrared image is obtained by rendering the original temperature matrix, it is a secondary processing of the original temperature matrix. Based on this, the present solution re-renders and colors the original temperature matrix corresponding to the infrared image, and normalizes the temperature to Then the sin function is applied to map the above temperature. The mapping relationship of the temperature matrix on the coloring curve is used to enhance the image details. Due to the different slopes of the function, the rate of change is greater in the middle curve part, and the color change between the temperature differences with smaller values ​​is greater, which can make the contours in the infrared image clearer. After recoloring, the vehicle compartment and other locations are more clearly distinguished from the wheels and other areas, which can better achieve the segmentation of the compartment and other locations.

[0077] Optionally, the infrared image is input into an improved YOLOv9 recognition model to obtain multiple segmented areas of the high-speed vehicle, including: inputting the infrared image into the improved YOLOv9 recognition model to obtain a tire area; and performing key area segmentation on the infrared image according to the tire area to obtain multiple segmented areas.

[0078] Optionally, the infrared image is segmented into key areas according to the tire area to obtain multiple segmented areas, including: excluding the headlights in the tire area to obtain the correct positions of at least two tires of a high-speed vehicle; determining the segmented area of ​​the bottom area of ​​the vehicle according to the upper boundary area and the lower boundary area of ​​the two tires; determining the segmented area of ​​the cabin area by the more obvious texture features of the tires and the upper part of the cabin; and subtracting the area of ​​the bottom area and the cabin area from the complete vehicle area in the infrared image, and the remaining part is the front area.

[0079] Optionally, the complete vehicle area in the infrared image is obtained by improving the output of the YOLOv9 recognition model.

[0080] Optionally, excluding the headlights in the tire area, obtaining the correct positions of the two tires of the high-speed vehicle includes: connecting the alternative tires in the tire area in pairs, intersecting each tire line with its nearest lane line, and obtaining the angle between the tire line and the lane line; if the angle is within a preset angle range, the two alternative tires forming the tire line are tires of the high-speed vehicle; if the angle is not within the preset angle range, at least one of the two alternative tires forming the tire line is a headlight.

[0081] In some embodiments, the preset angle range is 0° to 30°. After the wheel areas are detected, they are combined in pairs to obtain a straight line between the two, and then extended to intersect with the nearest lane line to obtain the angle between the two. If it is greater than 30°, it is considered that at least one of the targets is a headlight. If it is less than 30°, it is considered that both are tires. In this way, in night scenes, the contour performance of truck lights is highly similar to that of tires. This solution combines the candidate tires in pairs, and then uses the lane line as a reference to exclude the area where the headlights are misdetected, thereby improving the accuracy.

[0082] Optionally, the improved YOLOv9 recognition model includes: an input module, which resizes the input infrared image, performs data enhancement processing on the resized infrared image, and obtains an enhanced image; a feature extraction module, which performs convolution processing on the enhanced image to obtain vehicle features; a feature fusion module, which fuses the vehicle features through a SEMA module to obtain multi-scale features; and an output module, which inputs the multi-scale features into three detection heads respectively, and outputs the tire area of ​​the high-speed vehicle through the detection heads.

[0083] Optionally, the improved YOLOv9 recognition model identifies the vehicle tire area, and the key areas including the vehicle bottom area, the vehicle compartment area and the vehicle front area are obtained based on the vehicle tire area. The improved YOLOv9 recognition model adopts a CNN architecture analysis based on a reversible function, and designs PGI and auxiliary reversible branches. The improved YOLOv9 recognition model has a small number of modules and channels, and can obtain less resource consumption and the fastest timeliness. Compared with the lightweight scale of the YOLOv8 model, the improved YOLOv9 recognition model has a higher parameter utilization rate and a higher accuracy rate.

[0084] In some embodiments, the input module of the improved YOLOv9 recognition model uniformly adjusts the size of the input infrared image to 640×640, and then uses operations such as rotation, scaling, cropping, and Mosaic enhancement to perform data enhancement on the adjusted image to obtain an enhanced image. The feature extraction module gradually extracts spatial and semantic features containing the vehicle and its key areas from the enhanced image through convolution. Then, the feature fusion module fuses, transforms and enhances the extracted features through cross-scale connections and weighted fusion mechanisms. In this process, SEMA attention is embedded to improve the feature extraction capability of foreground targets. Finally, the output module outputs the above-mentioned features at multiple different scales to the head. Each detection head contains three branches: classification, object, and position. The classification and object branches use binary cross entropy loss, and the regression branch combines DFL (Distance Focal Loss) loss and CIoU (Complete Intersection over Union) loss.

[0085] In some embodiments, the SEMA module is an improvement of the EMA module. The first branch of EMA gathers the spatial information of the feature map from two directions and then performs encoding operations, which can embed the position information into the channel attention map, but the interaction between the global spatial positions still needs to be further improved. Therefore, this scheme designs a SEMA module based on the EMA (Efficient Multi-Scale Attention) attention module, and uses two parallel paths to extract the attention weights of the grouped feature maps. The SEMA module designs the first branch CAP (Coordinate Attention Path, CAP) and the second branch SAP (Spatial Attention and pool Path, SAP). The second branch extracts the global spatial position information of the vehicle features and uses the pooling pyramid to gather multi-scale information. The cross-channel information in the direction of the two branch channels interacts, and the contextual information of different scales is fused to generate better pixel-level attention for the feature map to capture the dependencies between all channels and reduce the amount of calculation.

[0086] Optionally, combined Figure 3 As shown, the SEMA module includes a first branch CAP and a second branch SAP; the vehicle features are processed by the first branch to obtain the first branch result; the first branch result is normalized, pooled and activated respectively to obtain the first branch channel information; the vehicle features are processed by the second branch to obtain the second branch result; the second branch result is pooled and activated respectively to obtain the second branch channel information; the first branch channel information and the second branch channel information are interacted to obtain the first interaction information and the second interaction information respectively; the first interaction information and the second interaction information are fused, and the fusion result is activated to obtain the attention weight; the vehicle features are weighted by the attention weight to obtain multi-scale features.

[0087] Optionally, combined Figure 4 As shown, the first branch CAP is used to encode the vehicle features vertically and horizontally; the vertical direction code and the horizontal direction code are convolved simultaneously to obtain a first convolution result; the first convolution result is decomposed into two vectors; the two vectors are activated; the vehicle features are weighted by the two activation vectors to obtain the first branch result.

[0088] Optionally, the formula of the first branch CAP is expressed as:

[0089]

[0090]

[0091] In the above formula, h, w represent the h-th row and w-th column of the vehicle’s feature map C×H×W, i represents the ith column, c represents the c-th channel, x, y represent the input and output of each pixel respectively, and σ is the activation function.

[0092] Optionally, combined Figure 5 As shown, the second branch SAP is used to calculate the maximum and average values ​​of vehicle features and construct a spatial graph; perform convolution on the spatial graph to obtain the global spatial attention weight; weight the vehicle features through the global spatial attention weight to obtain the vehicle spatial weighted features; aggregate the vehicle spatial weighted features through the pooling pyramid to obtain the second branch result.

[0093] Optionally, the formula of the second branch SAP is expressed as:

[0094] F s =F in ×Conv2d 7×7 [Max dim=1 (F in ); Mean dim=1 (F in)];

[0095]

[0096] In the above formula, F in ,F s ,F ch Represents input features, reweighted features, and output features, Maxpool i It means that the input is pooled i times continuously, and Max and Mean respectively represent the maximum value and average value.

[0097] Optionally, before inputting the infrared image into the improved YOLOv9 recognition model, the method further includes: training the improved YOLOv9 initial recognition model to obtain the improved YOLOv9 recognition model.

[0098] Optionally, training the improved YOLOv9 initial recognition model includes: obtaining a training set and a test set; setting model parameters of the improved YOLOv9 initial recognition model; iteratively optimizing the model parameters of the improved YOLOv9 initial recognition model based on the training set, calculating the accuracy of the model through the test set, stopping the iteration when the accuracy meets the requirements, and obtaining the improved YOLOv9 recognition model.

[0099] In some embodiments, vehicle infrared image samples covering a variety of scenes, vehicle types, and other possible changes are collected; conventional frame annotation software is difficult to apply to irregular vehicle images and infrared tire images, and the size is a standard 640*640 image. This solution uses Labeme software to circle and dot the collected vehicle infrared image samples to mark the vehicle tire positions in the vehicle infrared image samples. The labeled vehicle infrared image sample data is divided into a training set, a test set, and a validation set in a ratio of 0.6:0.2:0.2.

[0100] In some embodiments, according to the recognition accuracy that needs to be achieved on the cloud server side and the edge device side, the model parameters of the improved YOLOv9 initial recognition model are set, and the learning rate is set to 0.01, the number of iterations is 100, the batch size is 16, and the optimizer used is SGD.

[0101] In some embodiments, the input image is standardized using proportional scaling combined with background filling processing technology, that is, the corresponding input image is 640*640*3. Feature information is gradually extracted from the input image. The bottom features contain rich position and contour information but lack semantic information. The top features extract high-level features that contain rich semantic information but lack position information, corresponding to the output of 80*80*256; 40*40*512; 20*20*1024 multi-scale feature map information. A top-down and top-up path is used to fuse, transform and enhance the path aggregation network and the RepNCSPELAN4 module. The feature maps of different scales output by the three stages are fused to help the shallow information aggregate to the deep features. Finally, in the detection head part, the key areas of the vehicle at different scales are detected and identified to obtain the segmented area.

[0102] Optionally, the method also includes evaluating the improved YOLOv9 recognition model.

[0103] In some embodiments, the evaluation indicators used in this scheme include accuracy, recall rate or recall rate, mean average precision (mAP), and mAP is used as the main evaluation indicator of the model. The detection speed uses FPS (frames per second) to measure the detection speed of the model. This scheme is compared with the existing one-stage detection models YOLOv9s, YOLOv7, YOLOv8, SSD and the two-stage algorithm Faster R-CNN, and the comparison results are shown in Table 1. As can be seen from Table 1, the mAP index of this scheme reaches 95.2%, which is 5.8%, 7%, 2.9%, 13.6% and 10.4% higher than the baseline models YOLOv9s, YOLOv7, YOLOv8, SSD and Faster R-CNN respectively. The significant improvement of mAP indicates that this scheme uses a scale-sensitive structure to fuse cross-scale features to improve the extraction capability of infrared vehicle features of different scales in highway scenes, and the SEMA module enhances the feature extraction capability of foreground targets, thereby improving the detection accuracy of key areas of overheated vehicles in highway scenes. In addition, the number of parameters and computation of this scheme is slightly higher than that of YOLOv9s, but much lower than that of other models. This is because the added SEMA attention brings a small amount of computation to the model, but it is almost negligible in practical application scenarios.

[0104] Table 1 Comparison of the results of each series of detection algorithms and this solution

[0105] Method mAP@0.5 / % Params(M) FLOPs(G) YOLOv9s 89.4 1.763 4.1 SSD 81.6 23.5 30.4 Faster R-CNN 84.8 39.7 81.6 YOLOv7 88.2 4.613 11.2 YOLOv8 92.3 6.020 13.2 This program 95.2 1.865 4.9

[0106] In some embodiments, this solution is experimentally compared by embedding different types of attention modules such as (Channel Attention, CA), (ASimple, Parameter-Free Attention Module, SimAM), and EMA at the same position. The results are shown in Table 2. Table 2 shows that embedding most mainstream attention modules can improve detection accuracy. After adding the attention mechanism to the intermediate fusion node, the model can obtain richer channel and spatial information, which improves the performance of the model. Compared with CA, SimAM, and EMA attention modules, the mAP value of the model after adding the SEMA module is 95.2%, and the mAP is improved by 1.5% to 2.3% compared with other attention modules. SEMA improves the path based on EMA, can extract the global spatial position information of the grouped feature map, and uses the pooling pyramid to aggregate multi-scale information, which effectively improves the detection accuracy of key areas of overheated vehicles.

[0107] Table 2 Comparison of detection performance with different attention embeddings

[0108]

[0109] Optionally, obtaining the temperatures of multiple key areas of the high-speed vehicle according to each segmented area and the temperature data includes: determining the key area temperature corresponding to each segmented area from the temperature data based on the position correspondence between the infrared image and the temperature data.

[0110] In some embodiments, the temperature data is a full-screen temperature matrix, and the infrared image corresponds to the full-screen temperature matrix one-to-one. The temperature of the key area corresponding to the full-screen temperature matrix is ​​queried according to the segmented area of ​​the infrared image. The temperature data corresponding to the bottom area of ​​the vehicle mainly focuses on the average temperature value, and excludes local temperature abnormal areas, such as the exhaust emission device on the side of the vehicle body, the fuel tank and other locations. The car box area mainly focuses on the maximum temperature value to avoid the combustion of combustibles on the car. The front area mainly focuses on the average temperature value, and the reason for not observing the maximum temperature value is that the infrared thermal imaging detector is easily affected by the sunlight reflected by the front windshield and there are individual large interference point values.

[0111] In some embodiments, the temperature data is a full-screen temperature matrix, the infrared image corresponds to the full-screen temperature matrix one by one, and the temperature of the key area corresponding to the full-screen temperature matrix is ​​queried according to the segmented area of ​​the infrared image. Since the target in the infrared image is relatively small, considering that the temperature change is relatively small, the temperature mean in the key area is considered to be the temperature information of the key area.

[0112] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. These modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present invention, and they should all be included in the scope of the claims and specification of the present invention.

Claims

1. A vehicle key area temperature monitoring method based on improved YOLOv9, characterized in that: include: Monitor vehicles in high-speed driving areas and obtain vehicle monitoring data; Determine the infrared image corresponding to each high-speed vehicle and the temperature data corresponding to the infrared image according to the vehicle monitoring data; The infrared image is input into the improved YOLOv9 recognition model to obtain multiple segmented areas of high-speed vehicles; The temperatures of multiple key areas of a high-speed vehicle are obtained based on the divided areas and temperature data.

2. The method according to claim 1, characterized in that Monitor vehicles in high-speed driving areas and obtain vehicle monitoring data, including: In high-speed driving areas, vehicles are captured by high-definition bayonet cameras to obtain high-definition images of high-speed vehicles, the speed of high-speed vehicles is measured by radar speed meters, and vehicles are photographed by infrared thermal imagers to obtain infrared videos and temperature data of high-speed vehicles.

3. The method according to claim 2, characterized in that Determine the infrared image corresponding to each high-speed vehicle based on the vehicle monitoring data, including: Determine the license plate number of each high-speed vehicle based on the high-definition image of each high-speed vehicle; Determine the speed of the high-speed vehicle at the time when each high-definition image is captured; Determine the backtracking time based on the capture time and vehicle speed; Determine the infrared image corresponding to each high-speed vehicle from the infrared video according to the backtracking time; The infrared images corresponding to each high-speed vehicle are named and stored according to the license plate number and the capture time.

4. The method according to claim 2, characterized in that Determine the infrared image corresponding to each high-speed vehicle based on the vehicle monitoring data, including: The infrared image of the high-speed driving area where no vehicles pass is used as the calibration infrared image; The calibrated infrared image is updated in real time at preset intervals; the vehicle in the high-speed driving area is captured by a high-definition bayonet camera, and the infrared video within the preset time period is determined based on the capture time; Preliminarily compare each frame of infrared image in the infrared video within a preset time period with the calibrated infrared image, and define the changed area according to the comparison result; The infrared image where the pixel fluctuation has the largest change area is determined as the infrared image corresponding to the high-speed vehicle.

5. The method according to claim 1, characterized in that Before the infrared image is input into the improved YOLOv9 recognition model, it includes: Performing rendering and coloring processing on the temperature data corresponding to the infrared image to obtain rendering temperature data; The SIN function is used to map the rendered temperature data to obtain an updated infrared image.

6. The method according to claim 1, characterized in that Improvements to the YOLOv9 recognition model include: An input module adjusts the size of the input infrared image, performs data enhancement processing on the infrared image after the size adjustment, and obtains an enhanced image; The feature extraction module performs convolution processing on the enhanced image to obtain vehicle features; Feature fusion module, which fuses vehicle features through the SEMA module to obtain multi-scale features; The output module inputs the multi-scale features into three detection heads respectively, and outputs the segmented area of ​​the high-speed vehicle through the detection heads.

7. The method according to claim 6, characterized in that The SEMA module includes a first branch and a second branch; the vehicle features are processed by the first branch to obtain the first branch result; the first branch result is normalized, pooled and activated to obtain the first branch channel information; Processing the vehicle feature through the second branch to obtain a second branch result; After performing pooling and activation processing on the second branch results respectively, the second branch channel information is obtained; The first branch channel information and the second branch channel information interact to obtain first interaction information and second interaction information respectively; the first interaction information and the second interaction information are fused, and the fusion result is activated to obtain an attention weight; Vehicle features are weighted by attention weights to obtain multi-scale features.

8. The method according to claim 6, characterized in that The first branch is used to encode the vehicle features vertically and horizontally; the vertical direction code and the horizontal direction code are convolved simultaneously to obtain a first convolution result; the first convolution result is decomposed into two vectors; the two vectors are activated; the vehicle features are weighted by the two activation vectors to obtain the first branch result.

9. The method according to claim 6, characterized in that The second branch is used to calculate the maximum and average values ​​of vehicle features and construct a spatial graph; perform convolution on the spatial graph to obtain the global spatial attention weight; weight the vehicle features by the global spatial attention weight to obtain the vehicle spatial weighted features; The vehicle spatial weighted features are aggregated through pooling pyramid to obtain the second branch result.

10. The method according to claim 1, characterized in that The infrared image is input into the improved YOLOv9 recognition model to obtain multiple segmented areas of high-speed vehicles, including: The infrared image is input into the improved YOLOv9 recognition model to obtain the tire area; The infrared image is segmented into key areas according to the tire area to obtain multiple segmented areas.

Citation Information

Patent Citations

  • Infrared temperature monitoring method and system of electrified railway contact network

    CN101762327A

  • Unmanned aerial vehicle image object detection method

    CN117496384A

  • Method for detecting surface temperature of tire and system for detecting surface temperature of tire

    CN117782331A

  • Method for producing salient feature maps based on attention weights

    FR3125907A3

  • Method for detecting traffic violation

    US20160034778A1