DAS traffic parameter real-time estimation method, system, device and medium

Through the end-to-end convolutional network and angle definition, combined with wavelet packet denoising and OTSU binarization, the R-YOLO algorithm is designed, which solves the problem of difficulty in detecting DAS signals in complex scenes in the existing technology, and realizes the detection of traffic targets. Real-time estimation of accurate location, type and velocity improves detection accuracy and efficiency.

CN118675321APending Publication Date: 2024-09-20UNIV OF ELECTRONICS SCI & TECH OF CHINA
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410688830.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

Existing technology is difficult to efficiently detect and identify DAS signals in complex scenarios such as multiple moving targets. It is especially difficult to extract traffic parameter information such as the moving position of traffic targets, vehicle type or body weight, and real-time speed.

Method used

An end-to-end convolutional network is used and angle definition is introduced to construct a traffic parameter extraction network. Through wavelet packet threshold denoising and OTSU binarization preprocessing, the R-YOLO algorithm is designed, and the YOLO and CSL label smoothing algorithm are combined to achieve mobile vibration detection. Real-time detection of sources and accurate estimation of traffic parameters.

Benefits of technology

Improved network performance, it can accurately detect moving vibration sources and estimate traffic parameters in complex scenarios, especially vehicle speed and body weight, while maintaining good performance and real-time performance, improving recognition accuracy and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118675321A
    Figure CN118675321A
Patent Text Reader

Abstract

The invention discloses a DAS traffic parameter real-time estimation method, system and device and a medium, and belongs to the technical field of distributed optical fiber sensing and application thereof. The objective of the invention is to solve the technical problems in the prior art that detection and identification of DAS signals in complex scenes such as a plurality of moving targets are difficult to solve, and traffic parameter information such as moving positions, vehicle types or vehicle body weights and real-time rates of traffic targets are difficult to efficiently extract. According to the method, a traffic parameter extraction network is constructed, a predicted value of an angle value theta is added into a bounding box extracted by the traffic parameter extraction network, and angle loss is added during training; angles are discretized by introducing an angle definition method and a CSL label smoothing algorithm, an R-YOLO mobile vibration source real-time detection algorithm is constructed, the boundary problem of conventional angle definition is solved, network performance is improved, and real-time detection and accurate parameter estimation of the mobile vibration source in traffic monitoring can be achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of distributed optical fiber sensing and its application, and relates to a real-time detection method of a DAS vibration source signal and a traffic parameter estimation method, and in particular to a DAS traffic parameter real-time estimation method, system, device and medium. Background Art

[0002] The distributed fiber optic acoustic / vibration sensing (DAS) system based on the phase-sensitive optical time-domain reflectometry principle (Φ-OTDR) uses communication optical cables for vibration sensing. It has the characteristics of high measurement accuracy, high sensitivity, anti-electromagnetic interference, and low cost. It has been widely used in seismic wave detection, pipeline leakage detection, perimeter security intrusion detection, traffic monitoring and other fields in the power, oil and natural gas industries, forming a new fiber optic Internet of Things for ground monitoring applications.

[0003] In recent years, the research status of intelligent processing of DAS signals and estimation of their traffic parameters can be generally divided into two stages: traditional signal processing and deep learning intelligent signal processing. Traditional signal processing mainly focuses on the signal transform domain, morphological features, and graphics methods to identify DAS traffic signals and extract traffic parameters. With the rapid development of artificial intelligence (AI) technology, a large number of deep learning technologies have been applied to intelligent processing of DAS signals to achieve more efficient detection, recognition, and extraction of traffic parameters. Among them, convolutional neural networks (CNN), probabilistic neural networks (PNN), Fast R-CNN, transfer learning, semi-supervised, and unsupervised methods have improved the effect and convenience of signal recognition.

[0004] The invention patent application with application number 202310307804.5 discloses a multi-dimensional deep feature extraction and recognition method for DAS signals. It first collects distributed optical fiber sensor signals and divides them into time periods to obtain a two-dimensional space-time sample signal matrix. The time signal of each spatial point is converted into a time-frequency spectrum using short-time Fourier transform to obtain a three-dimensional time-frequency-space sample. The obtained time-frequency-space signal is used to construct a sample data set, and the sample data set is classified to obtain a training set, a verification set, and a test set. A basic three-dimensional CNN network model and an optimal attention module that match the DAS time-frequency-space sample input are constructed, and the structure is optimized to form a 3D-ACNN network model. The model is trained, verified, and tested to complete high-precision and rapid recognition of DAS signals. The end-to-end network plus attention mechanism is used to synchronously and automatically extract its deep features from the three dimensions of time, frequency, and space, improving recognition performance while improving computational efficiency.

[0005] In existing network models, the position information of the detection box is usually annotated (x, y, w, h), where (x, y) indicates the position of the detection box and (w, h) indicates the size of the detection box. Of course, since the detection boxes are not all distributed horizontally or vertically, there are also detection boxes that are distributed diagonally; therefore, in some application scenarios, an angle information θ is added to the traditional horizontal detection box annotation (x, y, w, h) to obtain a new annotation method, such as (x, y, w, h, θ). For example, the invention patent with application number 202410119967.5 discloses a construction material target detection method based on rotation frame positioning, including: S1, constructing a construction material target detection algorithm with intersection-over-union ratio LIoU, rotation angle loss function, rotation non-maximum suppression algorithm and increasing the output dimension of the prediction layer, and introducing the angle detection branch into the detection layer; S2, training the network model in step S1 through the construction material target data set; S3, reasoning and detecting the input image to be detected through the trained network model to obtain the category and position information of the construction material target. According to the present invention, in step S1, on the basis of the traditional horizontal detection frame annotation (x, y, w, h), an angle information θ is added to obtain a new annotation method, such as (x, y, w, h, θ), where the value range of θ is [-π / 2, π / 2], (x, y) represents the center coordinates of the target frame, w is the longest side of the target frame, h is the short side of the target frame (i.e., the adjacent side of w), and θ is the angle of the x-axis rotation to the w side. This realizes the automatic detection of construction material targets distributed at any angle, obtains the prediction frame that best fits the target, and reduces the prediction error.

[0006] DAS data is different from the above-mentioned construction material target detection data. In the above-mentioned construction material target detection, since the construction material targets are usually distributed at arbitrary angles in the working surface, it brings certain difficulties to the detection of materials, so the angle information θ of the detection frame is added during the annotation, thereby realizing the detection of construction material targets distributed at arbitrary angles. However, in the field of road traffic parameter measurement, the DAS data is a two-dimensional spatiotemporal data based on time and space, and the detection frames involved in the existing algorithms for DAS data only involve (x, y, w, h). The existing road traffic parameter measurement still focuses on the recognition and classification of single fixed-point signals, and it is difficult to solve the detection and recognition of DAS signals in complex scenarios such as traffic with multiple moving targets and inclined trajectory targets, and it is also difficult to efficiently extract traffic parameter information such as the moving position, vehicle type or vehicle weight, and real-time speed of traffic targets. Summary of the invention

[0007] The purpose of the present invention is to solve the technical problems in the prior art that it is difficult to detect and identify DAS signals in complex scenarios such as multiple moving targets, and it is difficult to efficiently extract traffic parameter information such as the moving position, vehicle type or vehicle weight, and real-time speed of traffic targets. A DAS traffic parameter real-time estimation method, system, device and medium are provided. An end-to-end convolutional network is used and angle definition is introduced to extract all feature information at one time to simultaneously detect traffic parameters such as the position, type, and speed of the vibration target. This is a reliable method for DAS to detect traffic vibration sources in real time and accurately.

