A vehicle chassis foreign body detection and early warning method and system based on micro-expressions

By applying the micro-expression detection module and deep learning model in vehicle chassis detection, combined with multi-scale feature extraction, the problems of low vehicle chassis detection efficiency and insufficient accuracy in the existing technology are solved, and efficient foreign object identification and early warning are achieved.

CN117710929BActive Publication Date: 2024-09-17NANJING UNIV +1
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202311825981.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-27
Publication Date
2024-09-17
Estimated Expiration
2043-12-27

AI Technical Summary

Technical Problem

The existing technology has low efficiency and low informatization level in vehicle chassis inspection, and cannot make full use of multi-disciplinary and multi-modal data by relying on single device scanning, resulting in low foreign object recognition accuracy and efficiency.

Method used

A vehicle chassis foreign object inspection and early warning method based on micro-expressions is adopted. By obtaining vehicle chassis image data, the micro-expression detection module is used to generate local spatial prior information, and the deep residual network and visual Transformer model are combined to extract multi-scale features from the vehicle chassis images. and detection to achieve automatic identification and early warning of foreign objects.

Benefits of technology

The accuracy and real-time reasoning speed of foreign object detection on the vehicle chassis are improved. Through multi-modal information fusion, micro-expressions are used to associate suspicious areas under the vehicle to generate local spatial prior information, which improves detection efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117710929B
    Figure CN117710929B
Patent Text Reader

Abstract

The present invention provides a vehicle chassis foreign body inspection and early warning method and system based on micro-expression, the method comprising: obtaining a chassis image scanning video of a to-be-inspected vehicle; collecting a face video; using a micro-expression detection module to detect the face video, and obtaining the starting time, peak time and end time of micro-expressions in the face video; intercepting the vehicle chassis image scanning video according to the starting time and the end time, and generating local space prior information guided by micro-expressions; constructing a chassis foreign body detection model, detecting the vehicle chassis image based on the local space prior information guided by micro-expressions and the micro-expression peak time, obtaining a final prediction result, and issuing an early warning. The present invention uses a multimodal information fusion method, improves the accuracy of chassis foreign body detection, and simultaneously improves the real-time reasoning speed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a vehicle chassis foreign body detection and early warning method and system, in particular to a vehicle chassis foreign body detection and early warning method and system based on micro-expression. Background Art

[0002] In today's era, the rapid development of science and technology has brought a lot of convenience to people's lives, but it has also brought some social security problems. The safety hazard of automobile chassis is becoming more and more serious. Therefore, automobile chassis inspection is becoming more and more important. At present, many occasions of vehicle chassis are still inspected manually, which not only increases the workload of security personnel, but also slows down the passage of vehicles. This traditional method has the disadvantages of low efficiency, low degree of informatization, and poor personal safety protection. Using the target detection technology in computer vision to analyze and detect the bottom of the vehicle picture, and automatically identify the safety hazards under the vehicle, this method is more efficient and safer.

[0003] However, due to the complex structure of the vehicle's underbody, the method of relying solely on the underbody images scanned by the equipment for detection is too simple and fails to fully utilize multidisciplinary and multimodal data for training and detection. The recognition accuracy of foreign objects under the vehicle is low and the efficiency is very low. Summary of the invention

[0004] Purpose of the invention: The technical problem to be solved by the present invention is to provide a vehicle chassis foreign body detection and warning method and system based on micro-expressions in view of the deficiencies in the prior art.

[0005] In order to solve the above technical problems, the present invention discloses a vehicle chassis foreign body detection and early warning method and system based on micro-expressions;

[0006] Wherein, the steps include:

[0007] Step 1, obtaining vehicle chassis image data, i.e., a scanning video of the chassis image of the vehicle to be inspected;

[0008] Step 2, capturing the face and generating a face video;

[0009] Step 3, using a micro-expression detection module to detect the face video, and obtain the starting time, peak time and end time of the micro-expression in the face video;

[0010] Step 4, intercepting the vehicle chassis image scanning video according to the starting time and the end time, and generating local spatial prior information guided by micro-expression;

