A method and system for monitoring temperature in key areas of high-speed vehicles

Through the simultaneous capture of high-definition bayonet cameras and infrared thermal imagers, combined with the improved YOLOv8 target detection model and channel space hybrid attention mechanism, the problem of low vehicle over-temperature monitoring accuracy in the existing technology is solved, and highway monitoring is realized. Accurate monitoring of temperatures in key areas of the vehicle reduces the rate of false alarms and false alarms.

CN118190168BActive Publication Date: 2024-10-18CHONGQING UNIV +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311362804.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-19
Publication Date
2024-10-18
Estimated Expiration
2043-10-19

AI Technical Summary

Technical Problem

Existing vehicle over-temperature monitoring methods are greatly affected by surrounding environmental factors and have low accuracy, which can easily lead to missed and false alarms, making it difficult to accurately monitor the temperature of key areas of highway vehicles.

Method used

Using a high-definition bayonet camera and a high-speed infrared thermal imager for simultaneous capture, combined with the vehicle key area detection model, through the improved YOLOv8 target detection algorithm and channel space hybrid attention mechanism, the temperature information of the vehicle's key areas is extracted, reducing the risk of surrounding environmental factors. influence and improve monitoring accuracy.

Benefits of technology

It achieves precise monitoring of the temperature of key areas of highway vehicles, reduces the rate of missed and false alarms, improves the accuracy of vehicle temperature monitoring, and reduces the occurrence of vehicle spontaneous combustion accidents.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118190168B_ABST
    Figure CN118190168B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of image processing and visual positioning technology, and specifically to a method and system for monitoring the temperature of key areas of high-speed vehicles, including: obtaining vehicle synchronous capture information; the vehicle synchronous capture information includes license plate information, an infrared image of the vehicle and a full-screen temperature information matrix; preprocessing the infrared image to obtain a target image; inputting the target image into a vehicle key area detection model to obtain a key area of ​​the target image; and determining the temperature information corresponding to the key area according to the full-screen temperature information matrix. The present invention uses a vehicle key area detection model to obtain the key area of ​​the vehicle in the infrared image, and then uses the full-screen temperature information matrix to determine the temperature information corresponding to the key area. Compared with monitoring the temperature of the entire vehicle, it is more accurate, reduces the influence of surrounding environmental factors, and improves the accuracy of temperature monitoring of highway vehicles.
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 method and system for monitoring the temperature of a key area of ​​a high-speed vehicle. Background Art

[0002] When vehicles are traveling on the highway, the tires of the vehicles are prone to high temperatures when they are traveling at high speeds for a long time or when they are accelerating or decelerating sharply, which may cause damage to the vehicles or safety hazards, leading to spontaneous combustion accidents of the vehicles, and then fires in highway tunnels. Therefore, in order to reduce spontaneous combustion accidents of vehicles and reduce the loss of life and property, it is particularly necessary to monitor the temperature of vehicles on highways.

[0003] The existing vehicle over-temperature monitoring method mainly uses thermal imaging cameras to monitor the overall vehicle temperature, taking the highest temperature point of the vehicle to determine whether the vehicle body temperature has reached the warning threshold, and then issuing a warning. However, this method is greatly affected by surrounding environmental factors and is limited by the performance of thermal imaging cameras, which can easily lead to missed reports and false alarms, and has a low accuracy rate. Summary of the invention

[0004] In view of the deficiencies in the prior art, the present invention proposes a method and system for monitoring the temperature of a key area of ​​a high-speed vehicle, so as to improve the accuracy of vehicle temperature monitoring.

[0005] In a first aspect, the present invention provides a method for monitoring the temperature of a key area of ​​a high-speed vehicle.

[0006] In a first possible implementation, a method for monitoring temperature in a key area of ​​a high-speed vehicle includes:

[0007] Acquire vehicle synchronous capture information; vehicle synchronous capture information includes license plate information, vehicle infrared image and full-screen temperature information matrix;

[0008] Preprocess the infrared image to obtain the target image;

[0009] Input the target image into the vehicle key area detection model to obtain the key area of ​​the target image;

[0010] The temperature information corresponding to the key area is determined according to the full-screen temperature information matrix.

[0011] In combination with the first implementable method, in the second implementable method, obtaining vehicle synchronous capture information includes:

[0012] The monitoring area is captured synchronously by a high-definition bayonet camera and a high-speed infrared thermal imager; the high-definition bayonet camera captures the license plate information; the high-speed infrared thermal imager captures the vehicle's infrared image and full-screen temperature information matrix; and the synchronously captured license plate information is added as a label to the infrared image and full-screen temperature information matrix.

[0013] In combination with the second feasible method, in the third feasible method, the monitoring area is captured synchronously by a high-definition bayonet camera and a high-speed infrared thermal imager, including:

[0014] Trigger the high-definition bayonet camera to capture by drawing a line, and trigger the high-speed infrared thermal imager to capture synchronously by the high-definition bayonet camera, or trigger the high-speed infrared thermal imager to capture by drawing a line, and trigger the high-definition bayonet camera to capture synchronously by the high-speed infrared thermal imager.

[0015] In combination with the first implementable manner, in a fourth implementable manner, preprocessing the infrared image to obtain the target image includes:

[0016] The infrared image is enhanced and reconstructed with super resolution to obtain the target image.

[0017] Combined with the first implementable method, in the fifth implementable method, the vehicle key area detection model is constructed in the following manner:

[0018] The C3STR module and channel-space hybrid attention mechanism are introduced to improve the YOLOv8 target detection algorithm and build an improved YOLOv8 target detection model.

[0019] The improved YOLOv8 target detection model is trained using the preset sample set to obtain the vehicle key area detection model.

[0020] In combination with the fifth implementable method, in a sixth implementable method, the improved YOLOv8 target detection model includes a trunk module, a neck module and a detection head module;

[0021] The backbone module has 10 layers in total, the 0th, 1st, 3rd, 5th and 7th layers are Conv modules, the 2nd and 4th layers are C2f modules, the 6th and 8th layers are C3STR modules, and the 9th layer is an SPPF module, and the first extracted feature, the second extracted feature and the third extracted feature are output from the 4th, 6th and 9th layers respectively; the neck module passes the third extracted feature through the channel space hybrid attention mechanism and the Unsample module, and fuses it with the second extracted feature in the Concat module to obtain the first fused feature; the first fused feature passes through the C2f module to obtain the second fused feature, the second fused feature passes through the Unsample module to obtain the third fused feature, the third fused feature is fused with the first extracted feature in the Concat module to obtain the fourth fused feature, the fourth fused feature passes through the C2f module, the Conv module and the C2f module in sequence to obtain the fifth fused feature, and the first fused feature, the second fused feature and the fifth fused feature are respectively used as the output of the neck module; the detection head module includes three detection heads, and the detection head module inputs the first fused feature, the second fused feature and the fifth fused feature into the three detection heads respectively to obtain multi-scale feature map information.

[0022] In combination with the sixth possible implementation method, in the seventh possible implementation method, the channel-space hybrid attention mechanism includes a channel attention module and a spatial attention module; the first feature is input into the channel attention module to obtain the output of the channel attention module, and the output of the channel attention module is input into the spatial attention module to obtain the output of the channel-space hybrid attention mechanism module.

[0023] In combination with the seventh possible implementation, in an eighth possible implementation, the channel attention module is expressed by the following formula:

[0024]

[0025] Among them, F represents the first feature of the input, σ is the sigmoid function, MLP is a multi-layer perceptron, AvgPool represents average pooling, MaxPool represents maximum pooling, W0 and W1 are the shared weights of the input of the multi-layer perceptron, is the channel average pooling feature, is the channel maximum pooling feature, M C (F) represents the output of the channel attention module.

[0026] The spatial attention module is expressed as follows:

[0027]

[0028] In the above formula, σ represents the Sigmoid function, f 7×7 represents a convolution operation with a filter size of 7×7, is the spatial average pooling feature, is the spatial maximum pooling feature, M s (F) represents the output of the spatial attention module.

[0029] In combination with the sixth implementable method, in a ninth implementable method, the detection head module outputs multi-scale feature map information, and a Soft NMS algorithm is used to filter the multi-scale feature map information to obtain a model output result.

[0030] In a second aspect, the present invention provides a temperature monitoring system for key areas of high-speed vehicles.

[0031] In the tenth possible implementation method, a high-speed vehicle key area temperature monitoring system includes a cloud server and a high-speed vehicle key area temperature monitoring device; the cloud server is used to execute the above-mentioned high-speed vehicle key area temperature monitoring method, and the high-speed vehicle key area temperature monitoring device is used to obtain vehicle synchronous snapshot information and send it to the cloud server, and the high-speed vehicle key area temperature monitoring device includes at least 2 high-speed infrared thermal imagers, as well as high-definition bayonet cameras, switches, industrial computers, routers, L-shaped poles and cabinets.

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

[0033] 1. The vehicle key area detection model is used to obtain the key areas of the vehicle in the infrared image, and then the full-screen temperature information matrix is ​​used to determine the temperature information corresponding to the key areas. Compared with monitoring the temperature of the entire vehicle, it is more accurate and reduces the influence of surrounding environmental factors, thereby improving the accuracy of temperature monitoring of highway vehicles.

