A mobile target monitoring method based on YOLO network
Through the moving target monitoring method based on the YOLO network, the coordinate system constraints and attention mechanism are used to solve the problem of target blur and scale change in the video stream, improve the accuracy and adaptability of target detection, and realize the target detection in the video stream. Accurate monitoring.
Patent Information
- Application Number
- CN202410704672.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-03
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-06-03
AI Technical Summary
In the video stream, changes in external environment illumination and rapid target movement cause blurred targets, making it difficult to distinguish features during tracking. Low frame rates cause large differences in target posture and shape changes, leading to tracking drift and scale deviation, affecting target tracking accuracy.
The moving target monitoring method based on the YOLO network is adopted, the normalized target position is constrained by the coordinate system, the attention mechanism and the focus loss function are introduced, and the loss function is optimized to improve the adaptability and accuracy of the model.
It improves the accuracy of target detection and the ability to adapt to complex scenes, reduces the risk of tracking drift, enhances the ability to identify moving targets, and achieves precise integration of images and the environment.
Smart Images

Figure CN118279573B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of target detection, and in particular to a moving target monitoring method based on a YOLO network. Background Art
[0002] In recent years, with the rapid development of technologies such as big data, artificial intelligence, and natural language processing, the development of intelligent surveillance video has been getting better and better. However, the monitoring methods of video streams in outdoor moving targets or crowded situations still have the following problems:
[0003] Changes in lighting in the external environment will cause unpredictable consequences for the brightness of the target's appearance. The rapid movement of the target makes it blurred. When tracking, the movement of the monitored target is difficult to distinguish, especially the characteristics of the banner. In addition, the low frame rate problem causes large differences in the target's posture and shape changes between different image frames, making it difficult to meet the running time requirements.
[0004] The appearance of the moving target keeps changing during the tracking process. When the preset template at the initial moment is used for tracking, the target will drift in the current frame, thereby increasing the risk of losing the tracked target.
[0005] During the target tracking and positioning process, the size of the predicted target frame changes with the angle and the distance of the target from the camera. The fixed target frame cannot actually reflect the true size of the moving target, which will lead to double deviations in the scale and spatial positioning of the target, directly affecting the tracking accuracy of the target tracking algorithm. Summary of the invention
[0006] The present invention aims to solve at least one of the technical problems existing in the related art. To this end, the present invention provides a moving target monitoring method based on a YOLO network.
[0007] The present invention provides a mobile target monitoring method based on a YOLO network, comprising:
[0008] S1: Collect the image to be identified;
[0009] S2: normalizing the position of the target to be identified in the image to be identified by means of a coordinate system constraint;
[0010] S3: Establishing a positioning frame based on the coordinate system constraint to track the target to be identified;
[0011] S4: Based on the YOLO network with fusion attention mechanism, a monitoring network is established with the focus loss function as the target confidence, and the target to be identified is monitored through the monitoring network.
[0012] According to a mobile target monitoring method based on a YOLO network provided by the present invention, step S2 specifically includes:
[0013] S21: establishing a first coordinate system, calibrating the origin position of the first coordinate system, the center position of the target to be identified, and the center position of the image to be identified, wherein the image to be identified at least includes the target to be identified;
[0014] S22: constraining the origin position of the first coordinate system to coincide with the center position of the image to be recognized, to obtain a second coordinate system;
[0015] S23: recalibrating the center position of the target to be identified based on the second coordinate system, and calculating the position difference between the recalibrated center position of the target to be identified and the origin position of the second coordinate system to complete the position normalization of the target to be identified.
[0016] According to a moving target monitoring method based on a YOLO network provided by the present invention, the positioning frame in step S3 includes an anchor frame and a bounding box.
[0017] According to a mobile target monitoring method based on a YOLO network provided by the present invention, the bounding box is represented by a quaternion array, and the expression of the bounding box is:
[0018] ;
[0019] in, is the horizontal coordinate of the center point of the bounding box, is the ordinate of the center point of the bounding box, is the width of the bounding box, is the bounding box height.
[0020] According to a mobile target monitoring method based on a YOLO network provided by the present invention, the expression of the target confidence of the monitoring network in step S4 is:
[0021] ;
[0022] ;
[0023] in, is the focal loss function, is the sample classification difficulty parameter, is the regulating factor, is the focusing parameter, is the model prediction probability, is the true label corresponding to the target to be identified.
[0024] According to a mobile target monitoring method based on a YOLO network provided by the present invention, the loss function of the monitoring network in step S4 includes:
[0025] Classification loss, localization loss and confidence loss;
[0026] The classification loss is used to converge the error between the anchor frame and the calibration classification of the target to be identified;
[0027] The positioning loss is used to converge the error between the prediction frame and the positioning frame;
[0028] The confidence loss is used to calculate the confidence of the monitoring network.
[0029] According to a mobile target monitoring method based on a YOLO network provided by the present invention, the confidence loss is used to adjust the number of positive samples and negative samples of the monitoring network, the positive sample indicates that the prediction box of the monitoring network includes the target to be identified, and the negative sample indicates that the prediction box of the monitoring network does not include the target to be identified.
[0030] According to a mobile target monitoring method based on a YOLO network provided by the present invention, in step S4, the attention mechanism is fused by the output feature layer of the YOLO network.
[0031] The present invention provides a mobile target monitoring method based on a YOLO network. Firstly, an attention mechanism is introduced to insert an attention mechanism module into a feature layer output by a YOLOv5 backbone network, so that the model can pay attention to important areas more effectively, improve the adaptability of the model to complex scenes where mobile targets are located, and improve the effect of pedestrian banner detection; secondly, the loss function is optimized to solve the common problem of imbalance between negative samples and positive samples, and the focus loss function is used to increase the attention of difficult-to-identify samples during model training, thereby improving the classification accuracy of the model; in addition, the coordinate system constraint is used to perform precise positioning and identification. Through the coordinate system constraint, targets at the center and edge positions of the image can be taken into consideration, which can further accurately identify the algorithm detection capability, greatly improve the detection accuracy, and achieve a precise combination of the image and the actual environment.
[0032] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0034] Figure 1 It is a flow chart of a mobile target monitoring method based on a YOLO network provided by an embodiment of the present invention;
[0035] Figure 2 is a flow chart of a method for normalizing the position of an object to be identified in an image to be identified by using coordinate system constraints provided by an embodiment of the present invention;
[0036] Figure 3 is a schematic diagram of the coordinate position of the target position to be identified before normalization provided by an embodiment of the present invention;
[0037] Figure 4 It is a schematic diagram of the normalized coordinate position of the target position to be identified provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0038] In order to make the purpose, technical scheme and advantages of the present invention clearer, the technical scheme of the present invention will be clearly and completely described below in conjunction with the drawings in the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present invention. The following embodiments are used to illustrate the present invention, but cannot be used to limit the scope of the present invention.
[0039] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the embodiment of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0040] In order to better understand the present invention, the research background of the present invention and this embodiment is described below.
[0041] Human behavior detection has a huge application development prospect. In the application fields of intelligent image detection, human-computer interaction, automatic identification and warning, public safety, etc., behavior detection has become a research hotspot in related disciplines and has generated potential social development value. At a time when computer technology and intelligent control are developing rapidly, behavior monitoring has become the mainstay of the computer field.
[0042] Researchers have discussed the scientific research methods, modeling methods and research technologies related to human behavior monitoring, and effective progress has been made. In the field of public safety, detecting pedestrians pulling banners can be used to monitor and manage large-scale events or gatherings. For example, by automatically identifying this behavior, security personnel can quickly understand possible gatherings or potential safety risks, so as to respond in time to maintain public safety. Pulling banners is often accompanied by specific scenarios. By automatically detecting and analyzing these behaviors, data support can be provided for social science decision-making.
[0043] Therefore, the embodiment of the present invention illustrates the present invention by studying the specific application of detecting pedestrians pulling banners in an intelligent video surveillance system. The detection of this behavior is of great significance.
[0044] Object detection technology faces many specific challenges in the context of detecting pedestrians pulling banners. These challenges mainly stem from the special properties of banners and the interaction between pedestrians and banners. Researchers have proposed various methods to solve the problem of pedestrian pulling banner action target detection and recognition accuracy in video streams. The usual practice is to improve the feature extraction stage. The interaction between shallow and deep networks can be used in the Backbone layer to help shallow and deep networks obtain fine-grained features and semantic information respectively, thereby improving feature extraction capabilities. The Neck layer can also be used to fuse feature maps of different levels to improve representation capabilities. However, due to the complex background information in real scenes, the pixels of pedestrians pulling banners are relatively insufficient, and because the target of pedestrians pulling banners is often affected by external factors, such as the gathering of people, the banner may be blocked to a certain extent, the banner may be blocked by people holding banners, and the weather and fog shadows may cover the pedestrians, which may lead to missed detection and false detection. The above methods have failed to effectively utilize the rich small-scale pedestrian features in the shallow feature map.
[0045] Therefore, the present invention proposes an improved algorithm of YoLov5 combined with the attention mechanism, which uses the self-attention mechanism to suppress the interference of background information on the pedestrians pulling banner features. Coordinate system constraints are mainly used to solve the problem of target detection. Coordinate system constraints usually involve applying a coordinate transformation on the original image to change the position and scale of the target in the image. This is to make the target closer to the expected input of the network, thereby improving the performance of the target detection model. This method has been applied in both traditional computer vision algorithms and some deep learning models.
[0046] Combine the following Figures 1 to 4 Embodiments of the present invention are described.
[0047] like Figure 1 As shown, the present invention provides a mobile target monitoring method based on a YOLO network, comprising:
[0048] S1: Collect the image to be identified;
[0049] In this stage, we first collect images or video streams that need to be identified. After these images are collected, they need to be preprocessed, such as normalization or smoothing and denoising, to ensure that in the subsequent investigation of how banners block pedestrians, and how to effectively detect pedestrians pulling banners in weather changes (such as clouds, fog, shadows, etc.).
[0050] S2: normalizing the position of the target to be identified in the image to be identified by means of a coordinate system constraint;
[0051] In target detection, especially in the detection of pedestrians pulling banners in complex scenes in this embodiment, the role of coordinate system constraints is particularly important. In these complex scenes, it is necessary to accurately locate and identify the user's behavior, which requires precise constraints and utilization of the coordinate system.
[0052] like Figure 2 As shown, step S2 specifically includes:
[0053] S21: establishing a first coordinate system, calibrating the origin position of the first coordinate system, the center position of the target to be identified, and the center position of the image to be identified, wherein the image to be identified at least includes the target to be identified;
[0054] S22: constraining the origin position of the first coordinate system to coincide with the center position of the image to be recognized, to obtain a second coordinate system;
[0055] S23: recalibrating the center position of the target to be identified based on the second coordinate system, and calculating the position difference between the recalibrated center position of the target to be identified and the origin position of the second coordinate system to complete the position normalization of the target to be identified.
[0056] The specific process is as follows: first, in the pre-processing stage of pedestrian banner pulling, the image center is transferred to the coordinate origin through the coordinate system constraint. Using the coordinate system constraint, we can move the center of each banner pulling image to the coordinate origin.
[0057] That is, the original position at the upper left corner (0,0) of the image is moved to the center of the image after the centering process; similarly, the original position at the lower right corner of the image is also moved closer to the center of the image after the process. In this way, no matter where the objects in the original image are, they are now relative to the new center position. This is actually centering the banner of each image, which normalizes the banner position on the image and converts the absolute pixel position into a position relative to the center.
[0058] like Figure 3 to Figure 4 As shown in the figure, assuming that the larger box in the figure represents the original image containing pedestrians holding banners, and the smaller box represents the banner. The original coordinate system, that is, the origin O1 of the first coordinate system, is at the upper left corner of the image (u0, v0). After centering, the original coordinate system, that is, the origin position O2 of the second coordinate system is (u2, v2). The original position of the pixel value of the banner is O (u1, v1), and the original position difference relative to the origin of the image is (u0-u1, v0-v1). After centering, the position of the banner in the original image has been normalized and transformed to a position relative to the center of the image. The relative position difference relative to the origin of the image is (u2-u1, v2-v1). In this way, no matter how the size and position of the banner change, we will normalize it to the same center of the coordinate system.
[0059] Therefore, even if the position of the target in the original image changes, this change is effectively reduced in the new coordinate system, because we are now focusing on the position of the banner relative to the center of the image, rather than its absolute position in the entire image, effectively reducing the impact of absolute position deviation. In object detection based on the center of the image, coordinate system constraints can reduce position deviations in the image recognition process. Using coordinate system constraints can reduce the problem of absolute position deviations caused by framing methods, angles, or scales, allowing the model to focus on identifying the person pulling the banner itself, rather than its specific position in the image, effectively improving the generalization ability of the model, and making object detection more accurate. This can help object detection algorithms such as YOLOv5 recognize images more accurately, which is particularly important in challenging tasks such as detecting pedestrians pulling banners.
[0060] S3: Establishing a positioning frame based on the coordinate system constraint to track the target to be identified;
[0061] The positioning box in step S3 includes an anchor box and a bounding box.
[0062] Secondly, by using a coordinate system to represent the bounding box of the target, when detecting the banner, the positioning of the anchor box can more accurately locate the pedestrian and the banner, and predict the position of the pedestrian holding the banner based on the predefined anchor box or bounding box. The predefined box here is usually set according to the general shape and size of the pedestrian or banner.
[0063] The system will then generate several rectangular boxes of different sizes and shapes for each position in the image. Once the center coordinates of the anchor box are set, it can be moved throughout the image, and the position of the pedestrian holding the banner can be found as accurately as possible, whether it is in the center or at the edge of the image. Good coordinate system constraints can help us determine the approximate position and size of the anchor box, making the initial prediction more accurate.
[0064] We then use coordinate system constraints to set the exact scale and position of the anchor box, and then make preliminary predictions based on this. This plays a key role in improving the accuracy of banner detection of multiple shapes and scales. We use the coordinate system to represent the bounding box and show the specific position of pedestrians and banners.
[0065] The bounding box is represented by a quaternion array, and the expression of the bounding box is:
[0066] ;
[0067] in, is the horizontal coordinate of the center point of the bounding box, is the ordinate of the center point of the bounding box, is the width of the bounding box, is the bounding box height.
[0068] The bounding box is usually represented by a quaternion array. The values of the quaternion array of the bounding box are normalized and are the ratio of the width and height of the entire image. The interval is generally [0,1]. This value represents the ratio of the corresponding relative position or size to the width and height of the entire image, which can make full use of spatial information and improve the accuracy of detection. Through the combination of these four numbers, the area and position occupied by any pedestrian holding a banner in the image can be very accurately expressed. Through the coordinate system constraints, not only the targets at the center and edge of the image are taken into consideration, but also no matter where the target is in the image, it can be expressed and understood in a unified and quantitative way.
[0069] In this stage, the setting of anchor boxes plays a key role in capturing possible targets, which corresponds to the prior knowledge of the size and shape of the targets that may exist in the image. Using the coordinate system constraints, a predetermined position and size are set for each anchor box, and then a preliminary prediction is made based on this, which provides a good starting point, helps the model converge faster, and improves the accuracy of positioning.
[0070] Finally, if the task scenario is more complex and requires detailed spatial analysis of pedestrian groups or banners, such as crowd density, banner orientation, etc., we need to constrain and utilize the coordinate system more accurately. Overall, the constraints of the coordinate system play a key role in the accuracy of pedestrian banner detection. It enables us to locate and identify targets more accurately, thereby improving the accuracy of detection.
[0071] S4: Based on the YOLO network with fusion attention mechanism, a monitoring network is established with the focus loss function as the target confidence, and the target to be identified is monitored through the monitoring network.
[0072] Wherein, in step S4, the attention mechanism is fused by the output feature layer of the YOLO network.
[0073] In this stage, YOLOv5 is selected as the algorithm for target detection. It usually performs well in tasks such as pedestrian banner detection in the first stage. However, some complex scenes, such as crowds, banners blocking pedestrians, and weather changes, may affect the detection results.
[0074] In this case, the present invention proposes to insert an attention mechanism module in the feature layer of the backbone network output of YOLOv5 to improve this problem. In a model without an attention mechanism, all elements of the sequence are usually treated equally, which may lead to information loss, especially when processing long sequences. The attention mechanism assigns a weight to each element in the sequence, enabling the model to pay attention to more important information.
[0075] The introduction of the attention mechanism will enable the model to focus on important areas more effectively. Through the attention mechanism, we can let the model learn how to assign attention weights, which is expected to improve the accuracy of detection. "Focusing" on a part of the input sequence is achieved by calculating probability distribution, weight calculation, weighted summation, etc. For example, the weight of each element is usually calculated through a trainable weight function, and this weight reflects the importance of the current element to the task. In general, the weight function depends on the current element of the input sequence, contextual information (such as hidden state) or a specific query vector; according to the calculated weights, the elements of the input sequence are weighted and summed to obtain a weighted representation, which contains key information enhanced according to task requirements.
[0076] At the same time, the pyramid network that references the fusion feature is replaced by a bidirectional weighted feature pyramid network. In the traditional feature pyramid network, the interaction between feature maps of different scales is mainly a bottom-up process, which will cause some local detail information to be lost. The bidirectional weighted feature pyramid network of the present invention can consider both bottom-up and top-down information interactions at the same time, and better retain and utilize multi-scale feature information.
[0077] Wherein, the loss function of the monitoring network in step S4 includes:
[0078] Classification loss, localization loss and confidence loss;
[0079] The classification loss is used to converge the error between the anchor frame and the calibration classification of the target to be identified;
[0080] The positioning loss is used to converge the error between the prediction frame and the positioning frame;
[0081] The confidence loss is used to calculate the confidence of the monitoring network.
[0082] There are three loss functions in YOLOv5: classification loss, positioning loss and confidence loss. Classification loss calculates whether the anchor box and the corresponding calibration classification are correct. Positioning loss calculates the error between the predicted box and the calibration box. Confidence loss calculates the confidence of the network. The target confidence loss and category loss use the binary cross entropy function BCEWithLogitsLoss with sigmoid to calculate the confidence of the network.
[0083] In this stage, the deviation between the model's predicted results and the actual results is measured by using the loss function. In each training cycle, the model calculates the predicted results based on the current parameters and uses the loss function to compare the difference between the predicted and actual results.
[0084] In order to optimize the prediction results, the model uses the back propagation algorithm to update the parameters in order to reduce the error and make the prediction results closer to reality. For classification problems, two common loss functions are the cross entropy loss function and the focal loss function. The standard form of the cross entropy loss function is as follows:
[0085] ;
[0086] The cross entropy loss function measures the difference between the probability distribution of the model output and the distribution of the true label. is the total number of samples, Represents a sample, represents the true label, Represents the output of the model prediction. This function can be used for binary and multi-classification tasks.
[0087] Although the cross entropy loss function can improve the prediction accuracy of the correct label through the inter-category competition mechanism, it tends to ignore the differences between incorrect labels, which will lead to excessive divergence of the learned features and may not be applicable to some special scenarios such as pedestrian banner detection. In Focal Loss, it is mainly to solve the problem of serious imbalance in the number of positive and negative samples in target detection, so the present invention uses the focal loss function as the target confidence.
[0088] The expression of the target confidence of the monitoring network in step S4 is:
[0089] ;
[0090] ;
[0091] in, is the focal loss function, is the sample classification difficulty parameter, is the regulating factor, is the focusing parameter, is the model prediction probability, is the true label corresponding to the target to be identified.
[0092] The confidence loss is used to adjust the number of positive samples and negative samples of the monitoring network, wherein the positive sample indicates that the prediction box of the monitoring network includes the target to be identified, and the negative sample indicates that the prediction box of the monitoring network does not include the target to be identified.
[0093] Focal Loss can better focus on samples that are difficult to classify, thereby improving the classification accuracy of the model. For categories with fewer samples, it can significantly improve the classification accuracy. Considering that the tracking and recognition of pedestrians holding banners in special cases is based on a limited amount of sample information, it is expected that Focal Loss will replace BCE Loss in the target confidence part of YOLOv5, which is more suitable for the detection of pedestrian banner targets that are difficult to track in special scenarios.
[0094] That is to say, in step S4, the target confidence part of the monitoring network uses Focal Loss instead of BCELoss. The Focal Loss function is widely used in one-stage target detection, mainly to deal with the problem of imbalance in the number of positive and negative samples. The positive sample is that the predicted prediction box frames the real target, and the negative sample is that the predicted prediction box does not frame the real target but frames the background. Due to the small number of positive samples and the large amount of negative sample data, the positive and negative samples are extremely unbalanced.
[0095] The core of the Focal Loss function is to solve the problem of extremely unbalanced number of positive and negative samples by adjusting the weights of difficult and easy samples. is the regulating factor, ≥0 is an adjustable focus parameter, which uses To reflect the difficulty of sample classification, The smaller it is, the greater the weight. The harder-to-classify samples have higher weights, and easier-to-classify samples have lower weights.
[0096] The present invention provides a mobile target monitoring method based on a YOLO network. In the above-mentioned embodiment, the image and video data are combined with the actual environment through the video pedestrian banner pulling detection, so as to realize the accurate recognition of pedestrian banner pulling behavior through images and videos, and the sequence-to-sequence modeling is realized by introducing an attention mechanism module. The variable length sequence data characteristic of the codec is utilized to link the current input with the output of the previous moment and its own state, and at the same time, complementary attention is simultaneously modeled in the channel, height and width dimensions to enhance the expression ability of the learned features and accurately locate the object of interest, and the average pool and standard deviation pool features are aggregated through the adaptive combination mechanism of the attention module, and the dynamic characteristics specific to the input are introduced to improve the discriminability of the feature descriptor. The adaptive combination mechanism is used to merge the dual-cross-dimensional feature responses in the squeeze transformation, and the information content and distinguishability of the feature descriptor are enhanced. In the excitation transformation, a gating mechanism for adaptively determining the interaction coverage range to capture the local feature interaction is designed, which overcomes the paradox of performance and computational overhead trade-off, improves the anti-interference ability and prediction accuracy of the model, and provides a new idea for realizing the rapid and accurate prevention and control of the adverse effects caused by pedestrian banner pulling through video.
[0097] 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 make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A mobile target monitoring method based on YOLO network, characterized in that: include: S1: Collect the image to be identified; S2: normalizing the position of the target to be identified in the image to be identified by means of a coordinate system constraint; Wherein, step S2 specifically includes: S21: establishing a first coordinate system, calibrating the origin position of the first coordinate system, the center position of the target to be identified, and the center position of the image to be identified, wherein the image to be identified at least includes the target to be identified; S22: constraining the origin position of the first coordinate system to coincide with the center position of the image to be recognized, to obtain a second coordinate system; S23: recalibrating the center position of the target to be identified based on the second coordinate system, and calculating the position difference between the recalibrated center position of the target to be identified and the origin position of the second coordinate system, so as to complete the position normalization of the target to be identified; S3: Establishing a positioning frame based on the coordinate system constraint to track the target to be identified; S4: Based on the YOLO network with fusion attention mechanism, a monitoring network is established with the focus loss function as the target confidence, and the target to be identified is monitored through the monitoring network.
2. A mobile target monitoring method based on a YOLO network according to claim 1, characterized in that: The positioning box in step S3 includes an anchor box and a bounding box.
3. A mobile target monitoring method based on a YOLO network according to claim 2, characterized in that: The bounding box is represented by a quaternion array, and the expression of the bounding box is: (x,y,w,h); Among them, x is the horizontal coordinate of the center point of the bounding box, y is the vertical coordinate of the center point of the bounding box, w is the width of the bounding box, and h is the height of the bounding box.
4. A mobile target monitoring method based on a YOLO network according to claim 1, characterized in that: The expression of the target confidence of the monitoring network in step S4 is: L fl =-a t (1-p t ) γ log(p t ); Among them, L fl is the focal loss function, p t is the sample classification difficulty parameter, (1-p t ) γ is the adjustment factor, γ is the focusing parameter, is the model prediction probability, y is the true label corresponding to the target to be identified, α t is the weight parameter used to adjust the sample.
5. A mobile target monitoring method based on a YOLO network according to claim 2, characterized in that: The loss function of the monitoring network in step S4 includes: Classification loss, localization loss and confidence loss; The classification loss is used to converge the error between the anchor frame and the calibration classification of the target to be identified; The positioning loss is used to converge the error between the prediction frame and the positioning frame; The confidence loss is used to calculate the confidence of the monitoring network.
6. A mobile target monitoring method based on a YOLO network according to claim 5, characterized in that: The confidence loss is used to adjust the number of positive samples and negative samples of the monitoring network, the positive sample indicates that the prediction box of the monitoring network includes the target to be identified, and the negative sample indicates that the prediction box of the monitoring network does not include the target to be identified.
7. A mobile target monitoring method based on a YOLO network according to claim 1, characterized in that: In step S4, the attention mechanism is fused by the output feature layer of the YOLO network.