[0011] Step 5, construct a chassis foreign object detection model, detect the vehicle chassis image based on the local spatial prior information guided by micro-expressions and the micro-expression peak moment, obtain the final prediction result, and issue an early warning to complete the vehicle chassis foreign object inspection and early warning based on micro-expressions.

[0012] Furthermore, the method for generating the face video in step 2 includes:

[0013] Play the scanning video of the chassis image of the vehicle to be inspected obtained in step 1, wherein the video duration is set to a preset duration, and the scanning video displays the complete chassis image of the vehicle to be inspected in a preset direction, and displays a prompt mark in the vertical direction of the preset direction, and the prompt mark moves slowly along the vertical direction over time; the owner of the vehicle to be inspected watches the entire scanning video, and at the same time, the owner's face is captured by a camera to obtain a face video of preset duration.

[0014] Furthermore, the micro-expression detection module described in step 3 specifically includes:

[0015] The TIM algorithm is used to perform time domain image interpolation on the input image, and then the LBP-TOP operator is used to extract micro-expression features to complete the micro-expression detection of the input image.

[0016] Furthermore, the step 3 of obtaining the starting time, peak time and end time of the micro-expression in the face generation video specifically includes:

[0017] Use the micro-expression detection module to detect and mark the starting time of all N groups of micro-expressions Peak Moments and the end moment i=1,2,3,…,N, where the starting time is That is, the time when micro-expressions appear, the peak moment The time when the micro-expression is the largest, the end time That is the time when the micro-expression disappears.

[0018] Furthermore, the local spatial prior information for generating micro-expression guidance described in step 4 specifically includes:

[0019] Step 4-1, collecting the starting time and ending time of all micro-expressions detected in step 3, and taking the minimum value T1 and the maximum value T2;

[0020] Step 4-2, processing the vehicle chassis image scanning video, extracting two frames at time T1 and T2, and determining the area D surrounded by the prompt mark according to the position of the prompt mark in the two frames;

[0021] Step 4-3, intercepting the vehicle chassis image according to area D to generate local spatial prior information I guided by micro-expressions.

[0022] Furthermore, the chassis foreign body detection model described in step 5 includes: a spatial priori generation module, a spatial feature injection module, a multi-scale feature extraction module and a detection head, wherein:

[0023] The spatial prior generation module is used to extract spatial features from the local spatial prior information obtained in step 4 and output spatial prior features. The spatial prior generation module is composed of a deep residual network ResNet.

[0024] The spatial feature injection module is used to inject spatial prior features into the ViT model, that is, the image input features output by the embedding layer in the ViT model are used as queries, and the spatial prior features are used as key values ​​to perform deformable cross-attention calculations and output new image features;

[0025] The multi-scale feature extraction module is used to extract multi-scale features from the ViT model based on spatial features, that is, the spatial prior features are used as queries, the encoded output features output by the encoding layer in the ViT model are used as key values, cross-attention calculations are performed, and multi-scale features are output;

[0026] The detection head is used to detect the 2D bounding box and category of foreign objects from multi-scale features and generate prediction results. The detection head uses the instance segmentation network Mask R-CNN.

[0027] Furthermore, the detection of the vehicle chassis image in step 5 specifically includes:

[0028] Step 5-1: Input the vehicle chassis image into the embedding layer of the ViT model to generate the image input feature F vit ;

[0029] Step 5-2: Input the local spatial prior information I guided by the micro-expression into the spatial prior generation module to extract the local spatial features and obtain the spatial prior features F emo ;

[0030] Step 5-3, input the image into feature F vit and spatial prior features F emo Input spatial feature injection module, let the image input feature F vit As a query, the spatial prior feature F emo As the key value, collect the peak moments of N micro-expressions

[0031] Step 5-4, process the vehicle chassis image scanning video, extract all the frames corresponding to the above peak moments, obtain all the prompt marks therein, evenly select a preset number k of reference points on each mark, project the reference points onto the vehicle chassis image, and generate a final series of reference points S j , j = 1, 2, 3, ..., k*N;

[0032] Step 5-5, based on the above reference points, queries and key values, perform deformable cross attention calculations, inject spatial prior features into the ViT model, and obtain new image features The specific method is as follows:

[0033]

[0034] Among them, F vit represents the image input features, F emo represents the spatial prior feature, S represents the reference point, γ represents the weight parameter, DeformAttn represents the variability attention calculation, Represents the new image features after injecting the spatial prior features;