[0034] 2. The vehicle key area detection model provided by this solution adopts the improved YOLOv8 target detection model. The improvements include: 1. In view of the vehicle differences in infrared vehicles, the C3STR module is used to extract global features and replace the original C2f module to improve the size difference feature extraction problem in infrared images; 2. In view of the low resolution and unclear feature extraction in infrared images, the channel space hybrid attention mechanism (Convolutional Block Attention Module, CBAM) module is used to improve the feature extraction capability; 3. The soft SNMS algorithm is used to replace the NMS algorithm in the YOLOv8 algorithm to improve the overlapping and connectivity of vehicle body infrared images in highway vehicle infrared images and possible vehicle following phenomena. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] 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.

[0036] Figure 1 A schematic diagram of a method for monitoring temperature in a key area of ​​a high-speed vehicle provided in this embodiment;

[0037] Figure 2 A schematic diagram of the structure of the improved YOLOv8 target detection model provided in this embodiment;

[0038] Figure 3 A schematic diagram of the structure of the channel attention module provided in this embodiment;

[0039] Figure 4 A schematic diagram of the structure of the spatial attention module provided in this embodiment;

[0040] Figure 5 A schematic diagram of a temperature monitoring device for a key area of ​​a high-speed vehicle provided in this embodiment;

[0041] Reference numerals:

[0042] 1-L-shaped pole, 2-high-speed infrared thermal imager, 3-high-definition bayonet camera, 4-switch, 5-industrial computer, 6-cloud server. DETAILED DESCRIPTION

[0043] 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.

[0044] 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.

[0045] Combination Figure 1 As shown, this embodiment provides a method for monitoring the temperature of a key area of ​​a high-speed vehicle, including:

[0046] Step S01, obtaining vehicle synchronous capture information; the vehicle synchronous capture information includes license plate information, infrared image of the vehicle and full-screen temperature information matrix;

[0047] Step S02: preprocessing the infrared image to obtain a target image;

[0048] Step S03: input the target image into the vehicle key area detection model to obtain the key area of ​​the target image;

[0049] Step S04: determining the temperature information corresponding to the key area according to the full-screen temperature information matrix.

[0050] Optionally, obtaining synchronously captured information of the vehicle includes: synchronously capturing a monitored area with a high-definition bayonet camera and a high-speed infrared thermal imager; capturing license plate information with the high-definition bayonet camera; capturing an infrared image and a full-screen temperature information matrix of the vehicle with the high-speed infrared thermal imager; and adding the synchronously captured license plate information as a label of the infrared image.

[0051] In some embodiments, the existing high-speed infrared thermal imager does not have a license plate recognition function, while the high-definition bayonet camera has a license plate recognition function. By synchronously capturing images with the high-definition bayonet camera and the high-speed infrared thermal imager, the license plate information is matched with the image taken by the high-speed infrared thermal imager to accurately locate the specific vehicle.

[0052] Optionally, the monitoring area is captured synchronously by a high-definition bayonet camera and a high-speed infrared thermal imager, including: triggering the high-definition bayonet camera to capture by drawing a line, and triggering the high-speed infrared thermal imager to capture synchronously by the high-definition bayonet camera; or, triggering the high-speed infrared thermal imager to capture by drawing a line, and triggering the high-definition bayonet camera to capture synchronously by the high-speed infrared thermal imager.

[0053] In some embodiments, the line-drawing trigger is achieved by laying out a virtual line in the infrared field of view, and when a vehicle passes through the line, an alarm is triggered.

[0054] In some embodiments, a high-definition bayonet camera is used to trigger a high-speed infrared thermal imager for synchronous capture, which is suitable for situations with good visibility, such as during the day when the weather is good. Since the high-speed infrared thermal imager is affected by the lighting conditions during the day, the acquired infrared image is affected by interference such as heat diffusion from the road surface, and its imaging effect is relatively poor. Therefore, a high-definition bayonet camera is used to trigger the infrared thermal imager to obtain multiple infrared thermal imaging pictures and full-screen temperature image data. The high-speed infrared thermal imager triggers the high-definition bayonet camera for synchronous capture, which is suitable for situations with poor visibility, such as at night or in severe weather conditions such as dense fog, rain and snow. The high-speed infrared thermal imager detects the heat of the vehicle, thereby triggering the bayonet camera to capture, while reducing the light pollution effect to a certain extent, and achieving on-demand capture.

[0055] Optionally, the monitoring area is captured synchronously by a high-definition bayonet camera and a high-speed infrared thermal imager, including: the high-definition bayonet camera captures the vehicle by triggering the line to obtain the license plate information; when the high-definition bayonet camera triggers the capture, it outputs a level and sends it to the high-speed infrared thermal imager, and triggers the high-speed infrared thermal imager to perform continuous synchronous capture to obtain multiple full-screen temperature image data, the full-screen temperature image data includes an infrared image and a full-screen temperature information matrix; the synchronously captured license plate information is added as a label for the full-screen temperature image data.