[0008] In order to achieve the above-mentioned purpose, the present invention specifically adopts the following technical solutions:

[0009] A DAS traffic parameter real-time estimation method comprises the following steps:

[0010] Step S1, obtaining a signal sample;

[0011] Use the DAS system to collect the spatiotemporal signals along the road in the traffic environment and obtain two-dimensional spatiotemporal signal samples;

[0012] Step S2, constructing a traffic parameter extraction network;

[0013] Construct a traffic parameter extraction network. The backbone network of the traffic parameter extraction network includes: input layer-convolution layer Conv1-convolution layer Conv2-C3 module-convolution layer Conv3-C3 module-convolution layer Conv4-C3 module-convolution layer Conv5-C3 module-SPPF feature extraction module;

[0014] Step S3, training a traffic parameter extraction network;

[0015] Using the two-dimensional spatiotemporal signal samples obtained in step S1 to train the traffic parameter extraction network constructed in step S2;

[0016] During training, the two-dimensional spatiotemporal signal samples are divided into grid cells, and B bounding boxes are predicted for each grid cell. Each bounding box includes 6 predicted values: x, y, w, h, confidence, and angle θ. The loss function of the training is:

[0017] Loss = L Box +L Confidence +L Class +L Angle

[0018] L Box =L CIoU =1-CIoU

[0019]

[0020] L Confidence=BCE(P0,P IoU )

[0021] L Class =BCE(c gt , c p )

[0022] L Angle =BCE(θ gt ,θ p )

[0023] Where (x, y) represents the offset of the coordinates of the center of the bounding box relative to the upper left corner of the current grid unit, (w, h) represents the width and height of the bounding box, and θ represents the angle between the long side of the bounding box and the x-axis; L Box represents the bounding box loss, L Confidence represents the confidence loss, L Class represents the category loss, L Angle represents the angle loss; CIoU represents the complete intersection loss between the predicted box and the true bounding box, IoU represents the intersection of the predicted box and the true bounding box, b represents the center coordinate of the predicted box, and b gt represents the coordinates of the center point of the true target bounding box, ρ represents the Euclidean distance between the center point of the predicted box and the center point of the true target bounding box, c represents the minimum diagonal length of the minimum rectangle that can just contain the predicted box and the ground truth box, a represents the weight function, and v represents the correction factor; p0 represents the confidence of the predicted box, p IoU represents the CIoU of the predicted box; c gt represents the true category, c p represents the predicted category; θ gt Indicates the true angle value, θ p Represents the predicted angle value; BCE represents the BCE logarithmic loss.

[0024] Step S4, real-time estimation of traffic parameters;

[0025] The spatiotemporal signal to be estimated is obtained and input into the traffic parameter extraction network trained in step S3, and the traffic parameter extraction network outputs the traffic parameters of the signal to be estimated.

[0026] Furthermore, in step S1, the two-dimensional space-time signal samples are subjected to denoising preprocessing, specifically in the following manner:

[0027] Step S1-1, performing wavelet packet decomposition on the time signal of each spatial point in the two-dimensional space-time signal sample to obtain wavelet coefficients, and performing threshold denoising and reconstruction on the group of wavelet coefficients to obtain a denoised space-time graph;

[0028] Step S1-2, performing OTSU binarization processing on the denoised space-time image to obtain a denoised binary grayscale image of the target trajectory.

[0029] Furthermore, in step S1-1, when threshold denoising and reconstruction are performed on the group of wavelet coefficients, specifically:

[0030] Step S1-1-1, for a two-dimensional space-time signal sample X M,N , extract each column vector according to the spatial point, and obtain the one-dimensional time response signal X :,n (n=1,2,3,...,N);

[0031] Step S1-1-2, using the "db6" wavelet basis to calculate the one-dimensional time response signal X :,n (n=1, 2, 3, ..., N) to perform q-layer wavelet packet decomposition. The signal is first decomposed into a primary low-frequency part (S 1.0 ) and the first-level high-frequency part (S 1.1 ), and then decomposed into the secondary low-frequency part (S 2.0 ) / (S 2.2 ) and the secondary high frequency part (S 2.1 ) / (S 2.3 ), and so on, the final signal is decomposed into eight sub-signals in different frequency ranges;

[0032] Step S1-1-3, filtering out noise sub-signals by setting a threshold, and reconstructing the filtered signal.

[0033] Furthermore, in step S1-1-3, the selection rule of the threshold λ of the signal x(t) is:

[0034]

[0035] Among them, r(t) represents the set risk vector component, n represents the number of decomposed wavelet coefficients; t represents the index value, t = 1, 2, ..., i, ..., n; y(t) represents |x(t)| 2 Ascending sequence of .

[0036] Furthermore, in step S1-2, the denoised space-time map is subjected to OTSU binarization processing, and the space-time map is segmented into regions with different characteristics according to the grayscale differences of the pixels in the space-time map. The specific method is as follows:

[0037] Step S1-2-1, set the segmentation threshold thr, and divide the denoised spatiotemporal image into two parts according to the segmentation threshold thr, that is, divide the pixels with grayscale values ​​less than or equal to the segmentation threshold thr into the target area A, and divide the pixels with grayscale values ​​greater than the segmentation threshold thr into the background area B; the number of pixels in the target area A and the background area B are N respectively A 、N B , the ratio of the number of pixels in the target area A to the total number of pixels is PA , the ratio of the number of pixels in the background area B to the total number of pixels is P B ;

[0038] Step S1-2-2, according to the inter-class variance function, update the gray value thr in sequence, so that the gray value thr corresponding to the maximum ICV is the maximum binary gray value thr required by the maximum inter-class variance method. otsu ; Among them, the inter-class variance ICV is expressed as:

[0039] ICV=P A ·(M A -thr) 2 +P g ·(M B -thr) 2 ;

[0040] The gray value in the space-time graph is greater than thr otsu The part is 1 in the binary image, which is less than thr otsu The part is 0 in the binary image;

[0041] Step S1-2-3, using the OTSU method to obtain a binary segmented spatiotemporal response map.

[0042] Furthermore, in the loss function of the traffic parameter extraction network,

[0043]

[0044] Among them, w gt represents the true bounding box width, h gt represents the height of the true bounding box, w represents the width of the predicted box, h represents the height of the predicted box; v represents the correction factor, and IoU represents the intersection over union ratio of the true box and the predicted box.

[0045] Furthermore, the BCE logarithmic loss is expressed as:

[0046]

[0047] in, represents the true label of the sample, represents the sample prediction probability, Indicates samples, represents the number of samples, Indicates The true labels of samples, Indicates The predicted probability of samples; Represents the activation function, which is used to compress the predicted probability to a value between 0 and 1.

[0048] A DAS traffic parameter real-time estimation system, comprising:

[0049] A signal sample acquisition module is used to collect the spatiotemporal signals along the road in the traffic environment using the DAS system to obtain two-dimensional spatiotemporal signal samples;

[0050] Traffic parameter extraction network construction module, used to construct the traffic parameter extraction network. The backbone network of the traffic parameter extraction network includes: input layer-convolution layer Conv1-convolution layer Conv2-C3 module-convolution layer Conv3-C3 module-convolution layer Conv4-C3 module-convolution layer Conv5-C3 module-SPPF feature extraction module;

[0051] A traffic parameter extraction network training module is used to train the traffic parameter extraction network constructed by the traffic parameter extraction network construction module using the two-dimensional spatiotemporal signal samples obtained in the signal sample acquisition module;