[0035] Step 5-6: New image features Input the encoding layer of the ViT model for further feature extraction to obtain the encoded output feature F′ vit , let the encoding output feature F′ vit As the key value, the spatial prior feature F emo As a query, input the multi-scale feature extraction module, perform cross-attention calculation, and extract the multi-scale feature F′ emo , the specific method is as follows:

[0036]

[0037]

[0038] Among them, F emo Represents the spatial prior features, F′ vit represents the encoded output feature, Attention represents the cross attention calculation, represents enhanced spatial prior features, FFN represents feedforward network, and F′ emo Represents the multi-scale features finally extracted;

[0039] Step 5-7: finally extract the multi-scale feature F′ emo Input the detection head to get the final prediction result.

[0040] Furthermore, the preset duration described in step 2 is 10 seconds.

[0041] Furthermore, the preset number k in step 5-4 is 5.

[0042] A vehicle chassis foreign body detection and early warning system based on micro-expressions, comprising a storage medium and a processor;

[0043] The storage medium is used to store instructions;

[0044] The processor is used to operate according to the instructions to implement the above method.

[0045] Beneficial effects:

[0046] The present invention uses multimodal information fusion and micro-expressions to associate suspicious areas under the vehicle, generating local spatial prior information of foreign objects in the underbody image, thereby improving the accuracy of chassis foreign object detection and simultaneously improving the real-time reasoning speed. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments, and the above and / or other advantages of the present invention will become more clear.

[0048] Figure 1 is a flow chart of the method of the present invention.

[0049] Figure 2 It is a schematic diagram of face collection equipment.

[0050] Figure 3 This is the structural diagram of the chassis foreign object detection model. DETAILED DESCRIPTION

[0051] The purpose of the invention is to overcome the deficiencies in the prior art and provide a vehicle chassis foreign body detection and warning method and system based on micro-expressions.

[0052] In order to achieve the above object, the present invention adopts the following technical solutions:

[0053] The present invention discloses a vehicle chassis foreign body detection and early warning method and system based on micro-expressions, wherein the method comprises:

[0054] Step 1, obtaining vehicle chassis image data;

[0055] Step 2, construct a face acquisition device to capture faces and generate face videos;

[0056] Step 3: The micro-expression detection module detects the face video and generates the start and end times of the micro-expressions in the video;

[0057] Step 4: intercept the vehicle chassis image scanning video according to the starting and ending time to generate local spatial prior information guided by micro-expression;

[0058] Step 5: Build a chassis foreign object detection model, detect the vehicle chassis image based on the local spatial prior information guided by micro-expressions, obtain the final prediction result, and issue an early warning.

[0059] Furthermore, the face collection device described in step 2 includes:

[0060] The device consists of a high-definition screen and a high-definition camera, which is located above the screen;

[0061] Furthermore, the step 2 of generating a face video includes:

[0062] The screen of the device plays a 10-second scanning video of the chassis image of the vehicle to be inspected. The video displays the complete bottom image of the vehicle to be inspected vertically, and a red line is displayed horizontally. The red line slowly moves vertically from bottom to top over time. The car owner needs to stand and look directly at the screen to watch the entire video. The screen camera captures the face and generates a 10-second face video.

[0063] Furthermore, the starting and ending moments of the micro-expressions in the generated video described in step 3 include:

[0064] The micro-expression detection module uses the Temporal Interpolation Model (TIM) algorithm (reference: Z.Zhou, G.Zhao and M. "Towards a practical lipreading system," CVPR 2011, Colorado Springs, CO, USA, 2011, pp. 137-144, doi: 10.1109 / CVPR.2011.5995345) is used to interpolate the image in the time domain, and then the local binary pattern LBP-TOP (Local Binary Pattern histograms from Three Orthogonal Planes) operator (reference: Pfister T, Li X, Zhao G, et al. Recognising spontaneous facial micro-expressions [C] / / 2011 international conference on computer vision. IEEE, 2011: 1449-1456) is used to extract micro-expression features, and the starting points of N groups of micro-expressions are detected and marked. Peak and end point i=1,2,3…,N. The starting point refers to the time when the micro-expression appears, the peak value refers to the time when the micro-expression has the largest amplitude, and the end point refers to the time when the micro-expression disappears.