[0056] In some embodiments, the number of infrared images obtained by the high-speed infrared thermal imager at each synchronous capture moment is greater than or equal to 60, and the number of full-screen temperature information matrices is greater than or equal to 60.

[0057] In some embodiments, the high-speed infrared thermal imager has a resolution of 320*240. When the high-definition camera sends a synchronous capture signal to the high-speed infrared thermal imager for the i-th time, the high-speed infrared thermal imager is triggered to perform the i-th continuous capture to obtain the full-screen temperature image data data i =[IR_image 1,2,...,n ,Thermal_data 1,2,...,n ], where IR_image 1,2,...,n For infrared images, it is a 384*288 RGB image, Thermal_data1,2,...,n It is a 384*288 temperature information matrix. Each value in the temperature information matrix corresponds to the pixel point at the corresponding position in the RGB image. Each value in the temperature information matrix is ​​the temperature information of the pixel point at the corresponding position in the RGB image. At the same time, the license plate information captured by the high-definition camera for the i-th time is added as the label information of the full-screen temperature image data captured by the high-speed infrared thermal imager for the i-th time.

[0058] Optionally, the monitoring area is captured synchronously by a high-definition bayonet camera and a high-speed infrared thermal imager, including: the high-speed infrared thermal imager monitors and captures vehicles in the monitoring area by reading heat flow information in real time to obtain full-screen temperature image data; and outputs a high level to trigger the high-definition bayonet camera to capture vehicle information.

[0059] In some embodiments, the high-speed infrared thermal imager reads the heat flow information of the monitoring area in real time, triggers the full-screen temperature capture by drawing lines, obtains the full-screen temperature image data, and outputs a high level to trigger the high-definition bayonet camera to capture the vehicle information when the full-screen temperature image data meets the preset capture condition. The preset capture condition is that the temperature in the full-screen temperature image information is greater than the preset temperature threshold. Since the road temperature at night is significantly different from the vehicle body temperature, the vehicle is separated from the road by setting the temperature threshold for vehicle capture, thereby capturing the moment when the vehicle passes, and then at the moment when the vehicle passes, outputs a high level to trigger the high-definition bayonet camera to capture the license plate information, and at the same time, the license plate information captured by the high-definition bayonet camera is added as the label information of the full-screen temperature image data captured by the high-speed infrared thermal imager.

[0060] In some embodiments, the high-speed infrared thermal imager has a resolution of 320*240, and the full-screen temperature image data captured for the jth time is data j =[IR_image 1,2,...,n ,Thermal_data 1,2,...,n ], IR_image 1,2,…,n Represents n infrared images, Thermal_data 1,2,…,n Represents n full-screen temperature matrices, where n is calculated and determined based on the configuration of the high-speed infrared thermal imager. The field of view of the high-speed infrared thermal imager is 100m, the vehicle speed is 120km / h, the calculated travel time is about 3s, and the frame rate is 25 frames, so n is about 75 images.

[0061] In some embodiments, the field of view (FOV) of an infrared camera refers to the horizontal and vertical range that the camera can cover, usually expressed in degrees. An infrared camera is used to detect infrared radiation, so its field of view refers to the range of infrared radiation that the camera can observe. Generally speaking, the FOV of an infrared camera is usually described in horizontal and vertical angles. For example, a common FOV specification may be a horizontal FOV of 60 degrees and a vertical FOV of 45 degrees.

[0062] Optionally, after obtaining the synchronous capture information of the vehicle, it also includes: naming the captured infrared image and license plate information according to the capture time and license plate information, and sending them through a switch to a local industrial computer for storage as original images and data for temperature monitoring of key areas of high-speed vehicles.

[0063] Optionally, preprocessing the infrared image to obtain the target image includes: performing enhancement processing and super-resolution reconstruction processing on the infrared image to obtain the target image.

[0064] Optionally, a motion estimation algorithm is used to process adjacent infrared image frames to obtain an estimated image; a spatial alignment algorithm is used to process the estimated image to obtain a frame aligned image; and an image super-resolution algorithm is used to process the frame aligned image to obtain a target image.

[0065] Optionally, it also includes: using a motion estimation algorithm to process adjacent temperature information matrices; spatially aligning the temperature information matrices after motion estimation; and performing image super-resolution processing on the temperature information matrices after frame alignment to obtain a temperature information matrix corresponding to the target image.

