Vehicle trajectory recognition and continuous velocity estimation method based on distributed optical fiber sensing

Through the cross-correlation analysis and generative adversarial network model of the distributed optical fiber sensing system, the difficulties and noise interference problems of traditional sensors in vehicle speed monitoring are solved, continuous and accurate monitoring of vehicle speed is achieved, and traffic safety and system efficiency are improved. .

CN118644995BActive Publication Date: 2024-10-25SICHUAN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411095425.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-12
Publication Date
2024-10-25
Estimated Expiration
2044-08-12

AI Technical Summary

Technical Problem

Traditional sensors in existing intelligent transportation systems have problems in vehicle speed monitoring, such as installation and maintenance difficulties, environmental sensitivity, high cost, limited field of view, hidden dangers of reverse speed measurement, and the inability to achieve continuous monitoring of vehicle speed, and distributed optical fiber acoustic wave sensing It is difficult for the system to accurately detect vehicle speed under weak signal and noise interference.

Method used

Using a distributed optical fiber sensing system through cross-correlation analysis and an improved generative adversarial network GANs model, communication optical cables along the road are used to collect ground deformation signals when vehicles pass by, realizing vehicle trajectory identification and continuous speed estimation, reducing noise interference and improving speed measurement. Accuracy.

Benefits of technology

It achieves long-distance, continuous and accurate monitoring of vehicle speed, improves traffic safety, reduces system costs, has electromagnetic resistance and high spatial resolution, and can accurately detect vehicle speed fluctuations in complex traffic scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118644995B_ABST
    Figure CN118644995B_ABST
Patent Text Reader

Abstract

The present invention discloses a vehicle trajectory recognition and speed continuous estimation method based on distributed optical fiber sensing, including sending pulses to a sensing optical fiber pre-laid under the road along the road direction; the DAS system collects and obtains the time series signal of each channel when the vehicle passes through the sensing optical fiber; cross-correlates the time series signals of any two channels, finds the maximum value of the cross-correlation of the two time series signals to obtain the time difference when the vehicle reaches the two channels; and obtains the vehicle's travel speed between the two channels in combination with the channel interval of the system structure. The present invention uses the time delay estimation based on cross-correlation to obtain the vehicle's travel speed between any two channels of the DAS, which can clearly observe the vehicle speed change, realize large-scale, continuous detection and speed estimation of vehicles on the road, and truly achieve the purpose of vehicles always traveling at a safe speed, thereby improving traffic safety.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of intelligent transportation systems, and in particular to a vehicle trajectory recognition and speed continuous estimation method based on distributed optical fiber sensing. Background Art

[0002] As an important development direction of modern transportation systems, Intelligent Transportation System (ITS) has attracted widespread attention and attention worldwide. Accurate acquisition of vehicle speed has always been one of the core tasks of ITS. Accurate estimation of vehicle speed plays a vital role in intelligent transportation systems. It can not only significantly improve traffic safety and reduce the potential risk of accidents caused by speeding, but also provide decision-making basis for traffic management departments, optimize traffic management, and support traffic violation monitoring. Traditional sensors can only measure speed at a single location or a certain interval, which causes drivers to intentionally control the speed at the speed measurement location or area to evade punishment, but cannot really achieve the purpose of making the vehicle always travel at a safe speed to improve traffic safety.

[0003] At present, the mainstream technologies for measuring vehicle speed include radar, ground sensor coils, lasers and videos. These technologies generally adopt a single-point installation mode. If continuous monitoring of vehicle speed is to be achieved, the number of devices must be greatly increased and a complex network must be built, which significantly increases the overall cost. The main challenges and limitations faced by these traditional technologies are as follows:

[0004] (1) Difficult installation and maintenance: The installation and maintenance of ground sensor coils require excavation and repair of the road surface, which is complex and costly.

[0005] (2) Environmental sensitivity: Radar speed measurement will be affected by radio wave interference and installation location; measurement accuracy will be affected by installation location, road obstructions, and rainy and foggy weather.

[0006] (3) The performance of laser speed meters will deteriorate in rainy and foggy weather conditions or when encountering obstructions. Speed ​​measurement technologies based on radar, laser, and video are all affected by obstructions from the road surface and other objects, and are mostly used on straight roads.

[0007] (4) Field of view limitation: Video speed measurement cameras usually have a narrow field of view, and multiple cameras may be required to cover a wider area. They are easily affected by external environmental conditions such as haze, rain, snow, pollutants blocking the camera, and night conditions that affect image quality, resulting in reduced speed measurement accuracy.

[0008] (5) Video speed measurement poses a threat to the privacy information of vehicle drivers and passengers.

[0009] (6) High cost and complexity: In order to continuously monitor vehicle speed, it is necessary to increase the number of devices and network them, which increases the complexity and cost of the system.

[0010] (7) Anti-speed measurement and safety hazards: Traditional sensors can only measure speed at a single fixed location or within a certain range. They can be easily detected by on-board equipment or the speed measuring equipment can be observed by the driver, causing the driver to intentionally control the speed to hide illegal behavior, increasing traffic safety hazards.

[0011] In the prior art, distributed acoustic sensor (DAS) technology is applied in the field of road traffic management to identify vehicles and locate lanes, which can solve some of the above problems to a certain extent. However, the existing DAS technology still has the following problems in vehicle speed monitoring:

[0012] 1. The performance of the DAS system is affected by factors such as the depth of fiber optic laying, the degree of coupling between the fiber optic and the road surface, the weight of the moving vehicle, and the vertical distance from the fiber optic. For example, when detecting small, low-speed and long-distance optical cable vehicles, the quasi-static signal generated is weak. In addition, due to the uneven soil coupling of existing communication optical cables and the interference of the system and noise, the laying depth of existing communication optical cables is not the optimal depth that has been carefully designed, and they are usually laid under the non-motorized lanes or pedestrian shoulders on both sides of the road. Such a layout position makes the optical fiber not directly under the moving vehicle, thereby increasing the vertical distance between the moving vehicle and the optical fiber, which will cause the signal collected by the DAS to be weaker, and the weaker signal increases the difficulty of obtaining vehicle information.