[0065] Furthermore, the local spatial prior information for generating micro-expression guidance described in step 4 includes:

[0066] Collect the start and end times of all detected micro-expressions, take the minimum value T1 and the maximum value T2, process the vehicle chassis image scanning video, extract two frames at time T1 and T2, determine the area D surrounded by the red lines according to the positions of the two red lines in the two frames, intercept the vehicle chassis image according to D, and generate local spatial prior information I guided by micro-expressions;

[0067] Furthermore, the construction of the chassis foreign body detection model described in step 5 includes:

[0068] The spatial prior generation module is used to extract spatial features from the input image. The spatial prior generation module uses a deep residual network ResNet (reference: He K, Zhang X, Ren S, et al. Deep residual learning for image recognition [C] / / Proceedings of the IEEE conference on computer vision and pattern recognition. 2016: 770-778.);

[0069] The spatial feature injection module is used to inject spatial features into the Vision Transformer ViT (Vision Transformer) model (reference: Dosovitskiy A, Beyer L, Kolesnikov A, et al. An image is worth 16x16 words: Transformers for image recognition at scale [J]. arXiv preprint arXiv: 2010.11929, 2020.);

[0070] The multi-scale feature extraction module extracts multi-scale features from the ViT model based on spatial features;

[0071] The detection head is used to detect the 2D bounding box and category of the foreign object from the multi-scale features and generate a prediction result. The detection head uses the instance segmentation network Mask R-CNN (reference: He K, Gkioxari G, Dollár P, et al. Mask r-cnn[C] / / Proceedings of the IEEE international conference on computervision.2017:2961-2969.).

[0072] Furthermore, the vehicle chassis image is detected based on the local spatial prior information guided by micro-expressions described in step 5, and the final prediction results include:

[0073] The vehicle chassis image is input into the embedding layer of the general ViT model to generate the image input feature F vit ;

[0074] The local spatial prior information I guided by the micro-expression is input into the spatial prior generation module to extract the local spatial features, and the spatial prior feature F is obtained. emo ;

[0075] Feature F vit and feature F emo Input space feature injection module, let F vit As a query, F emo As the key value, collect the peak values ​​of N micro-expressions The vehicle chassis image scanning video is processed, and the frames corresponding to all peak moments are extracted to obtain N red lines in the frame. Five reference points are evenly taken on each red line, and the reference points are projected onto the vehicle chassis image to generate a final series of reference points S i , i = 1, 2, 3, ..., 5*N, perform deformable cross attention calculation based on reference points, queries and key values, inject spatial prior features into the ViT model, and obtain The specific method is as follows:

[0076]

[0077] Among them, F vit represents the image input features, F emo represents the spatial prior feature, S represents the reference point, γ represents the weight parameter, DeformAttn represents the variability attention calculation, Represents the new image features after injecting spatial prior features.

[0078] Will Input the encoding layer of the ViT model for further feature extraction to obtain the encoded output feature F′ vit, let F′ vit As a key value, F emo As a query, input the multi-scale feature extraction module, perform cross-attention calculation, and extract the multi-scale feature F′ emo , the specific method is as follows:

[0079]

[0080] Among them, F emo Represents the spatial prior features, F′ vit represents the encoded output feature, Attention represents the cross attention calculation, represents enhanced spatial prior features, FFN represents feedforward network, and F′ emo Represents the final extracted multi-scale features.

[0081] The multi-scale feature F′ emo Input the detection head, obtain the final prediction result, and issue an early warning.

[0082] Example:

[0083] The present invention will be further described below in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and cannot be used to limit the protection scope of the present invention.

[0084] This embodiment provides a vehicle chassis foreign body detection and warning method based on micro-expressions, see Figure 1 , specifically including the following steps:

[0085] Step 1, obtaining vehicle chassis image data;

[0086] Step 2, construct a face acquisition device to capture faces and generate face videos;

[0087] Step 3: The micro-expression detection module detects the face video and generates the start and end times of the micro-expressions in the video;

[0088] Step 4: intercept the vehicle chassis image scanning video according to the starting and ending time to generate local spatial prior information guided by micro-expression;