[0066] In some embodiments, an optical flow algorithm is used to estimate the pixels in adjacent infrared image frames to obtain an estimated image; the estimated image contains motion information between consecutive frames, that is, the required highway vehicles. Since the physical space of the vehicle images of the previous and next frames is not consistent, the estimated images of each frame are spatially aligned to ensure that the information between consecutive frames can be correctly matched. The above-mentioned frame-aligned image is used to perform image super-resolution to generate a high-resolution image, thereby realizing the reconstruction of the high-definition image of the vehicle. The corresponding full-screen temperature information matrix is ​​also subjected to the same operation as above to ensure that the infrared image corresponds to it one by one. After image preprocessing, the vehicle contour in the thermal imaging image can be clear and the interference of other non-vehicle moving objects in the infrared image can be suppressed.

[0067] In some embodiments, since infrared images during the day and at night are relatively inconsistent and the interference during the day is relatively large, the number of pictures used is 60. The quality of infrared images at night is relatively good, and multiple pictures can be taken at equal intervals, such as 40 pictures.

[0068] Optionally, the vehicle key area detection model is constructed in the following way: a C3STR module and a channel space hybrid attention mechanism are introduced to improve the YOLOv8 target detection algorithm, and an improved YOLOv8 target detection model is constructed; and the improved YOLOv8 target detection model is trained using a preset sample set to obtain a vehicle key area detection model.

[0069] Optionally, combined Figure 2 As shown in the figure, the improved YOLOv8 target detection model includes a backbone module, a neck module and a detection head module; the backbone module has 10 layers, the 0th, 1st, 3rd, 5th and 7th layers are Conv modules, the 2nd and 4th layers are C2f modules, the 6th and 8th layers are C3STR modules, and the 9th layer is an SPPF module, and the first extracted feature, the second extracted feature and the third extracted feature are output from the 4th layer, the 6th layer and the 9th layer respectively; the neck module fuses the third extracted feature with the second extracted feature in the Concat module through the channel space hybrid attention mechanism and the Unsample module to obtain the first fused feature; the first fused feature The second fusion feature is obtained through the C2f module, the second fusion feature is passed through the Unsample module to obtain the third fusion feature, the third fusion feature is fused with the first extracted feature in the Concat module to obtain the fourth fusion feature, the fourth fusion feature is sequentially passed through the C2f module, the Conv module and the C2f module to obtain the fifth fusion feature, and the first fusion feature, the second fusion feature and the fifth fusion feature are respectively used as the output of the neck module; the detection head module includes three detection heads, and the detection head module inputs the first fusion feature, the second fusion feature and the fifth fusion feature into the three detection heads respectively to obtain multi-scale feature map information.

[0070] In some embodiments, the input of the backbone module (Backbone) is a standard 640*640 image, and the input image is standardized using proportional scaling combined with background filling processing technology to obtain a 640*640*3 input image. Each Conv part in the Backbone (i.e., ConvP1_0, ConvP2_1, ConvP3_3, ConvP4_5, ConvP5_7) uses a fixed convolution kernel to obtain the network receptive field and extract feature information at different scales; the C2f module provides rich gradient flow information to improve the convergence speed and convergence effect. Since the Backbone feature extraction network of the YOLOv8 detection network is a CNN network, CNN has translation invariance and locality, and lacks the ability of global modeling and long-distance modeling. This solution uses the C3STR module to replace the original C2f module to obtain a larger receptive field and stronger global feature capabilities to solve the problem of incomplete detection due to inconsistent vehicle sizes in infrared images.

[0071] The C3STR module is a Swin Transformer module, which consists of a window multi-head self-attention module (W-MSA) with a multi-layer perceptron and a sliding window multi-head self-attention model (sliding window multi-head self-attention module, SW-MSA), where MSA is modeled globally and W-MSA is modeled through a local window. A layer of LN is added before each MSA module and MLP module, and a residual connection module is added before each MSA module and MLP module. SW-MSA moves two patches to the lower right corner based on W-MSA, thereby indirectly expanding the receptive field and making full use of its global features.

[0072] In some embodiments, the neck module (Neck) uses a path aggregation network and a C2f module to fuse feature maps of different scales output by the three stages of Backbone, helping to aggregate shallow information into deep features; in the feature processing process of infrared images, a channel space hybrid attention mechanism (Convolutional Block Attention Module, CBAM) module is introduced to utilize its dual-channel characteristics to obtain more feature information, and complete feature fusion at different scales at the Concat module, effectively reducing the problem of missed detection in infrared image vehicle tire detection.

[0073] Optionally, a channel-space hybrid attention mechanism (Convolutional Block Attention Module, CBAM) includes a channel attention module and a spatial attention module; the first feature is input into the channel attention module to obtain the output of the channel attention module, and the output of the channel attention module is input into the spatial attention module to obtain the output of the channel-space hybrid attention mechanism module.