[0013] Second, image processing-based methods (such as Hough transform) use the slope of the straight line in the DAS waterfall diagram to estimate the speed of vehicles with a uniform speed. They cannot continuously monitor vehicles with variable speeds and cannot observe fluctuations in vehicle speeds. Most vehicles do not travel at a uniform speed, which limits their application in complex traffic scenarios.

[0014] 3. Some algorithms (such as beamforming algorithms) are sensitive to the selected time and space range. Improper selection of data windows may affect the accuracy of velocity estimation, and the algorithm running speed needs to be improved. Summary of the invention

[0015] In view of the problems existing in the prior art, the present invention provides a vehicle trajectory recognition and continuous speed estimation method based on distributed optical fiber sensing, which utilizes the existing communication optical cables along the road as distributed sensing optical fibers to obtain quasi-static signals generated by ground deformation caused by the deadweight of the vehicle when it passes by, and performs vehicle trajectory recognition through the spatiotemporal waterfall diagram collected by the DAS system. The time series of any two channels of the sensing optical fiber are estimated by finding the time delay of the maximum value of the cross-correlation to achieve long-distance, continuous and accurate speed monitoring of the vehicle.

[0016] In order to achieve the above object, the technical solution adopted by the present invention is as follows:

[0017] A vehicle trajectory recognition and speed continuous estimation method based on distributed optical fiber sensing comprises the following steps:

[0018] S10, sending pulses to a sensing optical fiber pre-laid under the road along the direction of the road;

[0019] S20, the DAS system collects and obtains the time series signal of each channel when the vehicle passes through the sensing optical fiber;

[0020] S30, cross-correlating the time series signals of any two channels, finding the maximum value of the cross-correlation of the two time series signals to obtain the time difference between the vehicles reaching the two channels;

[0021] S40, calculating the travel speed of the vehicle between the two channels in combination with the channel interval of the system structure.

[0022] Specifically, in S30, a cross-correlation function is used to perform cross-correlation analysis on time series signals of any two channels, and the time delay between the two time series signals is determined by finding the maximum value of the cross-correlation function, thereby obtaining the time difference of the vehicle arriving at the two cross-correlated channels.

[0023] Specifically, in S40, the interval between two adjacent channels is obtained according to the structure of the DAS system, and the spatial span between the two mutually related channels is determined according to the number of intervals between the two mutually related channels. The driving speed of the vehicle between the two channels is calculated in combination with the time difference between the vehicle arriving at the two mutually related channels.

[0024] Specifically, in S20, when the signal collected by the DAS system can be directly and completely recognized, the time series signal of each channel detected when the vehicle passes through the sensing optical fiber is directly acquired.

[0025] In the DAS system, due to the transmission characteristics of the optical fiber, the optical signal will gradually weaken during the transmission process. When the laid sensor fiber is not directly under the vehicle, and the vehicle is light and the driving speed is low, the signal generated by the vehicle to the sensor fiber will be relatively weak. In addition, it is easy to be interfered by the internal noise of the system and the external environment noise, which will lead to weak signal, reduced quality, and low signal-to-noise ratio SNR. Based on this, a further purpose of the present invention is to achieve continuous and accurate speed monitoring of the vehicle when the vehicle signal collected by the DAS system is weak or the interference noise is large.

[0026] In this regard, in S20, when the signal collected by the DAS system cannot be completely identified, it indicates that the signal is weak or unstable. First, a spatiotemporal waterfall diagram containing the vehicle to be tested is obtained, and then the vehicle trajectory in the spatiotemporal waterfall diagram is identified, extracted and trained using the generative adversarial network GANs based on the improved model MCPix2pix to restore the vehicle trajectory to its original state. Local windowing is then performed on each channel of the obtained complete vehicle trajectory to remove noise interference, and the time series signal of each channel when the vehicle passes through the sensing optical fiber is obtained.

[0027] Specifically, the process of using the generative adversarial network GANs based on the improved model MCPix2pix to identify, extract and train the vehicle trajectory in the spatiotemporal waterfall diagram to restore the vehicle trajectory is as follows:

[0028] Extracting a quasi-static signal containing vehicle position information from the acquired spatiotemporal waterfall diagram, which contains continuous and discontinuous regions of the vehicle trajectory;

[0029] Use the trained generative adversarial network GANs based on the improved model MCPix2pix to complete and restore the discontinuous areas of the vehicle trajectory according to the continuous areas of the vehicle trajectory, and finally obtain the complete vehicle trajectory.

[0030] Specifically, the training process of the generative adversarial network GANs based on the improved model MCPix2pix includes:

[0031] Data collection and preprocessing: Collect vehicle quasi-static signal data through the DAS system, preprocess the data, and extract the DAS vehicle quasi-static signal in the 0.1Hz-1Hz frequency band, which contains the vehicle position information;

[0032] Construction of the data set: A data set is constructed from the preprocessed data, which includes the continuous and discontinuous areas of the vehicle trajectory. The actual position of the vehicle signal is annotated using the labelimg tool. After the annotation is completed, the coordinates of the matrix corresponding to the area where the curve passes are set to 1, and the background is set to 0. The signal is wrapped in the trajectory mask through dilation processing, and the data set is divided into training set, validation set and test set;

[0033] Model architecture: The Pix2pix deep learning model is selected as the basic architecture, and the feature extractor of multi-scale contextual dilated convolution is introduced to form an improved model MCPix2pix to improve the model's ability to focus on the global visual structure; the discriminator loss is reconstructed according to the data characteristics of the DAS vehicle quasi-static signal, including Gaussian filter smoothing and multi-level constructed losses to reduce the difference between the image and the true value and improve the accuracy of vehicle trajectory recognition;