[0089] Step 5: Build a chassis foreign object detection model, detect the vehicle chassis image based on the local spatial prior information guided by micro-expressions, obtain the final prediction result, and issue an early warning.

[0090] Preferably, the face acquisition device described in step 2 is as follows: Figure 2 As shown, including:

[0091] The device consists of a high-definition screen and a high-definition camera, which is located above the screen;

[0092] Preferably, the step of generating a face video in step 2 includes:

[0093] The screen of the device plays a 10-second scanning video of the chassis image of the vehicle to be inspected. The video displays the complete bottom image of the vehicle to be inspected vertically, and a red line is displayed horizontally. The red line slowly moves vertically from bottom to top over time. The car owner needs to stand and look directly at the screen to watch the entire video. The screen camera captures the face and generates a 10-second face video.

[0094] Preferably, the starting and ending moments of the micro-expressions in the generated video in step 3 include:

[0095] The micro-expression detection module uses the TIM algorithm to perform time domain image interpolation, and then uses the LBP-TOP operator to extract micro-expression features, detect and mark the starting points of N groups of micro-expressions Peak and end point i=1,2,3…,N. The starting point refers to the time when the micro-expression appears, the peak value refers to the time when the micro-expression has the largest amplitude, and the end point refers to the time when the micro-expression disappears.

[0096] Preferably, the local spatial prior information for generating micro-expression guidance in step 4 includes:

[0097] Collect the start and end times of all detected micro-expressions, take the minimum value T1 and the maximum value T2, process the vehicle chassis image scanning video, extract two frames at time T1 and T2, determine the area D surrounded by the red lines according to the positions of the two red lines in the two frames, intercept the vehicle chassis image according to D, and generate local spatial prior information I guided by micro-expressions;

[0098] Preferably, the construction of the chassis foreign body detection model in step 5 is as follows: Figure 3 As shown, including:

[0099] The spatial prior generation module is used to extract spatial features from the input image, and the spatial prior generation module uses a deep residual network ResNet;

[0100] The spatial feature injection module is used to inject spatial features into the ViT model (reference: Dosovitskiy A, Beyer L, Kolesnikov A, et al. An image is worth 16x16 words: Transformers for image recognition at scale [J]. arxiv preprint arxiv: 2010.11929, 2020.);

[0101] The multi-scale feature extraction module extracts multi-scale features from the ViT model based on spatial features.

[0102] Preferably, the local spatial prior information guided by micro-expressions described in step 5 is used to detect the vehicle chassis image to obtain the final prediction result, which includes:

[0103] The vehicle chassis image is input into the embedding layer of the general ViT model to generate the image input feature F vit ;

[0104] The local spatial prior information I guided by the micro-expression is input into the spatial prior generation module to extract the local spatial features, and the spatial prior feature F is obtained. emo ;

[0105] Feature F vit and feature F emo Input space feature injection module, let F vit As a query, F emo As the key value, collect the peak values ​​of N micro-expressions The vehicle chassis image scanning video is processed, and the frames corresponding to all peak moments are extracted to obtain N red lines in the frame. Five reference points are evenly taken on each red line, and the reference points are projected onto the vehicle chassis image to generate a final series of reference points S i , i = 1, 2, 3, ..., 5*N, perform deformable cross attention calculation based on reference points, queries and key values, inject spatial prior features into the ViT model, and obtain The specific method is as follows:

[0106]

[0107] Among them, F vit represents the image input features, F emo represents the spatial prior feature, S represents the reference point, γ represents the weight parameter, DeformAttn represents the variability attention calculation, Represents the new image features after injecting spatial prior features.

[0108] Will Input the encoding layer of the ViT model for further feature extraction to obtain the encoded output feature F′ vit , let F′ vit As a key value, F emo As a query, input the multi-scale feature extraction module, perform cross-attention calculation, and extract the multi-scale feature F′ emo , the specific method is as follows:

[0109]

[0110] Among them, F emo Represents the spatial prior features, F′ vit represents the encoded output feature, Attention represents the cross attention calculation, represents enhanced spatial prior features, FFN represents feedforward network, and F′ emo Represents the final extracted multi-scale features.