[0052] During training, the two-dimensional spatiotemporal signal samples are divided into grid cells, and B bounding boxes are predicted for each grid cell. Each bounding box includes 6 predicted values: x, y, w, h, confidence, and angle θ. The loss function of the training is:

[0053] Loss = L Box +L Confidence +L Class +L Angle

[0054] L Box =L CIoU =1-CIoU

[0055]

[0056] L Confidence =BCE(p0, p IoU )

[0057] L Class =BCE(c gt , c p )

[0058] L Angle =BCE(θ gt ,θ p )

[0059] Where (x, y) represents the offset of the coordinates of the center of the bounding box relative to the upper left corner of the current grid unit, (w, h) represents the width and height of the bounding box, and θ represents the angle between the long side of the bounding box and the x-axis; L Box represents the bounding box loss, L Confidence represents the confidence loss, L Class represents the category loss, LAngle represents the angle loss; CIoU represents the complete intersection loss between the predicted box and the true bounding box, IoU represents the intersection of the predicted box and the true bounding box, b represents the center coordinate of the predicted box, and b gt represents the coordinates of the center point of the true target bounding box, ρ represents the Euclidean distance between the center point of the predicted box and the center point of the true target bounding box, c represents the minimum diagonal length of the minimum rectangle that can just contain the predicted box and the ground truth box, a represents the weight function, and v represents the correction factor; p0 represents the confidence of the predicted box, p IoU represents the CIoU of the predicted box; c gt represents the true category, c p represents the predicted category; θ gt Indicates the true angle value, θ p Represents the predicted angle value; BCE represents the BCE logarithmic loss.

[0060] The traffic parameter real-time estimation module is used to obtain the spatiotemporal signal to be estimated and input it into the traffic parameter extraction network trained by the traffic parameter extraction network training module. The traffic parameter extraction network outputs the traffic parameters of the signal to be estimated.

[0061] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the above method.

[0062] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor is caused to execute the steps of the above method.

[0063] The beneficial effects of the present invention are as follows:

[0064] 1. In the present invention, a wavelet packet threshold denoising algorithm is designed to effectively reduce the environmental noise in the DAS signal; the OTSU binarization preprocessing is introduced to realize the secondary denoising of the DAS vibration signal, effectively highlighting the target signal, and laying a good foundation for the subsequent traffic parameter extraction and recognition effect; a real-time detection algorithm based on YOLO is designed for the DAS traffic detection scene, and the angle is discretized by introducing the angle definition method and the CSL label smoothing algorithm, and the R-YOLO mobile vibration source real-time detection algorithm is constructed, which solves the boundary problem of conventional angle definition, improves the network performance, and can realize the real-time detection of mobile vibration sources. By comparing the YOLO algorithm, the results show that R-YOLO estimates the rate more accurately and can realize the estimation of more traffic parameters while maintaining good performance. Thereby effectively solving the technical problems in the prior art that it is difficult to detect and identify DAS signals in complex scenarios such as multiple mobile targets, and it is difficult to efficiently extract the mobile position, vehicle model or vehicle weight, real-time rate and other traffic parameter information of traffic targets.

[0065] 2. In the present invention, some lightweight structures and multi-scale feature extraction structures are added to the network, such as the SPPF module in the backbone network and the FPN+PAN feature fusion. These structures can reduce network redundancy, extract feature information of different scales, and effectively respond to target signals of different scales, so that traffic parameters of targets of different scales can be estimated more accurately. In addition, the Mosaic data enhancement and letterbox adaptive image scaling of the input layer also improve the generalization ability and robustness of the model.

[0066] 3. In the present invention, in two different traffic scene monitoring scenarios of highway and railway, the proposed R-YOLO has a better average recognition accuracy (mAP.5) for different traffic trajectories than the general YOLO model, increasing from 86.4% to 96.7%. In addition, the computational complexity has not increased significantly, and the single-frame detection time on the NVIDIA GeForce GTX 1080Ti GPU is only 13ms, which has good performance and meets the needs of real-time detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0067] Figure 1 It is a schematic diagram of the process of the present invention;

[0068] Figure 2 It is a typical setting of the DAS traffic monitoring system based on phase-sensitive optical time domain reflectometer (Ф-OTDR) of the present invention;

[0069] Figure 3 The flowchart of the algorithm for real-time detection and recognition of traffic trajectory signals and extraction of traffic parameters based on R-YOLO configuration proposed by the present invention;

[0070] Figure 4 The environmental noise collected on-site in the present invention and the typical signals of two types of traffic events and their signal matrices after denoising preprocessing: (a) background noise; (b) railway; (c) highway;

[0071] Figure 5 The angle definition method and its boundary problem introduced by the present invention: (a) angle definition; (b) examples of boundary problems;

[0072] Figure 6 The R-YOLO network structure diagram designed for the present invention;

[0073] Figure 7 The confusion matrices of the two models in the test phase of the present invention, where (a) is YOLO and (b) is R-YOLO;

[0074] Figure 8The bar charts show the accuracy index (mAP.5, recall rate, precision rate) and performance index (single-frame detection time, model parameter amount and floating-point calculation amount) of the two models in the test phase of the present invention: (a) accuracy index (mAP.5, recall rate, precision rate); (b) performance index (single-frame detection time, model parameter amount and floating-point calculation amount);

[0075] Fig. 9 The recognition results of the YOLO model and the R-YOLO model for railway and highway traffic scenarios compared in the test phase of the present invention: (a) YOLO railway track detection result; (b) R-YOLO railway track detection result; (c) YOLO highway vehicle track detection result; (d) R-YOLO highway vehicle track detection result;

[0076] Fig.10 Comparison of the rate results of extracting vibration source trajectories by two models for different data sets in the traffic parameter extraction stage of the present invention: (a) railway; (b) highway;

[0077] Fig.11 Other traffic parameters extracted by the present invention during the traffic parameter extraction stage: (a) track width comparison, which is related to vehicle weight; (b) real-time rate change DETAILED DESCRIPTION

[0078] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments.

[0079] Therefore, based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making any creative work shall fall within the scope of protection of the present invention.

[0080] Example 1

[0081] This embodiment provides a DAS traffic parameter real-time estimation method, which takes the real-time traffic detection and parameter estimation based on communication optical cable as an example. Figure 2 First, the DAS system needs to be connected to the optical cable along the traffic monitoring line, and the distributed optical fiber sensing traffic trajectory signal is obtained by collecting the vibration time-space signal on the road or railway. The real-time estimation method of traffic parameters, the whole process is as follows Figure 3 As shown, the following steps are included:

[0082] Step S1, obtaining a signal sample;

[0083] The DAS system is used to collect spatiotemporal signals along the road in a traffic environment to obtain two-dimensional spatiotemporal signal samples.

[0084] The distributed fiber acoustic / vibration sensing system (DAS) hardware based on phase-sensitive optical time-domain reflectometry is used to collect sound or vibration signals (i.e., distributed fiber sensing signals) along the road in a traffic environment. The collected space-time signals are then matrix-blocked according to appropriate space-time widths to obtain two-dimensional space-time signal samples, thereby constructing a database of different types of events.

[0085] The above operations are performed on all two-dimensional spatiotemporal signal samples in the database, and after manual annotation, a sample set of spatiotemporal grayscale images of traffic trajectories can be obtained. The data set is randomly divided into a training set and a test set in a ratio of 7:3.

[0086] Step S2, constructing a traffic parameter extraction network;

[0087] Construct a traffic parameter extraction network. The backbone network of the traffic parameter extraction network includes: input layer-convolutional layer Conv1-convolutional layer Conv2-C3 module-convolutional layer Conv3-C3 module-convolutional layer Conv4-C3 module-convolutional layer Conv5-C3 module-SPPF feature extraction module.