[0034] Model training: The improved model MCPix2pix is ​​trained using the training set. During the training process, the generator is responsible for generating vehicle trajectories similar to real data, and the discriminator is responsible for evaluating the authenticity of the generated vehicle trajectories. Through continuous iteration, the distribution of vehicle trajectories generated by the generator gradually approaches the real distribution.

[0035] Model evaluation and optimization: Use the validation set to evaluate the trained model, and adjust model parameters or optimize the model architecture based on the evaluation results;

[0036] Model testing: Use the trained model to process the test set or newly collected data to extract the vehicle's spatiotemporal trajectory. For discontinuous areas of the vehicle's trajectory, the model completes and restores them based on the learned data distribution characteristics.

[0037] Specifically, the construction process of the improved model MCPix2pix architecture includes:

[0038] The structure is defined as a feature extractor of multi-scale contextual atrous convolution, where the dilation scale of the convolution starts from scale=2, including ordinary convolution with a convolution kernel of 3, and dilated convolution with a kernel size of 3 and dilated convolution rates of 1, 2, and 3 respectively; after multiple parallel convolution operations, the input feature maps are concatenated together through the concatenation operation Concat, and then multi-scale contextual feature fusion is performed through ordinary convolution with a convolution kernel size of 1, and finally a multi-scale contextual feature fusion map is obtained;

[0039] Reconstructing the loss of the discriminator includes using a Gaussian filter to smooth the image, and using the structure of the dilated convolution to construct the losses of each level through multi-level construction; the number of layers of the constructed loss is consistent with the number of layers of the dilated convolution used, and the loss is reconstructed for each scale;

[0040] The overall objective function of the model is expressed as:

[0041]

[0042] In the formula, G *represents the final generator model, that is, the optimal generator, G represents the generator, D represents the discriminator, Represents resistance to loss, represents multi-scale context loss, L1 represents L1 loss, also known as absolute difference loss, Represents the weight parameter used to balance the L1 loss in the total loss function.

[0043] Specifically, the process of performing local windowing processing on each channel of the obtained complete vehicle trajectory is as follows:

[0044] A Tukey window is applied to the vehicle signal position of each channel of the vehicle trajectory to isolate the influence of noise interference and the interference fading of the DAS system itself, which is expressed as:

[0045]

[0046] In the formula, represents the value of the window function of the Tukey window, Represents the value of the original sequence, that is, the time series signal of a channel without windowing. Represents the sequence value output after local windowing processing;

[0047] The window function of the Tukey window is expressed as:

[0048]

[0049] In the formula, a It is the independent variable in the window function, which is used to indicate the position of the sample point in the window function. Its value is between 0 and 1. The parameter b is the ratio of the length of the cosine cone part to the length of the entire window. .

[0050] Compared with the prior art, the present invention has the following beneficial effects:

[0051] (1) The present invention uses the time delay estimation based on cross-correlation to obtain the vehicle's speed between any two DAS channels. The vehicle speed change can be clearly observed, and large-scale, continuous detection and speed estimation of vehicles on the road are realized, truly achieving the purpose of always ensuring that the vehicle is traveling at a safe speed, thereby improving traffic safety.

[0052] (2) When the vehicle signal collected by the DAS is weak, the present invention uses the improved model MCPix2pix to identify the vehicle trajectory, and performs local windowing processing on the vehicle signal of each channel on the identified trajectory to reduce the influence of noise. The processed signal is subjected to time delay estimation based on cross-correlation, so that the speed of the moving vehicle can be accurately estimated even with weak vehicle signals.

[0053] (3) The present invention is implemented by using a DAS system, which can utilize existing communication optical cables without the need for additional deployment costs. The overall cost is low, and it has the advantages of electromagnetic resistance and high spatial resolution. There is no need to make sensors on the optical fiber. The sensing optical fiber integrates sensing and transmission, and can achieve long-distance, large-scale sensing and networking. It can continuously sense the spatial distribution and change information of physical parameters such as strain and vibration at each point on the optical fiber transmission path. Due to its irreplaceable advantages in long-distance continuous sensing, the DAS system has the unique advantages of ultra-long sensing distance and distributed detection. It can capture up to tens of thousands of points of sensing data through a single optical fiber, and can achieve ultra-long-distance (tens of kilometers, or even more than 100 kilometers) distributed vehicle detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1 It is a schematic diagram of the overall process of an embodiment of the present invention.

[0055] Figure 2 It is a schematic diagram of the process of obtaining a time series signal when the signal is weak in an embodiment of the present invention.

[0056] Figure 3 Schematic diagram of the arrangement of the sensing optical fiber and the channel in an embodiment of the present invention.

[0057] Figure 4 Schematic diagram of the structure of the DAS system used in the embodiment of the present invention.

[0058] Figure 5 It is a schematic diagram of the framework flow of vehicle trajectory extraction in an embodiment of the present invention.

[0059] Figure 6 The figure is a flow chart of model training in an embodiment of the present invention.

[0060] Figure 7 This is a network structure diagram of the feature extractor in an embodiment of the present invention.

[0061] Figure 8 This is a network structure diagram of the generative adversarial network GANs based on the improved model MCPix2pix in an embodiment of the present invention.

[0062] Fig. 9 This is part of the original image data collected by the DAS system in the experiment of the embodiment of the present invention.

[0063] Fig.10 This is the image data of vehicle trajectory recognition using the Pix2pix model in the experiment in the embodiment of the present invention.

[0064] Fig.11 The MCPix2pix model is used in the experiment of the embodiment of the present invention to identify the image data of the vehicle trajectory.