[0074] In some embodiments, in order to solve the problem of low resolution and unclear feature extraction in infrared images, this solution uses a channel + space hybrid attention mechanism (Convolutional Block Attention Module, CBAM) module to be embedded in the backbone network to improve the feature extraction capability of the backbone network. The CBAM module decomposes the attention mechanism in the three-dimensional feature map into channel attention and spatial attention, thereby reducing the amount of calculation and parameters in the model and extracting more feature information. The channel attention mechanism mainly focuses on the useful information in the infrared image, that is, the "vehicle tire", and the spatial attention mechanism mainly focuses on the location of the useful information in the infrared image, that is, the location of the "vehicle tire". The channel attention module and the spatial attention module in the CBAM module are connected in series, with the channel attention module in front. This solution uses the dual-channel characteristics of CBAM to extract more feature information from the original feature image and detect key areas and position information in the vehicle to the maximum extent possible.

[0075] Alternatively, the overall CBAM process can be expressed as follows:

[0076]

[0077]

[0078] F is the input feature map, that is, the first feature, F∈{R C×H×W}, R C×H×W represents a feature map (or tensor) with C channels, height H, and width W, M C (F) represents the output of the channel attention module, M stands for dot product s (F′) represents the output of the spatial attention module, and F″ represents the output of the channel-spatial mixed attention mechanism module.

[0079] Optionally, the channel attention module includes a maximum pooling layer, an average pooling layer, a shared multi-layer perceptron layer and a background description layer.

[0080] In some embodiments, the background description layer corresponds to the weights of the three channels, respectively, and is used to describe the focus of each channel. For example, one channel focuses on detecting edges, while another channel focuses on detecting textures, which can be used to focus on the background position where the vehicle is located.

[0081] Optionally, the channel attention module is expressed by the following formula:

[0082]

[0083] Among them, F represents the first feature of the input, σ is the sigmoid function, MLP is a multi-layer perceptron, AvgPool represents average pooling, MaxPool represents maximum pooling, W0 and W1 are the shared weights of the input of the multi-layer perceptron, is the channel average pooling feature, is the channel maximum pooling feature, M C (F) represents the output of the channel attention module.

[0084] Combination Figure 3 As shown in the figure, the input feature map F enters the shared multi-layer perceptron layer after the maximum pooling and average pooling respectively. The output of the shared multi-layer perceptron layer passes through two background description layers respectively to obtain the channel attention map M output by the channel attention module. c MLP is a multilayer perceptron, including two input shared weights W0 and W1. MLP is a two-layer structure. The number of neurons in the first layer is C / r, r is the reduction rate, C is the number of channels, R represents the feature map, and the weight is W0, W0∈R C×C / r , the output of the first layer is and Its activation function is Relu. The weight of the second layer is W1, W1∈R C×C / r , the output results of the second layer are and The features output by MLP and Perform element-wise addition operation and then sigmoid activation operation to generate the final M C (F)

[0085] Optionally, combined Figure 4 As shown in Figure 1, the spatial attention module includes a maximum pooling layer, an average pooling layer, and a convolutional layer. After the input feature map F' undergoes maximum pooling and average pooling, it enters the convolutional layer to obtain the output M of the spatial attention module. S .

[0086] Optionally, the spatial attention module is expressed by the following formula:

[0087]

[0088] In the above formula, σ represents the Sigmoid function, f 7×7 represents a convolution operation with a filter size of 7×7, is the spatial average pooling feature, is the spatial maximum pooling feature, M s (F) represents the output of the spatial attention module.

[0089] In some embodiments, the detection head module inputs the first fusion feature, the second fusion feature and the fifth fusion feature into three detection heads respectively, and the output multi-scale feature map information is 80*80*256; 40*40*512; 20*20*512 feature map information respectively.

[0090] Optionally, the detection head module outputs multi-scale feature map information, and a Soft NMS algorithm is used to filter the multi-scale feature map information to obtain a model output result.

[0091] In some embodiments, there may be some false detections or missed detections in the detection results of YOLOv8. This solution uses the Soft NMS algorithm of the Gaussian reset method to replace the NMS algorithm in the YOLOv8 algorithm. The advantage of this algorithm is that it only requires simple modifications to the traditional NMS algorithm, does not require the addition of additional parameters, and is easy to modify and innovate. At the same time, Soft-NMS has the same algorithm complexity as traditional NMS without increasing the algorithm complexity, does not require additional training, and is easy to implement. It can be easily integrated into any target detection process, and can effectively remove the missing missed detections when the vehicle is following, that is, the corresponding Head part.

[0092] Optionally, the improved YOLOv8 target detection model is trained using a preset sample set to obtain a vehicle key area detection model, including: acquiring an infrared image of the vehicle traveling sideways, and using Labelbox software to mark the position of the vehicle tires in the infrared image of the vehicle traveling sideways to obtain a sample set; performing image enhancement and image diversification processing on the infrared image of the vehicle traveling sideways to obtain a sample set; setting initial parameters of the improved YOLOv8 target detection model, and using the sample set to train the improved YOLOv8 target detection model to obtain a vehicle key area detection model.