[0088] In addition to the general two-dimensional convolution, the above convolution layer Conv also performs a normalization. The C3 module is the main module for learning residual features. Its structure is divided into two branches, one using BottleNeck and three convolution layers, and the other using one convolution layer. The two branches are then concat-connected to extract features more efficiently. The SPPF feature extraction module is improved from the SPP module. It efficiently fuses information of different scales of the input feature map, effectively improving the model's ability to recognize targets of different scales. After proper fusion and processing, these feature representations of different scales can more comprehensively capture the semantic information in the image and can effectively deal with targets of different scales. The final R-YOLO network structure obtained by combining the backbone network and the feature fusion structure is shown below. Figure 6 shown.

[0089] Step S3, training a traffic parameter extraction network;

[0090] The two-dimensional spatiotemporal signal samples obtained in step S1 are used to train the traffic parameter extraction network constructed in step S2.

[0091] The signals in the training set obtained in step 1 are used as input, and the constructed network is trained offline. During the training, the angle definition method and angle loss function that adapt to the inclined trajectory target are introduced. Through training iterative adjustment and verification optimization, the performance of the traffic parameter extraction network is optimized.

[0092] During training, the two-dimensional spatiotemporal signal samples are divided into grid cells, and B bounding boxes are predicted for each grid cell. Each bounding box includes 6 predicted values: x, y, w, h, confidence, and angle θ. The loss function of the training is:

[0093] Loss = L Box +L Confidence +L Class +L Angle

[0094] L Box =L CIoU =1-CIoU

[0095]

[0096] L Confidence =BCE(p0, p IoU )

[0097] L Class =BCE(c gt , c p )

[0098] L Angle =BCE(θ gt ,θ p )

[0099]

[0100] The BCE log loss is expressed as:

[0101]

[0102] Where (x, y) represents the offset of the coordinates of the center of the bounding box relative to the upper left corner of the current grid cell, (w, h) represents the width and height of the bounding box, and θ represents the angle between the long side of the bounding box and the x-axis; represents the bounding box loss, represents the confidence loss, represents the category loss, Indicates angle loss; represents the complete intersection loss between the predicted box and the true bounding box, represents the intersection of the predicted box and the true bounding box, represents the center coordinate of the prediction box, Represents the center point coordinates of the true target bounding box, represents the Euclidean distance between the center point of the predicted box and the center point of the true target bounding box, represents the minimum diagonal length of the smallest rectangle that can just contain the prediction box and the ground truth box, represents the weight function, represents the correction factor; Represents the confidence of the prediction box, Represents the predicted box ; represents the true category, Indicates the predicted category; Indicates the true angle value, Indicates the predicted angle value; represents the BCE logarithmic loss; represents the true bounding box width, represents the true bounding box height, Indicates the prediction box width, Indicates the height of the prediction box; represents the correction factor, Represents the intersection-over-union ratio of the real box and the predicted box, represents the true label of the sample, represents the sample prediction probability, Indicates samples, represents the number of samples, Indicates The true labels of samples, Indicates The predicted probability of samples; Represents the activation function, which is used to compress the predicted probability to a value between 0 and 1.

[0103] After the traffic parameter extraction network is initialized, the data in the training set is input into it, and the predicted category probability distribution is obtained through forward propagation of the network. The output bounding box loss, class loss, confidence loss and angle loss are calculated by the above loss function, and the gradient of each learning parameter is calculated by back propagation using the loss value. The model parameters are updated according to the gradient descent method at the specified learning rate to train the optimal model.

[0104] After the traffic parameter extraction network is trained, it can also be tested and evaluated for performance. The test set obtained in step 1 is input into the trained traffic parameter extraction network to detect, identify and estimate the parameters of the traffic trajectory data set to be tested. The general YOLO network is compared with the traffic parameter extraction network (R-YOLO) proposed in the present invention, including the performance differences such as confusion matrix, mAP.5, Precision, Recall, single frame time consumption, model parameter quantity and floating point operation quantity FLOPs.

[0105] Step S4, real-time estimation of traffic parameters;

[0106] The spatiotemporal signal to be estimated is obtained and input into the traffic parameter extraction network trained in step S3, and the traffic parameter extraction network outputs the traffic parameters of the signal to be estimated.

[0107] In this embodiment, the input two-dimensional spatiotemporal signal samples are first divided into S×S grid cells. If the center of the target falls within a grid cell, then this grid cell is responsible for detecting the target. For each grid cell, B bounding boxes are predicted. In order to accurately describe the traffic tilt trajectory, each bounding box should include 6 prediction values: x, y, w, h, confidence, and angle θ. Among them, (x, y) is the offset of the coordinates of the center of the bounding box relative to the upper left corner of the current grid cell, indicating the position of the bounding box in the current grid cell, (w, h) is the width and height of the bounding box, describing the size of the bounding box, and the confidence indicates the probability of containing the target in this bounding box and the accuracy of the predicted box. In addition, each grid cell also predicts the probability distribution of C categories to indicate the possibility that the target in this grid cell belongs to each category.

[0108] In order to accurately describe the angle prediction value of the bounding box, it is also necessary to determine the angle definition method. The angle definition method of the present invention adopts the long side definition method, such as Figure 5 As shown in (a), the angle is between negative ninety degrees and positive ninety degrees, that is, the angle between the long side of the detection box rectangle and the x-axis. However, if only the regression method is used to learn the angle parameters, due to the periodicity of the angle parameters, the loss value will suddenly increase when the period changes, increasing the learning difficulty of the network. This boundary problem is like Figure 5 (b) is shown. In the boundary case, the actual angular distance difference between the angle value of the prediction box and the actual angle value of the target is not large, but the angular distance learned by the network is huge, which greatly increases the difficulty of network learning. In order to solve this problem, this embodiment converts this angle regression problem into a classification problem. This method is called rounded smooth label (CSL). Negative ninety degrees to positive ninety degrees are divided into 180 angle categories, which will bring a certain loss of accuracy, but it can solve the boundary problem in the long edge definition method and improve network performance. In the DAS traffic trajectory detection scenario, an error within 1 degree is acceptable, which will not cause too much error in determining the position of the vehicle trajectory and the speed of the vehicle. Finally, according to the accurately measured coordinate values ​​of the four vertices of the prediction box, the parameter extraction module is designed to calculate the slope and width of the long side of the prediction box to estimate the speed and mass of the vehicle, and the trajectory type and estimated parameter information are displayed in the output prediction box.

[0109] Example 2