[0065] Fig.12 The real vehicle trajectory labels obtained by manual annotation are used in the experiments in the embodiments of the present invention.

[0066] Fig.13 This is a schematic diagram of the original time series signal data of some channels that are not processed when a weak signal is experimentally obtained in an embodiment of the present invention.

[0067] Fig.14 For the experiment in the present invention-embodiment Fig.13 Schematic diagram of time series signal data after local windowing.

[0068] Fig.15 For the present invention-embodiment experiment Fig.13 The speed results estimated by cross-correlation delay under the original time series signal data.

[0069] Fig.16 For the present invention-embodiment experiment Fig.14 Velocity results estimated by cross-correlation delay under processed time series signal data.

[0070] Fig.17 This is the time series signal data of a vehicle passing through 50 channels within 20 seconds obtained by experiment in an embodiment of the present invention after identifying the vehicle trajectory and performing window processing.

[0071] Fig.18 For the experiment in the present invention-embodiment Fig.17 Comparison chart of vehicle speed obtained by continuous speed estimation of processed data and vehicle speed recorded by the on-board GPS device. DETAILED DESCRIPTION

[0072] The present invention is further described below in conjunction with the accompanying drawings and examples. The embodiments of the present invention include but are not limited to the following examples.

[0073] like Figures 1 to 18 As shown, the vehicle trajectory recognition and speed continuous estimation method based on distributed optical fiber sensing includes the following steps:

[0074] S10. Send pulses to the sensing optical fiber pre-laid under the road along the road direction; wherein the sensing optical fiber can utilize the existing communication optical cable laid along the road as a distributed sensing optical fiber, and the existing communication optical cable is usually buried in a trench or placed under the non-motorized vehicle lane or sidewalk on the side of the road; it can also be newly buried in the road according to actual application requirements, such as during road reconstruction or new road construction.

[0075] S20, the DAS system collects and obtains the time series signal of each channel when the vehicle passes through the sensing optical fiber.

[0076] S30, cross-correlate the time series signals of any two channels, find the maximum value of the cross-correlation of the two time series signals and obtain the time difference between the vehicles reaching the two channels.

[0077] S40, calculating the travel speed of the vehicle between the two channels in combination with the channel interval of the system structure.

[0078] Specifically, in S30, a cross-correlation function is used to perform cross-correlation analysis on time series signals of any two channels, and the time delay between the two time series signals is determined by finding the maximum value of the cross-correlation function, thereby obtaining the time difference of the vehicle arriving at the two cross-correlated channels.

[0079] The cross-correlation function is a function used to represent the degree of correlation between the values ​​of two time series at any two different moments. Whether it is a random signal or a known signal, the cross-correlation function can effectively describe the correlation between them.

[0080] The time series signals of the two channels are expressed as:

[0081]

[0082] In the formula, represents the time series of the first channel at time t, represents the time series of the second channel at time t, represents the signal caused by the vehicle in the first channel, Indicates the signal caused by the vehicle in the second channel, represents the time delay between the two channels of the signal caused by the vehicle; and Represents the noise in the detection process. Since noise is random and non-repetitive, it is generally not correlated.

[0083] The cross-correlation between the time series signals of two channels is expressed as:

[0084]

[0085] In the formula, R L represents the cross-correlation function, E represents the expected value, Indicates time delay;

[0086] After substituting x1 and x2, we get:

[0087]

[0088] The signal and noise are generally uncorrelated, that is, s1 and s2 are uncorrelated with n1 and n2 respectively, then we can get:

[0089]

[0090] Since noise is random and non-repetitive, noise is generally uncorrelated with each other, that is, n1 and n2 are uncorrelated with each other, then:

[0091]

[0092] In the formula, represents the cross-correlation function between the vehicle signals s1 and s2 of the two channels, represents the cross-correlation function between noise n1 and n2. From the characteristics of the cross-correlation function, we can see that when hour, Get the maximum value, that is, the cross-correlation function The time point corresponding to the maximum value of is the time delay point.

[0093] Therefore, by analyzing the time series and By performing cross-correlation and finding the maximum value of the cross-correlation function, the time delay between the two channels can be obtained. , thus obtaining the time difference of vehicle arrival at the two mutually correlated channels.

[0094] Specifically, in S40, the interval d between two adjacent channels is obtained according to the structure of the DAS system, and the spatial span between the two mutually correlated channels is determined according to the interval number m of the two mutually correlated channels. , expressed as: ;

[0095] Combine the time difference of the two channels of vehicle arrival cross-correlation , the vehicle's speed v between the two channels is calculated and expressed as: .

[0096] Specifically, in S20, when the signal collected by the DAS system can be directly and completely identified, the time series signal of each channel detected when the vehicle passes through the sensing optical fiber is directly obtained. The signal collected by the DAS system can be directly and completely identified means that the vehicle trajectory in the spatiotemporal waterfall diagram collected by the DAS system can be completely identified.

[0097] On the other hand, the quasi-static signal generated by the DAS system is weak when facing small, low-speed vehicles far away from the optical cable, coupled with the uneven soil coupling of the existing communication optical cable and the interference of system and environmental noise, resulting in significant fluctuations and unevenness in the signal strength in the time-space diagram. The present invention also proposes a further solution to solve the problem of complete extraction of vehicle trajectories in the case of weak and discontinuous DAS signals.

[0098] In this regard, in S20, when the signal collected by the DAS system cannot be completely identified, it indicates that the signal is weak or unstable. First, a spatiotemporal waterfall diagram containing the vehicle to be tested is obtained, and then the vehicle trajectory in the spatiotemporal waterfall diagram is identified, extracted and trained using the generative adversarial network GANs based on the improved model MCPix2pix to restore the vehicle trajectory to its original state. Local windowing is then performed on each channel of the obtained complete vehicle trajectory to remove noise interference, and the time series signal of each channel when the vehicle passes through the sensing optical fiber is obtained.