[0093] In some embodiments, since the full-screen temperature matrix Thermal_data is full-screen temperature information, its numerical form is double-precision type. Although it contains temperature information, the data volume is relatively large, and the same numerical value occupies 8 bytes, while the numerical form of the infrared image IR_image is unit8 type, which only occupies 1 byte. The improved YOLOv8 target detection model provided by this solution only needs to collect infrared images IR_image for model training. The infrared images IR_image are easy to collect and the storage scale of the infrared images IR_image is small. The improved YOLOv8 target detection model can be trained quickly and effectively in real time, thereby improving the efficiency of model training.

[0094] Since infrared images may be affected by many factors, such as temperature changes and weather, image enhancement is used to process infrared images to improve the generalization ability of the model. Rotation, scaling, shearing and other techniques are used to diversify the processing of infrared images and increase the diversity of training data.

[0095] In some embodiments, the initial parameters of the improved YOLOv8 target detection model are set according to the hardware equipment parameters of the industrial computer and the recognition effect to be achieved, and the improved YOLOv8 target detection model is trained using a training set to optimize the parameters of the improved YOLOv8 target detection model, thereby obtaining an optimized improved YOLOv8 target detection model, i.e., a vehicle key area detection model.

[0096] Optionally, determining the temperature information corresponding to the key area according to the full-screen temperature information matrix includes: determining temperature data of the key area of ​​the target image in the full-screen temperature information matrix based on a corresponding relationship between the target image and the full-screen temperature information matrix.

[0097] In some embodiments, the target image corresponds to the full-screen temperature information matrix one by one, and the temperature mean T of the corresponding area of ​​the full-screen temperature information matrix is ​​queried according to the pixel area of ​​the detection result of the key area of ​​the vehicle in the target 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. Finally, the key area temperature T is superimposed on the vehicle key area detection model for display.

[0098] In some embodiments, a high-speed vehicle key area temperature monitoring system includes a cloud server and a high-speed vehicle key area temperature monitoring device; the cloud server is used to execute the above-mentioned high-speed vehicle key area temperature monitoring method, and the high-speed vehicle key area temperature monitoring device is used to obtain vehicle synchronous snapshot information and send it to the cloud server. The high-speed vehicle key area temperature monitoring device includes at least 2 high-speed infrared thermal imagers, as well as high-definition bayonet cameras, switches, industrial computers, routers, L-shaped poles and cabinets.

[0099] Optionally, temperature monitoring equipment in key areas of high-speed vehicles is used to obtain synchronous snapshot information of the vehicle. The temperature monitoring equipment in key areas of high-speed vehicles includes 2 high-speed infrared thermal imagers, 1 high-definition bayonet camera, 1 switch, 1 industrial computer, 1 4G router, 1 L-pole, 1 cabinet, and several machined parts and wires.

[0100] In some embodiments, in combination Figure 5As shown, an L-shaped pole is installed beside a highway to ensure that it can cover at least two lanes (normal lane and emergency lane). A high-speed infrared thermal imager 2 is deployed on the L-shaped pole 1 near the column position, another high-speed infrared thermal imager 2 is deployed on the L-shaped pole 1 near the emergency lane of the normal lane, and a high-definition bayonet camera 3 is deployed in the middle of the normal lane just above the L-shaped pole 1. The monitoring area is synchronously captured by the high-definition bayonet camera 3 and the high-speed infrared thermal imager 2, and the synchronous capture information is sent to the local industrial computer 5 through the switch 4, and the industrial computer 5 sends the synchronous capture information to the cloud server 6.

[0101] Optionally, the high-definition bayonet camera supports rapid license plate capture, covers 3 lanes, and has level input and output trigger functions.

[0102] Optionally, one infrared thermal imager covers the normal driving lane, and the field of view distance is not less than 100m of the normal driving lane, and supports the level input and output trigger function. Another infrared thermal imager covers the fast lane, and the field of view distance is not less than 150m of the fast lane, and supports the level input and output trigger function.

[0103] Optionally, the high-speed infrared thermal imager meets the following technical parameters: response time ≤ 20ms, with trigger input and trigger output functions; the resolution should be higher than the image resolution of 320*240; the number of full-screen temperature information frames should be no less than 25 frames, such as FLIR A6750, JuGe Technology MAG21HF, Fluke RES60, etc.

[0104] Optionally, the switch should support Gigabit network to ensure that the infrared image and full-screen heat flow data of the high-speed infrared thermal imaging camera are output to the local industrial computer in real time.