[0110] On the basis of Example 1, the system hardware used for signal acquisition in step S1 is a distributed optical fiber sound and vibration sensing system based on phase-sensitive optical time domain reflectometry (Φ-OTDR) technology of phase demodulation. The system architecture diagram is as follows: Figure 2As shown in the figure. This DAS vibration source monitoring system includes optical transmission, optical reception, optical demodulation and signal processing modules. When the instrument is connected to the optical fiber link to be monitored, it can fully monitor the optical fiber link along the entire road and trigger the alarm mechanism when an abnormal situation is found. The hardware consists of three main parts: detection fiber, optical demodulator and signal processing device. The detection fiber is used to transmit optical signals and sense vibration events, and is buried along the monitoring link; the optical demodulator is responsible for demodulating and processing the sensed optical signals; and the signal processing device is used to digitally process and analyze the demodulated signals. The system uses Rayleigh scattering, which is photoelastic scattering caused by medium density fluctuations. By demodulating the phase, the fiber distributed acoustic sensing (DAS) system can detect vibration events occurring at specific locations of the optical fiber. Specifically, the ultra-narrow linewidth laser generates continuous coherent light, and the acousto-optic modulator AOM modulates the continuous light emitted by the laser into pulsed light with a specific period and pulse width. Then, the narrow linewidth laser pulses amplified by the erbium-doped fiber amplifier (EDFA) are periodically emitted into the sensing fiber through the circulator. Receive and filter the Rayleigh backscattered light modulated by external vibration. Subsequently, the phase change of the coherent Rayleigh backscattered light wave containing the vibration information is linearly demodulated by an unbalanced Mach-Zehnder fiber interferometer (MZI) and a 3x3 coupler or by I / Q demodulation. The demodulated scattered signal is received by a photodetector (PD) and converted into a digital electrical signal by a data acquisition card (DAQ). The digitized signal can be further processed by a processor. By accumulating the information obtained from the pulse emission cycle, a two-dimensional space-time matrix is ​​formed, in which the rows represent time and the columns represent space. The matrix can be intelligently processed by a deep learning model to accurately determine the location of events along the optical fiber and identify their types. The acquired space-time matrix is ​​divided into space-time regions with appropriate space-time widths to construct each space-time signal sample in the data set.

[0111] Example 3

[0112] Based on Example 1, the two-dimensional space-time signal samples are subjected to denoising preprocessing, specifically:

[0113] Step S1-1, perform wavelet packet decomposition on the time signal of each spatial point in the two-dimensional space-time signal sample to obtain wavelet coefficients, and perform threshold denoising and reconstruction on the group of wavelet coefficients to obtain a denoised space-time map.

[0114] When threshold denoising and reconstruction are performed on the group of wavelet coefficients, specifically:

[0115] Step S1-1-1, for a two-dimensional space-time signal sample X M,N , extract each column vector according to the spatial point, and obtain the one-dimensional time response signal X :,n (n=1, 2, 3, ..., N).

[0116] Step S1-1-2, using the "db6" wavelet basis to calculate the one-dimensional time response signal X :,n (n=1, 2, 3, ..., N) to perform q-layer wavelet packet decomposition. The signal is first decomposed into a primary low-frequency part (S 1.0 ) and the first-level high-frequency part (S 1.1 ), and then decomposed into the secondary low-frequency part (S 2.0 ) / (S 2.2 ) and the secondary high frequency part (S 2.1 ) / (S 2.3 ), and so on, the final signal is decomposed into eight sub-signals in different frequency ranges, each frequency range represents a different time-frequency characteristic of the signal.

[0117] Step S1-1-3, filtering out noise sub-signals by setting a threshold, and reconstructing the filtered signal.

[0118] In step S1-1-3, the Rigrsure threshold is an adaptive threshold selection based on Stein unbiased likelihood estimation. Assume that the signal x(t) is a discrete time series, t = 1, 2, ..., n, and the specific threshold λ selection rule is:

[0119]

[0120] Among them, r(t) represents the set risk vector component, n represents the number of decomposed wavelet coefficients; t represents the index value, t = 1, 2, ..., i, ..., n; y(t) represents |x(t)| 2 Ascending sequence of .

[0121] The signal is processed using a soft threshold function. The processing method is: when the wavelet coefficient is greater than the threshold, it is shrunk instead of retaining the original value; when the wavelet coefficient is less than the threshold, it is set to 0. The calculation formula is:

[0122]

[0123] Where ω is the wavelet packet coefficient.

[0124] The soft threshold is gentler than the hard threshold and can retain more signal details. It reduces the coefficients that are less than the threshold instead of setting them to zero directly, thereby retaining the characteristics of the signal as much as possible while denoising. This can effectively reduce the impact of noise while avoiding signal loss as much as possible. The above denoising process is performed on the time signal of each spatial point of the space-time sample to obtain the denoised space-time map.

[0125] Step S1-2, performing OTSU binarization processing on the denoised space-time image to obtain a denoised binary grayscale image of the target trajectory.

[0126] Example 4

[0127] On the basis of Example 3, in step S1-2, the denoised space-time graph is subjected to OTSU binarization processing, and the space-time graph is divided into regions with different characteristics according to the grayscale differences of the pixels in the space-time graph, effectively highlighting the target traffic trajectory signal. Assume that the size of the space-time matrix to be processed is M*N, where each pixel has L different grayscale levels. Now it is necessary to find a threshold thr to divide the matrix into two parts. The specific method is:

[0128] Step S1-2-1, set the segmentation threshold thr, and divide the denoised spatiotemporal image into two parts according to the segmentation threshold thr, that is, divide the pixels with grayscale values ​​less than or equal to the segmentation threshold thr into the target area A, and divide the pixels with grayscale values ​​greater than the segmentation threshold thr into the background area B. The target area A and the background area B correspond to the foreground color and background color of the decibel map. Assume that the number of pixels in the target area A and the background area B are N respectively. A 、N B , satisfying N A +N B =M*N, the ratio of the number of pixels in the target area A to the total number of pixels is P A , the ratio of the number of pixels in the background area B to the total number of pixels is P B ;P A =N A / (M×N),P B =N B / (M×N).

[0129] Assume that the average grayscale of the target area A and the background area B are M A and M B , then the average grayscale of the entire image can be calculated as: μ = M A P A +M B P B .

[0130] Step S1-2-2, according to the inter-class variance function, update the gray value thr in sequence, so that the gray value thr corresponding to the maximum ICV is the maximum binary gray value thr required by the maximum inter-class variance method. otsu ; Among them, the inter-class variance ICV is expressed as:

[0131] ICV=P A ·(M A -thr) 2 +P B ·(M B -thr) 2 ;

[0132] The gray value in the space-time graph is greater than throtsu The part is 1 in the binary image, which is less than thr otsu The part is 0 in the binary image;

[0133] Step S1-2-3, using the OTSU method to obtain a binary segmented spatiotemporal response map.

[0134] The vibration response caused by the vibration source usually has a high amplitude and energy, so in the binary image, these signals are marked as foreground color 1. In contrast, the vibration response caused by background noise often has a small amplitude and weak energy, and is marked as background color 0 in the binary image. This method can achieve secondary enhancement of the denoised fiber optic sensor spatiotemporal response signal, and more obviously highlight the target vibration source signal trajectory. In this way, an original spatiotemporal sample can be converted into a denoised spatiotemporal graph sample. The vibration event signals in the typical traffic event database include: background noise, railways, and roads. The on-site photos of the above events are shown in the figure. Figure 4 (a, b, c), the original space-time diagram is as follows Figure 4 (d, e, f) and the binary grayscale image after denoising Figure 4 The highway and railway data in the typical event database are manually annotated and the data set is randomly divided into a training set and a test set, and environmental noise is added as a negative sample, as shown in Table 1:

[0135] Table 1 Three types of typical event datasets

[0136]

[0137] Example 5

[0138] Based on the above embodiments, the traffic parameter extraction network performs deep feature extraction and parameter estimation on the binary grayscale spatiotemporal information of different types of traffic trajectory signals, specifically including three steps: R-YOLO architecture design, network structure, and loss function design. The specific method is as follows:

[0139] 1. R-YOLO algorithm design

[0140] This part mainly includes the following three steps:

[0141] (1) Algorithm design and construction process;

[0142] (2) Angle definition and the design process of CSL smooth labels;

[0143] (3) Design of traffic parameter extraction module.

[0144] 2. Network Structure

[0145] This part mainly includes the following two steps:

[0146] (1) Backbone network structure: including the structural design of the backbone network's C3 module, SPPF module, etc.