[0099] Specifically, the process of using the generative adversarial network GANs based on the improved model MCPix2pix to identify, extract and train the vehicle trajectory in the spatiotemporal waterfall diagram to restore the complete vehicle trajectory is as follows:

[0100] Extracting a quasi-static signal containing vehicle position information from the acquired spatiotemporal waterfall diagram, which contains continuous and discontinuous regions of the vehicle trajectory;

[0101] Use the trained generative adversarial network GANs based on the improved model MCPix2pix to complete and restore the discontinuous areas of the vehicle trajectory according to the continuous areas of the vehicle trajectory, and finally obtain the complete vehicle trajectory.

[0102] The training process of the generative adversarial network GANs based on the improved model MCPix2pix includes:

[0103] Data collection and preprocessing: The vehicle quasi-static signal data is collected through the DAS system, and the data is preprocessed, including filtering with a Butterworth filter to extract the DAS vehicle quasi-static signal in the 0.1Hz-1Hz frequency band, which contains the vehicle position information. A single channel is downsampled 10 times from 250Hz to 25Hz to extract the quasi-static signal containing the vehicle position information and reduce the amount of model calculation.

[0104] Dataset construction: A dataset is constructed from preprocessed data, which includes continuous and discontinuous areas of vehicle trajectories, and the dataset is divided into training, validation and test sets. The process of constructing the dataset also includes steps such as label making, manual annotation, expansion processing and window setting. Label making is to prepare labels using the amplitude contrast between vehicle signals and background energy, manual annotation is to use the labelimg tool to manually annotate the vehicle signal position on the ultra-long space-time graph, expansion processing is to include the quasi-static signal of the DAS vehicle in the expanded trajectory range to form a trajectory mask, and window setting is to set the window width to 108 channels in the spatial dimension, and the time window is selected to be 40 seconds to obtain window data.

[0105] Model architecture: The Pix2pix deep learning model is selected as the basic architecture, and the feature extractor Multiscale context extractor of multiscale context hole convolution is introduced to form an improved model MCPix2pix (Multiscalecontext-Pix2pix) to improve the model's ability to focus on the global visual field structure. Compared with traditional large-size convolutions, hole convolutions provide a larger receptive field without increasing the amount of calculation. At the same time, due to the large differences in the position, speed and weight of the vehicle from the optical cable in practice, the signal distribution on the DAS space-time diagram varies a lot, so fixed-size convolutions are difficult to adapt to all situations. In order to solve this problem, the feature extractor of multiscale context hole convolution introduced in the present invention effectively copes with the diversity of signal distribution by adopting hole convolutions of multiple scales, thereby comprehensively capturing the multi-scale characteristics of DAS vehicle signals without increasing the computational complexity.

[0106] Then, the loss of the discriminator is reconstructed according to the data characteristics of the quasi-static signal of the DAS vehicle, including Gaussian filter smoothing and multi-level constructed losses, to reduce the difference between the image and the true value and improve the accuracy of vehicle trajectory recognition.

[0107] Model training: Use the training set to train the improved model MCPix2pix. The specific training content includes:

[0108] Generator training: Continuously generate vehicle trajectories based on data distribution to make the generated trajectory distribution close to the real distribution.

[0109] Discriminator training: Evaluate the authenticity of input samples by learning the statistical characteristics of the data and provide training feedback to help guide the optimization of the generator.

[0110] Multi-scale loss recording: Loss is set at each scale, recorded as a multi-scale map to maintain the constraint on the original resolution.

[0111] Iterative training process: Through continuous iterative training, the generator learns how to generate trajectories better, while the discriminator continuously improves its discrimination ability.

[0112] During the training process, the generator is responsible for generating vehicle trajectories similar to real data, and the discriminator is responsible for evaluating the authenticity of the generated vehicle trajectories. Through continuous iteration, the distribution of vehicle trajectories generated by the generator gradually approaches the real distribution; the ultimate goal is to make the trajectories generated by the generator visually and statistically difficult to distinguish from the real trajectories.

[0113] Model evaluation and optimization: Use the validation set to evaluate the trained model and adjust model parameters or optimize the model architecture based on the evaluation results.

[0114] Model testing: Use the trained model to process the test set or newly collected data to extract the vehicle's spatiotemporal trajectory. For discontinuous areas of the vehicle's trajectory, the model completes and restores them based on the learned data distribution characteristics.

[0115] Result verification and application: Verify the extracted and restored vehicle trajectories to ensure their accuracy and reliability. Apply the model to practical scenarios such as traffic monitoring, vehicle tracking, etc.

[0116] More specifically, the construction process of the improved model MCPix2pix architecture includes:

[0117] For the feature extractor of multi-scale contextual atrous convolution, the multi-scale contextual information of the convolution target is expanded to de-associate the previous and next information to integrate the contextual information of targets at different scales; then the convolution layers corresponding to different convolutions are obtained, and the feature maps obtained from different convolution layers are fused. The fused feature maps contain the multi-scale contextual information of the target in the previous feature map and the features of the target itself, so as to extract the previous and next spatiotemporal information of an information point. The structure is defined as a feature extractor of multi-scale contextual atrous convolution, where the expansion scale of the convolution starts from scale=2, including ordinary convolution with a convolution kernel of 3, and dilated convolution with a kernel size of 3 and dilated convolution rates of 1, 2, and 3 respectively; after multiple parallel convolution operations, the input feature maps will be spliced ​​together through the concatenation operation Concat, and then multi-scale contextual feature fusion is performed through ordinary convolution with a convolution kernel size of 1, and finally a multi-scale contextual feature fusion map is obtained.

[0118] At level = n, the operation or processing process Mn from input x to output y is expressed as:

[0119]