[0105] 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 method for monitoring temperature in key areas of high-speed vehicles, characterized in that: include: Get vehicle synchronous capture information; The vehicle synchronous capture information includes license plate information, infrared image of the vehicle and full-screen temperature information matrix; Preprocessing the infrared image to obtain a target image; Inputting the target image into a vehicle key area detection model to obtain the key area of ​​the target image; Determine the temperature information corresponding to the key area according to the full-screen temperature information matrix; The vehicle key area detection model is constructed in the following way: The C3STR module and channel-space hybrid attention mechanism are introduced to improve the YOLOv8 target detection algorithm and build an improved YOLOv8 target detection model. The improved YOLOv8 target detection model is trained using the preset sample set to obtain the vehicle key area detection model.

2. The method according to claim 1, characterized in that Get vehicle synchronous capture information, including: The monitoring area is captured synchronously by a high-definition bayonet camera and a high-speed infrared thermal imager; the high-definition bayonet camera captures the license plate information; the high-speed infrared thermal imager captures the infrared image and full-screen temperature information matrix of the vehicle; and the synchronously captured license plate information is added as a label to the infrared image and the full-screen temperature information matrix.

3. The method according to claim 2, characterized in that The monitoring area is captured synchronously by a high-definition bayonet camera and a high-speed infrared thermal imager, including: Trigger the high-definition bayonet camera to capture by drawing a line, and trigger the high-speed infrared thermal imager to capture synchronously by the high-definition bayonet camera, or trigger the high-speed infrared thermal imager to capture by drawing a line, and trigger the high-definition bayonet camera to capture synchronously by the high-speed infrared thermal imager.

4. The method according to claim 1, characterized in that: Preprocessing the infrared image to obtain a target image includes: The infrared image is enhanced and reconstructed with super resolution to obtain a target image.

5. The method according to claim 1, characterized in that The improved YOLOv8 target detection model includes a trunk module, a neck module and a detection head module; The backbone module has 10 layers in total. The 0th, 1st, 3rd, 5th and 7th layers are Conv modules, the 2nd and 4th layers are C2f modules, the 6th and 8th layers are C3STR modules, and the 9th layer is an SPPF module. The first extracted feature, the second extracted feature and the third extracted feature are output from the 4th, 6th and 9th layers respectively. The neck module passes the third extracted feature through the channel space hybrid attention mechanism and the Unsample module, and fuses it with the second extracted feature in the Concat module to obtain the first fused feature; the first fused feature passes through the C2f module to obtain the second fused feature, the second fused feature passes through the Unsample module to obtain the third fused feature, the third fused feature is fused with the first extracted feature in the Concat module to obtain the fourth fused feature, the fourth fused feature passes through the C2f module, the Conv module and the C2f module in sequence to obtain the fifth fused feature, and the first fused feature, the second fused feature and the fifth fused feature are respectively used as the output of the neck module; the detection head module includes three detection heads, and the detection head module inputs the first fused feature, the second fused feature and the fifth fused feature into the three detection heads respectively to obtain multi-scale feature map information.

6. The method according to claim 5, characterized in that The channel-space hybrid attention mechanism includes a channel attention module and a spatial attention module; The first feature is input into the channel attention module to obtain the output of the channel attention module, and the output of the channel attention module is input into the spatial attention module to obtain the output of the channel-space mixed attention mechanism module.

7. The method according to claim 6, characterized in that The channel attention module is expressed by the following formula: Among them, F represents the first feature of the input, σ is the sigmoid function, MLP is a multi-layer perceptron, AvgPool represents average pooling, MaxPool represents maximum pooling, W0 and W1 are the shared weights of the input of the multi-layer perceptron, is the channel average pooling feature, is the channel maximum pooling feature, M C (F) represents the output of the channel attention module; The spatial attention module is expressed as follows: In the above formula, σ represents the Sigmoid function, f 7×7 represents a convolution operation with a filter size of 7×7, is the spatial average pooling feature, is the spatial maximum pooling feature, M s (F) represents the output of the spatial attention module.

8. The method according to claim 5, characterized in that The detection head module outputs multi-scale feature map information, and the Soft NMS algorithm is used to filter the multi-scale feature map information to obtain the model output result.

9. A high-speed vehicle key area temperature monitoring system, characterized in that: It includes a cloud server and a temperature monitoring device for key areas of high-speed vehicles; the cloud server is used to execute the temperature monitoring method for key areas of high-speed vehicles as described in any one of claims 1 to 8, and the temperature monitoring device for key areas of high-speed vehicles is used to obtain vehicle synchronous snapshot information and send it to the cloud server, and the temperature monitoring device for key areas of high-speed vehicles includes at least 2 high-speed infrared thermal imagers, as well as high-definition bayonet cameras, switches, industrial computers, routers, L-shaped poles and cabinets.

Citation Information

Patent Citations

  • Hub temperature anomaly detection and early warning method and system

    CN105869408A