[0147] (2) Design of multi-scale feature fusion Neck: FPN+PAN feature fusion structure design.

[0148] 3. Cost function design and network update process

[0149] This part mainly includes: the formulation of bounding box loss function, confidence loss function, category loss function and improved angle loss function.

[0150] Example 6

[0151] On the basis of the above embodiment, when the traffic parameter extraction network is trained, the process is as follows:

[0152] First, the input matrix is ​​divided into S×S grid cells. If the center of the target falls into a grid cell, then this grid cell is responsible for detecting the target. For each grid cell, B bounding boxes are predicted. In order to accurately describe the traffic tilt trajectory, each bounding box should include 6 prediction values: x, y, w, h, confidence, and angle θ. Among them, (x, y) is the offset of the coordinates of the center of the bounding box relative to the upper left corner of the current grid cell, indicating the position of the bounding box in the current grid cell, (w, h) is the width and height of the bounding box, describing the size of the bounding box, and the confidence indicates the probability of containing the target in this bounding box and the accuracy of the predicted box. In addition, each grid cell also predicts the probability distribution of C categories to indicate the possibility that the target in this grid cell belongs to each category.

[0153] In order to accurately describe the angle prediction value of the bounding box, it is also necessary to determine the angle definition method. In this embodiment, the angle definition method adopts the long side definition method, such as Figure 5 As shown in (a), the angle is between negative ninety degrees and positive ninety degrees, that is, the angle between the long side of the detection box rectangle and the x-axis. However, if only the regression method is used to learn the angle parameters, due to the periodicity of the angle parameters, the loss value will suddenly increase when the period changes, increasing the learning difficulty of the network. This boundary problem is like Figure 5(b) is shown. In the boundary case, the actual angular distance between the angle value of the prediction box and the actual angle value of the target is not much, but the angular distance learned by the network is huge, which greatly increases the difficulty of network learning. In order to solve this problem, the present invention converts this angle regression problem into a classification problem. This method is called rounded smooth label (CSL). Negative ninety degrees to positive ninety degrees are divided into 180 angle categories, which will bring a certain loss of accuracy, but can solve the boundary problem in the long edge definition method and improve network performance. In the DAS traffic trajectory detection scenario, an error within 1 degree is acceptable, which will not cause too much error in determining the position of the vehicle trajectory and the speed of the vehicle. Finally, according to the accurately measured coordinate values ​​of the four vertices of the prediction box, the parameter extraction module is designed to calculate the slope and width of the long side of the prediction box to estimate the speed and mass of the vehicle, and the trajectory type and estimated parameter information are displayed in the output prediction box.

[0154] Example 7

[0155] On the basis of Example 5, further optimization description is made on the traffic parameter extraction network, mainly introducing the specific structure of the traffic parameter extraction network.

[0156] For the design of the network architecture for traffic parameter extraction, a backbone convolutional neural network DarkNet53 model was first constructed. The model consists of input layer-convolutional layer Conv1-convolutional layer Conv2-C3 module-convolutional layer Conv3-C3 module-convolutional layer Conv4-C3 module-convolutional layer Conv5-C3 module-SPPF feature extraction module. Different from the general convolutional layer, the convolutional module Conv in the traffic parameter extraction network is normalized once in addition to the general two-dimensional convolution. The C3 module is the main module for learning residual features. Its structure is divided into two branches, one using BottleNeck and three layers of convolutional layers, and the other using one layer of convolution. Then the two branches are concat-connected to extract features more efficiently. The SPPF module is improved from the SPP module, which efficiently fuses information of different scales of the input feature map, effectively improving the model's ability to recognize targets of different scales.

[0157] The design of Neck follows the FPN+PAN structure. FPN is top-down, and the high-level feature information is transferred and fused through upsampling to obtain the feature map for prediction. In addition to using FPN, the PAN structure is also used on this basis. PAN introduces the structure of a feature pyramid and uses multiple parallel feature extraction branches. Each branch is responsible for extracting feature representations of different scales. After proper fusion and processing, these feature representations of different scales can more comprehensively capture the semantic information in the image and can effectively deal with targets of different scales. The final R-YOLO network structure obtained by combining the backbone network and the feature fusion structure is shown below. Figure 6 shown.

[0158] Example 8

[0159] On the basis of the above embodiments, a traffic parameter extraction network is used to conduct online testing and performance evaluation of vibration events along the optical cable, and compared with the trained and verified network under the same circumstances (under the same input conditions). The comparison includes confusion matrix, mAP.5, Precision, Recall, single frame recognition time (Time per sample), model parameters (Model parameters) and floating-point calculation amount (FLOPs), etc.

[0160] Comparing the recognition results of the traditional YOLO model and the traffic parameter extraction network in this embodiment, the confusion matrix of the model is as follows: Figure 7 As shown in the figure. Label 1 represents road vehicle data, label 2 represents train and railway data, and label 3 represents the added background noise. It can be seen that the traditional YOLO model often misdetects background noise as target signals, while the traffic parameter extraction network has a lower false detection rate and a relatively low number of missed detections. It has stronger performance and recognition capabilities in scenarios with mobile vibration sources such as traffic. The corresponding performance indicators such as precision, recall, F1-score, and average accuracy are as follows: Figure 8 (a). The results show that the mAP.5 of the traffic parameter extraction network can reach 96.71%, which is 10.3% higher than YOLO on the same test set. The recall rate reached 96.06%, which is 2.54% higher than the YOLO model, and the precision rate only dropped by 0.98%. It can be concluded that in the traffic trajectory detection scenario, the traffic parameter extraction network has better recognition ability. It adds angle information and effectively uses this information to achieve more accurate traffic trajectory recognition. In addition, the average time consumed by the above two models for one sample, the number of model parameters, and the amount of floating-point calculations are compared, as shown in Figure 2. Figure 8(b) It can be seen that compared with the traditional YOLO model, the traffic parameter extraction network parameters and floating point calculations with the added angle parameter have slightly increased, and the single frame consumption time has also increased. However, on commercial GPUs (NVIDIA The single frame time on GeForce(R) GTX 1080Ti) is only 13ms, and the average frame rate is 76.92 frames per second, which can easily meet the real-time requirements and help DAS make more accurate decisions more effectively with excellent traffic detection performance and real-time processing capabilities.

[0161] Example 9

[0162] Based on the above embodiments, the traffic parameter extraction capability of the traffic parameter extraction network used in this application is mainly demonstrated and compared with the traditional YOLO model.

[0163] Fig. 9 The recognition results of the detection algorithm of the traditional YOLO model and the detection algorithm of the traffic parameter extraction network for railway and highway traffic scenarios are demonstrated. It can be seen that for the DAS traffic monitoring scenario, most traffic trajectory targets are not horizontal or vertical, but mostly exist in the form of oblique lines or thick oblique lines in the space-time graph. At the same time, there may be complex situations such as noise and trajectory overlap. The approximate spatial position and type of both types of traffic trajectories are correctly detected. In the traffic monitoring scenario, the time scale of the trajectory in the space-time graph corresponds to the time coordinate of the space-time graph, and the spatial length corresponds to the spatial coordinate. The slope of the trajectory can be effectively calculated based on the trajectory angle, and then combined with the time and space span, the moving speed of the trajectory target can be calculated. There is a gap in the rate estimation between the traffic parameter extraction network and the YOLO model. The error between the traffic parameter extraction network and the traditional YOLO model in estimating the traffic trajectory rate is shown as follows: Fig.10 As shown, the traditional YOLO model can only use horizontal or vertical rectangular frames to frame the target, and can only estimate the traffic trajectory rate by the diagonal slope of the detection frame (the blue line segment in the figure); the traffic parameter extraction network introduces angle parameters, and can directly use the tilted detection frame to make a more accurate estimate of the trajectory rate (the red line segment in the figure). Therefore, especially when the traffic trajectory is relatively coarse, the traditional YOLO model has a large error in estimating the traffic trajectory rate; the traffic parameter extraction network is more accurate in estimating the rate of the mobile traffic vibration source. In addition to rate estimation, the present invention extracts some other parameters. Since the width of the trajectory in a traffic scenario is positively correlated with the weight of the vibration source (such as a vehicle), the width of the trajectory is the length of the short side of the detection frame. Therefore, by using the traffic parameter extraction network to detect and compare the width of the traffic trajectory of the DAS spatiotemporal graph, information related to the vehicle body weight and vehicle model can be extracted. In a traffic scenario, the specific effect is as follows Fig.11As shown in (a), the traditional YOLO model is difficult to quantify parameters such as vehicle weight; dividing the spatiotemporal matrix into multiple time frames can estimate the real-time rate change of the vehicle, such as Fig.11 (b) as shown.