[0120] In the formula, level=n represents the level or scale of the current processing, n is the index of the level; Mn represents the operation or processing process performed at the nth level, which is used to convert from input x to output y; y represents the output of the Mn process, that is, the feature map obtained after a series of convolution and fusion operations; x represents the input of the Mn process, that is, the output of the previous layer in the network, as the input data of the current level; Represents a convolution operation, using a convolution kernel of size 3×3 to extract spatial features from the input feature map; represents a dilated convolution operation, using a 3×3 convolution kernel and a dilation rate r=n; F c Represents the feature map obtained by ordinary convolution Conv, Represents the feature map obtained by dilated convolution dc with different dilation rates; Represents the splicing operation, which is used to integrate feature information of different scales; Represents a convolution operation, using a convolution kernel of size 1×1 for multi-scale context feature fusion.

[0121] The reconstruction of the discriminator loss includes two parts: the first is to use Gaussian filter to smooth the image; the second is to use the structure of void convolution to construct the loss of each level through multi-level construction.

[0122] At each level, the data is first processed with four Gaussian filters and then processed with the corresponding dilated convolution module. After this process is completed, the current module is Gaussian filtered again and the loss of the module is calculated based on this. This method helps to gradually optimize the loss function in the multi-scale feature extraction process. The number of loss layers in the construction of the improved model MCPix2pix needs to be consistent with the number of dilated convolution layers required, so the loss needs to be reconstructed for each scale; the loss is set at each scale, and the loss of each scale is recorded as S i , i=1,2,3……, where S i It is composed of input image, true value and noise, expressed as:

[0123]

[0124] In the formula, x is the input, y is the true value, z is the random noise, and M i represents the feature extractor of multi-scale contextual atrous convolution, F G represents a Gaussian filter, G represents a generator, Represents the operator for finding the mean loss; when i>1, the image is no longer filtered by Gaussian, and the scale loss is expressed as:

[0125]

[0126] Even if the generated image cannot be made highly consistent with the true value at the first scale, it can still be made close to the true value at a higher scale with the extracted contextual information.

[0127] Thus, the multi-scale loss record is expressed as:

[0128]

[0129] In the formula, represents the weight of the i-th scale.

[0130] Fighting Losses It can be consistent with the basic architecture and expressed as:

[0131]

[0132] The generator G tries to minimize this function, while the discriminator D tries to maximize it.

[0133] In order to maintain the constraint on the original resolution, the L1 loss is still kept consistent with the base architecture, expressed as:

[0134]

[0135] At this point, the overall objective function of the model is expressed as:

[0136]

[0137] In the formula, G * represents the final generator model, that is, the optimal generator, G represents the generator, D represents the discriminator, Represents resistance to loss, represents multi-scale context loss, L1 represents L1 loss, also known as absolute difference loss, Represents the weight parameter used to balance the L1 loss in the total loss function.

[0138] Furthermore, the vehicle trajectory is extracted from the quasi-static signal spatiotemporal graph by generative adversarial networks (GANs), but there is still the problem of not being able to effectively isolate the noise outside the vehicle trajectory. When the vehicle signal in the selected channel is interfered by strong noise signals or even completely submerged by noise, it may be challenging to locate the maximum value of the cross-correlation function for accurate delay estimation, which may make it impossible to accurately estimate the speed of the passing vehicle.

[0139] In this regard, after using the generative adversarial network GANs to obtain the vehicle trajectory in the quasi-static signal space-time diagram, the present invention also adopts a method of local windowing processing on the vehicle signal position of each channel on the vehicle trajectory to reduce noise interference, thereby optimizing the estimation accuracy of the time delay and speed, and providing a more reliable data basis for vehicle speed estimation.

[0140] Specifically, the process of performing local windowing processing on each channel of the obtained complete vehicle trajectory is as follows:

[0141] A Tukey window is applied to the vehicle signal position of each channel of the vehicle trajectory to isolate the influence of noise interference and the interference fading of the DAS system itself, which is expressed as:

[0142]

[0143] In the formula, represents the value of the window function of the Tukey window, Represents the value of the original sequence, that is, the time series signal of a channel without windowing. Represents the sequence value output after local windowing processing;

[0144] The window function of the Tukey window is expressed as:

[0145]

[0146] In the formula, a It is the independent variable in the window function, which is used to indicate the position of the sample point in the window function. Its value is between 0 and 1. The parameter b is the ratio of the length of the cosine cone part to the length of the entire window. .

[0147] The Tukey window is a superposition of a rectangular window and two cosine windows. The cosine function is used to smoothly transition to zero at the beginning and end of the window, while the middle part maintains the flat characteristics of the rectangular window. This construction can not only retain the core information of the vehicle signal, but also ensure a smooth transition of the signal at both ends, reducing the distortion caused by signal truncation.

[0148] Preferably, in the present invention, the width of the rectangular window is configured as vehicle signal duration×system sampling rate, and the cosine parameter of the cosine window is configured as b=0.5.

[0149] The effectiveness of the method of the present invention is verified by the following experiments.

[0150] The experimental environment was selected from a road on the campus of Sichuan University. The communication optical fiber laid under the non-motorized vehicle lane of the road was used as the sensing optical fiber. The communication optical cable was parallel to the road, and the distributed optical acoustic sensor (DAS) equipment was deployed to access the communication optical fiber, with a total length of 1.3 km. During data collection, 250 Hz was set as the time sampling rate, 3.2 m as the spatial sampling interval, and 3.2 m as the gauge length.