[0111] The multi-scale feature F′ emo Input the detection head, obtain the final prediction result, and issue an early warning.

[0112] The present invention also proposes a vehicle chassis foreign body detection and early warning system based on micro-expressions, comprising a storage medium and a processor;

[0113] The storage medium is used to store instructions;

[0114] The processor is configured to operate according to the instructions to execute the steps of the method according to any one of the first aspects.

[0115] In some embodiments, the method and system of the present invention can be applied to detect vehicle chassis, including contraband hidden in the chassis, with good results.

[0116] The present invention also provides a computer-readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the vehicle chassis foreign body detection and warning method as described above is implemented.

[0117] In a specific implementation, the present application provides a computer storage medium and a corresponding data processing unit, wherein the computer storage medium can store a computer program, and when the computer program is executed by the data processing unit, the invention content of a vehicle chassis foreign body detection and early warning method and system based on micro-expressions provided by the present invention and some or all steps in each embodiment can be run. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0118] Those skilled in the art can clearly understand that the technical solutions in the embodiments of the present invention can be implemented by means of computer programs and their corresponding general hardware platforms. Based on such an understanding, the technical solutions in the embodiments of the present invention can be essentially or partly contributed to the prior art in the form of computer programs, i.e., software products, which can be stored in a storage medium and include several instructions for enabling a device including a data processing unit (which can be a personal computer, a server, a single-chip microcomputer, an MCU or a network device, etc.) to execute the methods described in various embodiments of the present invention or certain parts of the embodiments.

[0119] The present invention provides a method and system for detecting and warning foreign objects in a vehicle chassis based on micro-expressions. There are many methods and ways to implement the technical solution. The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention. All components not specified in this embodiment can be implemented by existing technologies.

[0120] The embodiments of the present invention are for legal use.

Claims

1. A vehicle chassis foreign body detection and early warning method based on micro-expressions, characterized in that: The steps include: Step 1, obtaining vehicle chassis image data, i.e., a scanning video of the chassis image of the vehicle to be inspected; Step 2, capturing the face and generating a face video; Step 3, using a micro-expression detection module to detect the face video, and obtain the starting time, peak time and end time of the micro-expression in the face video; Step 4, intercepting the vehicle chassis image scanning video according to the starting time and the end time, and generating local spatial prior information guided by micro-expression; Step 5, constructing a chassis foreign body detection model, detecting the vehicle chassis image based on the local spatial prior information guided by micro-expressions and the micro-expression peak moment, obtaining the final prediction result, and issuing an early warning, thereby completing the vehicle chassis foreign body inspection and early warning based on micro-expressions; The specific method of generating the face video in step 2 includes: Play the scanning video of the chassis image of the vehicle to be inspected obtained in step 1, wherein the duration of the video is set to a preset duration, wherein the scanning video displays the complete chassis image of the vehicle to be inspected in a preset direction, and displays a prompt mark in a vertical direction of the preset direction, and the prompt mark moves slowly along the vertical direction over time; the owner of the vehicle to be inspected watches the entire scanning video, and at the same time, the owner's face is captured by a camera to obtain a face video of a preset duration; The chassis foreign body detection model described in step 5 includes: a spatial priori generation module, a spatial feature injection module, a multi-scale feature extraction module and a detection head, wherein: The spatial prior generation module is used to extract spatial features from the local spatial prior information obtained in step 4 and output spatial prior features. The spatial prior generation module is composed of a deep residual network ResNet. The spatial feature injection module is used to inject spatial prior features into the ViT model, that is, the image input features output by the embedding layer in the ViT model are used as queries, and the spatial prior features are used as key values ​​to perform deformable cross-attention calculations and output new image features; The multi-scale feature extraction module is used to extract multi-scale features from the ViT model based on spatial features, that is, the spatial prior features are used as queries, the encoded output features output by the encoding layer in the ViT model are used as key values, cross-attention calculations are performed, and multi-scale features are output; The detection head is used to detect the 2D bounding box and category of foreign objects from multi-scale features and generate prediction results. The detection head uses the instance segmentation network Mask R-CNN.