[0164] In summary, for the DAS system, this application proposes a real-time estimation method for DAS traffic parameters (R-YOLO). In actual field tests, compared with the traditional YOLO network, it has better recognition performance in the field of traffic monitoring. When the traffic trajectory is coarse, it can better detect the vehicle's speed parameters, and can also detect the weight of the vehicle body, etc., and does not significantly increase the detection time, ensuring its real-time performance. Therefore, in DAS traffic applications, it can easily realize online real-time detection and identification of large or ultra-large-scale arrays and extraction of traffic parameters, and has a wider range of application scenarios in DAS vibration source detection.

[0165] Example 10

[0166] This embodiment discloses a DAS traffic parameter real-time estimation system, including:

[0167] A signal sample acquisition module is used to collect the spatiotemporal signals along the road in the traffic environment using the DAS system to obtain two-dimensional spatiotemporal signal samples;

[0168] Traffic parameter extraction network construction module, used to construct the traffic parameter extraction network. The backbone network of the traffic parameter extraction network includes: input layer-convolution layer Conv1-convolution layer Conv2-C3 module-convolution layer Conv3-C3 module-convolution layer Conv4-C3 module-convolution layer Conv5-C3 module-SPPF feature extraction module;

[0169] A traffic parameter extraction network training module is used to train the traffic parameter extraction network constructed by the traffic parameter extraction network construction module using the two-dimensional spatiotemporal signal samples obtained in the signal sample acquisition module;

[0170] During training, the two-dimensional spatiotemporal signal samples are divided into grid cells, and B bounding boxes are predicted for each grid cell. Each bounding box includes 6 predicted values: x, y, w, h, confidence, and angle θ. The loss function of the training is:

[0171] Loss = L Box +L Confidence +L Class +L Angle

[0172] L Box =L CIoU =1-CIoU

[0173]

[0174] L Confidence =BCE(p0, p IoU )

[0175] L Class =BCE(c gt , c p )

[0176] L Angle =BCE(θ gt ,θ p )

[0177] Where (x, y) represents the offset of the coordinates of the center of the bounding box relative to the upper left corner of the current grid unit, (w, h) represents the width and height of the bounding box, and θ represents the angle between the long side of the bounding box and the x-axis; L Box represents the bounding box loss, L Confidence represents the confidence loss, L Class represents the category loss, L Angle represents the angle loss; CIoU represents the complete intersection loss between the predicted box and the true bounding box, IoU represents the intersection of the predicted box and the true bounding box, b represents the center coordinate of the predicted box, and b gt represents the coordinates of the center point of the true target bounding box, ρ represents the Euclidean distance between the center point of the predicted box and the center point of the true target bounding box, c represents the minimum diagonal length of the minimum rectangle that can just contain the predicted box and the ground truth box, a represents the weight function, and v represents the correction factor; p0 represents the confidence of the predicted box, p IoU represents the CIoU of the predicted box; c gt represents the true category, c p represents the predicted category; θ gt Indicates the true angle value, θ p Represents the predicted angle value; BCE represents the BCE logarithmic loss.

[0178] The traffic parameter real-time estimation module is used to obtain the spatiotemporal signal to be estimated and input it into the traffic parameter extraction network trained by the traffic parameter extraction network training module. The traffic parameter extraction network outputs the traffic parameters of the signal to be estimated.

[0179] Embodiment 11

[0180] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of a method for real-time estimation of DAS traffic parameters.

[0181] The computer device may be a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with the user through a keyboard, a mouse, a remote control, a touch pad, or a voice control device.

[0182] The memory includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or D interface display memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory can be an internal storage unit of the computer device, such as a hard disk or memory of the computer device. In other embodiments, the memory can also be an external storage device of the computer device, such as a plug-in hard disk equipped on the computer device, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Of course, the memory can also include both the internal storage unit of the computer device and its external storage device. In this embodiment, the memory is often used to store the operating system and various application software installed on the computer device, such as the program code of the real-time estimation method of DAS traffic parameters, etc. In addition, the memory can also be used to temporarily store various types of data that have been output or are to be output.

[0183] In some embodiments, the processor may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip. The processor is generally used to control the overall operation of the computer device. In this embodiment, the processor is used to run the program code stored in the memory or process data, such as running the program code of the DAS traffic parameter real-time estimation method.

[0184] Example 12

[0185] A computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the processor executes the steps of a method for real-time estimation of DAS traffic parameters.

[0186] The computer-readable storage medium stores an interface display program, and the interface display program can be executed by at least one processor so that the at least one processor executes the steps of the above-mentioned DAS traffic parameter real-time estimation method.

[0187] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, CD), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server or network device, etc.) to execute the DAS traffic parameter real-time estimation method described in the embodiment of the present application.

Claims

1. A method for real-time estimation of DAS traffic parameters, characterized in that: The following steps are involved: Step S1, obtaining a signal sample; Use the DAS system to collect the spatiotemporal signals along the road in the traffic environment and obtain two-dimensional spatiotemporal signal samples; Step S2, constructing a traffic parameter extraction network; Construct a traffic parameter extraction network. The backbone network of the traffic parameter extraction network includes: input layer-convolution layer Conv1-convolution layer Conv2-C3 module-convolution layer Conv3-C3 module-convolution layer Conv4-C3 module-convolution layer Conv5-C3 module-SPPF feature extraction module; Step S3, training a traffic parameter extraction network; Using the two-dimensional spatiotemporal signal samples obtained in step S1 to train the traffic parameter extraction network constructed in step S2; During training, the two-dimensional spatiotemporal signal samples are divided into grid cells, and B bounding boxes are predicted for each grid cell. Each bounding box includes 6 predicted values: x, y, w, h, confidence, and angle θ. The loss function of the training is: Loss=L Box +L Confidence +L Class +L Angle L Box =L CIoU =1-CIoU L Confidence =BCE(p0,p IoU ) L Class =BCE(c gt ,c p ) L Angle =BCE(θ gt ,the p ) Where (x, y) represents the offset of the coordinates of the center of the bounding box relative to the upper left corner of the current grid unit, (w, h) represents the width and height of the bounding box, and θ represents the angle between the long side of the bounding box and the x-axis; L Box represents the bounding box loss, L Confidence represents the confidence loss, L Class represents the category loss, L Argle represents the angle loss; CIoU represents the complete intersection loss between the predicted box and the true bounding box, IoU represents the intersection of the predicted box and the true bounding box, b represents the center coordinate of the predicted box, and b gt represents the coordinates of the center point of the true target bounding box, ρ represents the Euclidean distance between the center point of the predicted box and the center point of the true target bounding box, c represents the minimum diagonal length of the minimum rectangle that can just contain the predicted box and the ground truth box, a represents the weight function, and v represents the correction factor; p0 represents the confidence of the predicted box, p IoU represents the CIoU of the predicted box; c gt represents the true category, c p represents the predicted category; θ gt Indicates the true angle value, θ p Represents the predicted angle value; BCE represents the BCE logarithmic loss; Step S4, real-time estimation of traffic parameters; The spatiotemporal signal to be estimated is obtained and input into the traffic parameter extraction network trained in step S3, and the traffic parameter extraction network outputs the traffic parameters of the signal to be estimated.