[0151] The DAS system used in the experiment is a phase-sensitive optical time domain reflectometer (DART) based on distributed measurement technology using optical fiber sensing. ), the structure is as follows Figure 4 shown. It is a heterodyne coherent detection technology. A 1550nm narrow linewidth laser (NLL) generates a continuous laser. After the continuous laser passes through a coupler, it is divided into a probe light and a local oscillator light. The probe light accounts for 90% and is transmitted to an acousto-optic modulator (AOM), and the local oscillator light accounts for 10% and is transmitted to a balanced photodetector (BPD) as a local reference signal. An arbitrary waveform generator (AWG) is used to generate a single-frequency pulse. Subsequently, the pulse-modulated acousto-optic modulator (AOM) is used to generate a probe light pulse with a frequency shift of 200 MHz. These optical pulses are amplified by an erbium-doped fiber amplifier (EDFA) and injected into the fiber under test (FUT) through port 1, while the other end of the FUT is connected to port 2. The Rayleigh backscattered light (RBS) returned from the FUT is output through port 3 through a circulator, and then enters the balanced photodetector (BPD) together with the local oscillator light for coherent detection and photoelectric conversion. The electrical signal output from the BPD is displayed and analyzed by an oscilloscope to observe the signal and analyze the measurement results.

[0152] The experiment uses a self-owned car as the experimental vehicle, and a global positioning system GPS device is installed in the car to record the vehicle speed in real time. These speed data will be used as a reference for the actual vehicle speed and compared with the experimental results obtained by the speed measurement scheme of the present invention. The GPS device is set to record data every two seconds to track the changes in vehicle speed more carefully. The overall experimental vehicle speed is controlled within a relatively low safety range to ensure the safety of the experimental process.

[0153] The DAS system uses backward Rayleigh scattered light to collect the original vibration signal of the vehicle. If the vehicle signal is strong, the trajectory is identified and the speed of the moving vehicle is estimated directly by the cross-correlation delay. When the vehicle signal is weak, the trajectory is identified through the model, and then each channel of the identified trajectory is locally windowed, and then the speed of the moving vehicle is estimated by the cross-correlation delay through the processed signal.

[0154] like Figures 9 to 12 As shown, Fig. 9 This is part of the original image data collected by the DAS system. It can be seen that the front part of the dark fiber has a good coupling with the soil, the front part of the vehicle signal is stronger than the rear part, and the traffic flow is relatively dense. Fig.12 The actual vehicle trajectory label obtained by manual annotation in the original image processing is used as the standard. Fig.10 The image is obtained by using the Pix2pix model to identify the vehicle trajectory and is used as a control. Fig.11This is an image after the vehicle trajectory is recognized by the improved model MCPix2pix of the present invention. The part with a dotted circle is the vehicle trajectory when the vehicle signal is weak or the part that needs trajectory recovery. It can be seen that the output image of the present invention is closer to the real label, that is, the present invention has a greater improvement in vehicle trajectory extraction and discontinuous area recovery in complex traffic conditions compared to the model before the improvement.

[0155] like Figures 13 to 16 As shown, it can be seen intuitively that, compared with directly using raw data for speed estimation, the method proposed in the present invention has significant advantages in vehicle speed measurement under weak signals, and effectively improves the speed measurement accuracy. Fig.13 The figure shows the unprocessed original time series signal data of the 8th to 17th channels in the vehicle trajectory when the signal is weak. Due to the weak signal of the light vehicle and the strong noise interference around the road section, the trajectory of a vehicle traveling in the dotted box cannot be clearly seen. Fig.15 For Fig.13 The speed estimation results of the cross-correlation delay estimation of the 8th channel and the 17th channel under the original data of , it can be clearly seen that there is a large gap between the estimated speed represented by the dots and the actual speed recorded by the GPS device represented by the stars. Fig.13 The original time series signal data in the local window is refined and processed to obtain Fig.14 The data shown in Figure 1 isolates most of the noise, and we can clearly see the trajectory of a vehicle in the dashed box. Based on this data, the speed estimation result of the cross-correlation delay estimation of the 8th channel and the 17th channel is as follows: Fig.16 As shown, it can be seen that the estimated speed at this time is basically consistent with the actual speed recorded by the GPS device represented by the star, which verifies the effectiveness of the method of the present invention in improving the accuracy of vehicle speed measurement.

[0156] like Fig.17 The figure shows the multi-channel time series signal data after the signal acquired by the DAS system is processed using the method of the present invention (including identification of vehicle trajectory and windowing processing, etc.), showing the data of a vehicle passing through 50 channels within 20 seconds. It can be seen that after eliminating noise interference, the vehicle trajectory is obvious. Fig.18 Shown is the use of Fig.17 The continuous speed of the vehicle is estimated by using the cross-correlation delay estimation between each two adjacent channels, which reflects the fluctuation of the vehicle's driving speed when it passes through 50 channels within 20 seconds, and is compared with the vehicle's driving speed recorded by the on-board GPS device. It can be seen that the error between the estimated speed and the vehicle's driving speed recorded by the on-board device is very small, and the vehicle speed can be tracked more accurately.

[0157] The above embodiments are only preferred embodiments of the present invention and are not intended to limit the protection scope of the present invention. Any changes made by adopting the design principles of the present invention and performing non-creative work on this basis should fall within the protection scope of the present invention.

Claims