2. The vehicle chassis foreign body detection and early warning method based on micro-expressions according to claim 1 is characterized in that: The micro-expression detection module described in step 3 specifically includes: The TIM algorithm is used to perform time domain image interpolation on the input image, and then the LBP-TOP operator is used to extract micro-expression features to complete the micro-expression detection of the input image.

3. The vehicle chassis foreign body detection and early warning method based on micro-expressions according to claim 2 is characterized in that: The step 3 of obtaining the starting time, peak time and end time of the micro-expression in the face video specifically includes: Use the micro-expression detection module to detect and mark the starting time of all N groups of micro-expressions Peak Moments and the end moment The starting time That is, the time when micro-expressions appear, the peak moment The time when the micro-expression is the largest, the end time That is the time when the micro-expression disappears.

4. The vehicle chassis foreign body detection and early warning method based on micro-expressions according to claim 3 is characterized in that: The local spatial prior information for generating micro-expression guidance described in step 4 specifically includes: Step 4-1, collecting the starting time and ending time of all micro-expressions detected in step 3, and taking the minimum value T1 and the maximum value T2; Step 4-2, processing the vehicle chassis image scanning video, extracting two frames at time T1 and T2, and determining the area D surrounded by the prompt mark according to the position of the prompt mark in the two frames; Step 4-3, intercepting the vehicle chassis image according to area D to generate local spatial prior information I guided by micro-expressions.

5. The vehicle chassis foreign body detection and early warning method based on micro-expressions according to claim 4 is characterized in that: The detection of the vehicle chassis image described in step 5 specifically includes: Step 5-1: Input the vehicle chassis image into the embedding layer of the ViT model to generate the image input feature F vit ; Step 5-2: Input the local spatial prior information I guided by the micro-expression into the spatial prior generation module to extract the local spatial features and obtain the spatial prior features F emo ; Step 5-3, input the image into feature F vit and spatial prior features F emo Input spatial feature injection module, let the image input feature F vit As a query, the spatial prior feature F emo As the key value, collect the peak moments of N micro-expressions Step 5-4, process the vehicle chassis image scanning video, extract all the frames corresponding to the above peak moments, obtain all the prompt marks therein, evenly select a preset number k of reference points on each mark, project the reference points onto the vehicle chassis image, and generate a final series of reference points S j , j = 1, 2, 3, ..., k*N; Step 5-5, based on the above reference points, queries and key values, perform deformable cross attention calculations, inject spatial prior features into the ViT model, and obtain new image features The specific method is as follows: Among them, F vit represents the image input features, F emo represents the spatial prior feature, S represents the reference point, γ represents the weight parameter, DeformAttn represents the variability attention calculation, Represents the new image features after injecting the spatial prior features; Step 5-6: New image features Input the encoding layer of the ViT model for further feature extraction to obtain the encoded output feature F′ vit , let the encoding output feature F′ vit As the key value, the spatial prior feature F emo As a query, input the multi-scale feature extraction module, perform cross-attention calculation, and extract the multi-scale feature F′ emo , the specific method is as follows: Among them, F emo Represents the spatial prior features, F′ vit represents the encoded output feature, Attention represents the cross attention calculation, represents enhanced spatial prior features, FFN represents feedforward network, and F′ emo Represents the multi-scale features finally extracted; Step 5-7: finally extract the multi-scale feature F′ emo Input the detection head to get the final prediction result.

6. The vehicle chassis foreign body detection and early warning method based on micro-expressions according to claim 5 is characterized in that: The preset duration described in step 2 is 10 seconds.

7. The vehicle chassis foreign body detection and early warning method based on micro-expressions according to claim 6 is characterized in that: The preset number k in step 5-4 is 5.

8. A vehicle chassis foreign body detection and warning system based on micro-expressions, characterized in that: including storage media and processors; The storage medium is used to store instructions; The processor is configured to operate according to the instructions to execute the steps of the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Multi-domain fusion micro-expression detection method based on motion unit

    CN111582212A

  • Micro-expression recognition method, device and equipment based on artificial intelligence and storage medium

    CN116229547A

  • Multi-modal feature consistency mental health abnormity identification method and system

    CN116230234A

  • Virtual reality-based new energy automobile chassis simulation training device

    CN116312105A

  • Video face-to-face signing processing method and system based on micro expression

    CN117275070A