2. The DAS traffic parameter real-time estimation method according to claim 1, characterized in that: In step S1, the two-dimensional space-time signal samples are subjected to denoising preprocessing, specifically in the following manner: Step S1-1, performing wavelet packet decomposition on the time signal of each spatial point in the two-dimensional space-time signal sample to obtain wavelet coefficients, and performing threshold denoising and reconstruction on the group of wavelet coefficients to obtain a denoised space-time graph; Step S1-2, performing OTSU binarization processing on the denoised space-time image to obtain a denoised binary grayscale image of the target trajectory.

3. The DAS traffic parameter real-time estimation method according to claim 2, characterized in that: In step S1-1, when threshold denoising and reconstruction are performed on the group of wavelet coefficients, specifically: Step S1-1-1, for a two-dimensional space-time signal sample X M,N , extract each column vector according to the spatial point, and obtain the one-dimensional time response signal X :;n (n=1, 2, 3, ..., N); Step S1-1-2, using the "db6" wavelet basis to calculate the one-dimensional time response signal X :,n (n=1, 2, 3, ..., N) to perform q-layer wavelet packet decomposition. The signal is first decomposed into a primary low-frequency part (S 1.0 ) and the first-level high-frequency part (S 1.1 ), and then decomposed into the secondary low-frequency part (S 2.0 ) / (S 2.2 ) and the secondary high frequency part (S 2.1 ) / (S 2.3 ), and so on, the final signal is decomposed into eight sub-signals with different frequency ranges; Step S1-1-3, filtering out noise sub-signals by setting a threshold, and reconstructing the filtered signal.

4. The method for real-time estimation of DAS traffic parameters according to claim 3, characterized in that: In step S1-1-3, the selection rule of the threshold λ of the signal x(t) is: Among them, r(t) represents the set risk vector component, n represents the number of decomposed wavelet coefficients; t represents the index value, t = 1, 2, ..., i, ..., n; y(t) represents |x(t)| 2 Ascending sequence of .

5. The DAS traffic parameter real-time estimation method according to claim 2, characterized in that: In step S1-2, the denoised space-time map is subjected to OTSU binarization processing, and the space-time map is segmented into regions with different characteristics according to the grayscale differences of the pixels in the space-time map. The specific method is as follows: Step S1-2-1, set the segmentation threshold thr, and divide the denoised spatiotemporal image into two parts according to the segmentation threshold thr, that is, divide the pixels with grayscale values ​​less than or equal to the segmentation threshold thr into the target area A, and divide the pixels with grayscale values ​​greater than the segmentation threshold thr into the background area B; the number of pixels in the target area A and the background area B are N respectively A 、N B , target area A The ratio of the number of pixels to the total number of pixels is P A , the ratio of the number of pixels in the background area B to the total number of pixels is P B ; Step S1-2-2, according to the inter-class variance function, update the gray value thr in sequence, so that the gray value thr corresponding to the maximum ICV is the maximum binary gray value thr required by the maximum inter-class variance method. otsu ; Among them, the inter-class variance ICV is expressed as: ICV=P A ·(M A -thr) 2 +P B ·(M B -thr) 2 ; The gray value in the space-time graph is greater than thr otsu The part is 1 in the binary image, which is less than thr otsu The part is 0 in the binary image; Step S1-2-3, using the OTSU method to obtain a binary segmented spatiotemporal response map.

6. The DAS traffic parameter real-time estimation method according to claim 1, characterized in that: In the loss function of the traffic parameter extraction network, Among them, w gt represents the true bounding box width, h gt represents the height of the true bounding box, w represents the width of the predicted box, h represents the height of the predicted box; v represents the correction factor, and IoU represents the intersection over union ratio of the true box and the predicted box.

7. The DAS traffic parameter real-time estimation method according to claim 1, characterized in that: The BCE log loss is expressed as: in, represents the true label of the sample, represents the sample prediction probability, Indicates samples, represents the number of samples, Indicates The true labels of samples, Indicates The predicted probability of samples; Represents the activation function, which is used to compress the predicted probability to a value between 0 and 1.

8. A DAS traffic parameter real-time estimation system, characterized in that: include: A signal sample acquisition module is used to collect the spatiotemporal signals along the road in the traffic environment using the DAS system to obtain two-dimensional spatiotemporal signal samples; Traffic parameter extraction network construction module, used to construct the traffic parameter extraction network. The backbone network of the traffic parameter extraction network includes: input layer-convolution layer Conv1-convolution layer Conv2-C3 module-convolution layer Conv3-C3 module-convolution layer Conv4-C3 module-convolution layer Conv5-C3 module-SPPF feature extraction module; A traffic parameter extraction network training module is used to train the traffic parameter extraction network constructed by the traffic parameter extraction network construction module using the two-dimensional spatiotemporal signal samples obtained in the signal sample acquisition module; During training, the two-dimensional spatiotemporal signal samples are divided into grid cells, and B bounding boxes are predicted for each grid cell. Each bounding box includes 6 predicted values: x, y, w, h, confidence, and angle θ. The loss function of the training is: Loss=L Box +L Confidence +L Class +L Angle L Box =L CIoU =1-CIoU L Confidence =BCE(p0,p IoU ) L Class =BCE(c gt ,c p ) L Angle =BCE(θ gt ,the p ) Where (x, y) represents the offset of the coordinates of the center of the bounding box relative to the upper left corner of the current grid unit, (w, h) represents the width and height of the bounding box, and θ represents the angle between the long side of the bounding box and the x-axis; L Box represents the bounding box loss, L Confidence represents the confidence loss, L Class represents the category loss, L Angle represents the angle loss; CIoU represents the complete intersection loss between the predicted box and the true bounding box, IoU represents the intersection of the predicted box and the true bounding box, b represents the center coordinate of the predicted box, and b gt represents the coordinates of the center point of the true target bounding box, ρ represents the Euclidean distance between the center point of the predicted box and the center point of the true target bounding box, c represents the minimum diagonal length of the minimum rectangle that can just contain the predicted box and the ground truth box, a represents the weight function, and v represents the correction factor; p0 represents the confidence of the predicted box, p IoU represents the CIoU of the predicted box; c gt represents the true category, c p represents the predicted category; θ gt Indicates the true angle value, θ p Represents the predicted angle value; BCE represents the BCE logarithmic loss. The traffic parameter real-time estimation module is used to obtain the spatiotemporal signal to be estimated and input it into the traffic parameter extraction network trained by the traffic parameter extraction network training module. The traffic parameter extraction network outputs the traffic parameters of the signal to be estimated.

9. A computer device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: A computer program is stored, and when the computer program is executed by a processor, the processor is caused to perform the steps of the method according to any one of claims 1 to 7.

Citation Information

Cited By

  • Optical time domain road fusion sensing monitoring method and system

    CN119046798A

  • Traffic flow prediction method and device, computer equipment and storage medium

    CN119495194A