1. A vehicle trajectory recognition and speed continuous estimation method based on distributed optical fiber sensing, characterized in that: The following steps are involved: S10, sending pulses to a sensing optical fiber pre-laid under the road along the direction of the road; S20, the DAS system collects and obtains the time series signal of each channel when the vehicle passes through the sensing optical fiber; S30, cross-correlating the time series signals of any two channels, finding the maximum value of the cross-correlation of the two time series signals to obtain the time difference between the vehicles arriving at the two channels; S40, calculating the travel speed of the vehicle between the two channels in combination with the channel interval of the DAS system structure; In the S20, when the signal collected by the DAS system cannot be completely identified, it indicates that the signal is weak or unstable. First, a spatiotemporal waterfall diagram containing the vehicle to be tested is obtained, and then the vehicle trajectory in the spatiotemporal waterfall diagram is identified, extracted and trained using the generative adversarial network GANs based on the improved model MCPix2pix to restore the vehicle trajectory to its original state. Then, each channel of the obtained complete vehicle trajectory is locally windowed to remove noise interference, and a time series signal of each channel when the vehicle passes through the sensing optical fiber is obtained; The process of using the generative adversarial network GANs based on the improved model MCPix2pix to identify, extract and train the vehicle trajectory in the spatiotemporal waterfall diagram to restore the vehicle trajectory is as follows: Extracting a quasi-static signal containing vehicle position information from the acquired spatiotemporal waterfall diagram, which contains continuous and discontinuous regions of the vehicle trajectory; Use the trained generative adversarial network GANs based on the improved model MCPix2pix to complete and restore the discontinuous areas of the vehicle trajectory according to the continuous areas of the vehicle trajectory, and finally obtain the complete vehicle trajectory; The training process of the generative adversarial network GANs based on the improved model MCPix2pix includes: Data collection and preprocessing: Collect vehicle quasi-static signal data through the DAS system, preprocess the data, and extract the DAS vehicle quasi-static signal in the 0.1Hz-1Hz frequency band, which contains the vehicle position information; Construction of the data set: A data set is constructed from the preprocessed data, which includes the continuous and discontinuous areas of the vehicle trajectory. The actual position of the vehicle signal is annotated using the labelimg tool. After the annotation is completed, the coordinates of the matrix corresponding to the area where the curve passes are set to 1, and the background is set to 0. The signal is wrapped in the trajectory mask through dilation processing, and the data set is divided into training set, validation set and test set; Model architecture: The Pix2pix deep learning model is selected as the basic architecture, and the feature extractor of multi-scale contextual dilated convolution is introduced to form an improved model MCPix2pix to improve the model's ability to focus on the global visual structure; the discriminator loss is reconstructed according to the data characteristics of the DAS vehicle quasi-static signal, including Gaussian filter smoothing and multi-level constructed losses to reduce the difference between the image and the true value and improve the accuracy of vehicle trajectory recognition; Model training: The improved model MCPix2pix is ​​trained using the training set. During the training process, the generator is responsible for generating vehicle trajectories similar to real data, and the discriminator is responsible for evaluating the authenticity of the generated vehicle trajectories. Through continuous iteration, the distribution of vehicle trajectories generated by the generator gradually approaches the real distribution. Model evaluation and optimization: Use the validation set to evaluate the trained model, and adjust model parameters or optimize the model architecture based on the evaluation results; Model testing: Use the trained model to process the test set or newly collected data to extract the spatiotemporal trajectory of the vehicle. For discontinuous areas of the vehicle trajectory, the model completes and restores them based on the learned data distribution characteristics. The construction process of the improved model MCPix2pix architecture includes: The structure of the feature extractor is defined as a multi-scale contextual atrous convolution, where the dilation scale of the convolution starts from scale=2, including ordinary convolution with a convolution kernel of 3, and dilated convolution with a kernel size of 3 and dilated convolution rates of 1, 2, and 3 respectively; after multiple parallel convolution operations, the input feature maps are concatenated together through the concatenation operation Concat, and then multi-scale contextual feature fusion is performed through ordinary convolution with a convolution kernel size of 1, and finally a multi-scale contextual feature fusion map is obtained; Reconstructing the loss of the discriminator includes using a Gaussian filter to smooth the image, and using the structure of the dilated convolution to construct the losses of each level through multi-level construction; the number of layers of the constructed loss is consistent with the number of layers of the dilated convolution used, and the loss is reconstructed for each scale; The overall objective function of the model is expressed as: In the formula, G * represents the final generator model, G represents the generator, D represents the discriminator, Represents resistance to loss, represents the multi-scale context information loss, L1 represents the L1 loss, also known as the absolute difference loss, Represents the weight parameter used to balance the L1 loss in the total loss function.

2. The vehicle trajectory recognition and speed continuous estimation method based on distributed optical fiber sensing according to claim 1 is characterized in that: In S30, a cross-correlation function is used to perform cross-correlation analysis on the time series signals of any two channels, and the time delay between the two time series signals is determined by finding the maximum value of the cross-correlation function, thereby obtaining the time difference between the vehicle arriving at the two cross-correlated channels.

3. The vehicle trajectory recognition and speed continuous estimation method based on distributed optical fiber sensing according to claim 2 is characterized in that: In S40, the interval between two adjacent channels is obtained according to the structure of the DAS system, and the spatial span between the two mutually related channels is determined according to the number of intervals between the two mutually related channels. The travel speed of the vehicle between the two channels is calculated in combination with the time difference between the vehicle arriving at the two mutually related channels.

4. The vehicle trajectory recognition and speed continuous estimation method based on distributed optical fiber sensing according to any one of claims 1 to 3, characterized in that: In S20, when the signal collected by the DAS system can be directly and completely recognized, the time series signal of each channel detected when the vehicle passes through the sensing optical fiber is directly obtained.

5. The vehicle trajectory recognition and speed continuous estimation method based on distributed optical fiber sensing according to any one of claims 1 to 3, characterized in that: The process of performing local windowing processing on each channel of the obtained complete vehicle trajectory is as follows: A Tukey window is applied to the vehicle signal position of each channel of the vehicle trajectory to isolate the influence of noise interference and the interference fading of the DAS system itself, which is expressed as: In the formula, represents the value of the window function of the Tukey window, Represents the value of the original sequence, that is, the time series signal of a channel without windowing. Represents the sequence value output after local windowing processing; The window function of the Tukey window is expressed as: In the formula, It is the independent variable in the window function, which is used to indicate the position of the sample point in the window function. Its value is between 0 and 1. The parameter b is the ratio of the length of the cosine cone part to the length of the entire window. .