A method for identifying weather conditions at bridge sites based on vehicle shadow recognition
Through the dual deep learning method based on vehicle shadow recognition, the problem of temperature effect and solar radiation observation in the bridge structure is solved, the identification of weather conditions at the bridge site and the mastery of temperature lag time rules are achieved, and the accuracy of bridge health monitoring is improved. .
Patent Information
- Application Number
- CN202410067686.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-17
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-01-17
AI Technical Summary
In bridge structural health monitoring, temperature effect interference is difficult to peel off, causing structural damage characteristic indicators to be submerged, and solar radiation is difficult to observe, making it impossible to identify the weather conditions at the bridge site, which affects the control of temperature lag time.
A dual deep learning method based on vehicle shadow recognition is used to identify vehicle shadows through traffic video data, calculate the sun's incident angle, track the shadow position, and establish a mapping relationship between shadow status and weather conditions to realize the identification of different weather conditions.
Effectively identify the weather conditions at the bridge site, grasp the temperature lag changes under different weather conditions, lay the foundation for the accurate stripping of temperature effects, and improve the accuracy of structural health monitoring.
Smart Images

Figure CN117746356B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of bridge structure health monitoring, and in particular to a method for identifying weather conditions at a bridge site based on vehicle shadow recognition. Background Art
[0002] In recent years, structural health monitoring (SHM) has been applied to more and more bridges to warn of abnormal structural status patterns and identify possible structural damage. However, due to the influence of temperature loads, bridge SHM still finds it difficult to achieve these goals in engineering applications. Temperature loads act on the bridge structure itself mainly through solar radiation, air convection heat transfer, rainfall cooling, etc. Under its influence, the temperature field of the concrete bridge structure has nonlinear characteristics in spatial distribution, resulting in significant temperature effects. The effect change value can reach the variation amplitude of the structural response under the action of vehicle loads, and the impact on the annual cycle scale is even greater than that of vehicle loads, which causes great interference to the analysis and application of SHM data.
[0003] In order to eliminate the adverse effects of temperature effects, the temperature-induced change components in the monitoring data are generally stripped out through "data standardization". Signal analysis is a more commonly used method, but it is not accurate in stripping out temperature effects under complex weather conditions. Another common method is to establish a regression model of temperature and structural response, and then subtract the regression model prediction results from the original monitoring data. The resulting residual is the structural response data after stripping out the temperature-induced change components. After further stripping out the change components caused by vehicle loads, the residual should theoretically have the statistical characteristics of a Gaussian distribution, and is often used as a characteristic indicator to characterize changes in structural performance.
[0004] Although widely used, the regression method cannot accurately remove the temperature-induced change component in the monitoring data. The fundamental reason is that for actual bridges, the temperature and the structural response changes caused by temperature changes are not synchronized. The structural strain, displacement, frequency, etc. will lag behind the temperature change for a certain period of time, which is the so-called "time lag effect" or "thermal inertia effect". During the regression analysis, if the influence of the thermal lag time is not considered, the regression prediction results will inevitably have a phase difference in the change trend with the structural response monitoring data, resulting in a trend term in the residual characteristics, which will drown out the characteristic index changes caused by structural damage or performance degradation.
[0005] In order to eliminate the adverse effects of the time lag effect, when establishing the regression equation of temperature and structural response, the independent variable (temperature) is usually shifted backward by a certain time. For this reason, it is necessary to accurately grasp the lag time of temperature relative to the structural response. However, the temperature lag time is not constant in different weather conditions, which is related to the different solar radiation borne by the bridge structure under different weather conditions such as sunny, cloudy, and overcast days. Therefore, it is necessary to conduct long-term observations of the solar radiation borne by the bridge structure. However, according to the existing bridge monitoring related specifications, solar radiation is not a mandatory monitoring item, and the cost of radiometers is relatively high, and the corresponding long-term observations are difficult to popularize in conventional bridge SHM. Therefore, under the existing conditions, the solar radiation borne by the bridge cannot be observed, the weather conditions at the bridge site cannot be identified, and the changing laws of the temperature time lag effect under different weather conditions cannot be grasped. Summary of the invention
[0006] In view of the problems that solar radiation is difficult to observe and weather conditions at bridge sites cannot be identified, the present invention designs a method for identifying weather conditions at bridge sites based on vehicle shadow recognition. Vehicle shadow recognition is performed based on dual deep learning, and the shadow position is tracked by calculating the solar incident angle to address the problem that vehicle shadow positions are different at different times and at different solar incident angles. In addition, different weather conditions can be identified by analyzing vehicle shadow recognition results within a time period and defining a mapping relationship with different weather conditions.
[0007] A method for identifying weather conditions at a bridge site based on vehicle shadow recognition comprises the following steps:
[0008] Step 1: Collect traffic video data at the bridge site from sunrise to sunset;
[0009] Step 2: Identify vehicle targets in traffic video data and select them using target boxes;
[0010] Step 3: Expand the vehicle target frame to accommodate the vehicle shadow at different times;
[0011] Step 4: Identify the vehicle shadow state within the expanded target frame;
[0012] Step 5: Determine the weather conditions at the bridge site based on the vehicle shadow status.
[0013] Preferably, the traffic video data comes from a traffic monitoring camera installed on the bridge, and the camera is installed 4-5 meters above the bridge deck to ensure that the image range of the traffic video covers all lanes on the bridge.
[0014] Furthermore, step 2 includes the following steps:
[0015] Step 2.1: Manually label the vehicles passing on the bridge in the traffic video and determine the pixel coordinates of the vehicle target recognition box;
[0016] Step 2.2: Based on the deep learning model, a neural network model suitable for vehicle target recognition on the bridge is constructed, the model is trained using the labeled data set, and the model is evaluated and parameter tuning is performed;
[0017] Step 2.3: Use the trained deep learning model to identify vehicle targets during the daytime in the unlabeled video and output the pixel coordinates of the vehicle target box.
[0018] Furthermore, step 3 includes the following steps:
[0019] Step 3.1: Determine the solar altitude angle H and azimuth angle A at different times;
[0020] Step 3.2: Based on the pixel coordinates of the original vehicle target frame, the pixel coordinates of the expanded target frame are calculated according to the following formula, so that the expanded vehicle target frame is sufficient to accommodate the vehicle shadow at different times:
[0021] Δh=Y u -Y d ; Δw=X r -X l
[0022]
[0023]
[0024]
[0025] Where H represents the solar altitude angle, A represents the solar azimuth angle, Δh represents the pixel height of the original vehicle identification frame, Δw represents the pixel width of the original vehicle identification frame, ΔX represents the number of pixels expanded in the width direction of the vehicle identification frame, ΔY represents the number of pixels expanded in the height direction of the vehicle identification frame, R represents the clockwise angle between the projection of the camera optical axis on the ground plane and the true north direction, X represents the angle between the camera optical axis and the true north direction, and l ,Y u ,X r ,Y d Respectively represent the horizontal coordinate of the upper left corner pixel, the vertical coordinate of the upper left corner pixel, the horizontal coordinate of the lower right corner pixel, and the vertical coordinate of the lower right corner pixel of the original vehicle identification frame; X ls ,Y us ,X rs ,Y ds They represent the horizontal coordinate of the upper left pixel, the vertical coordinate of the upper left pixel, the horizontal coordinate of the lower right pixel, and the vertical coordinate of the lower right pixel of the expanded vehicle identification box respectively.
[0026] Furthermore, step 4 includes the following steps:
[0027] Step 4.1: Capture images according to the pixel coordinates of the expanded vehicle target frame, manually annotate the presence or absence of vehicle shadows in each image, and construct a data set for training the shadow image classification model. The training data set includes two categories: images with vehicle shadows and images without vehicle shadows.
[0028] Step 4.2: Build a deep learning model for vehicle shadow image classification based on convolutional neural network, train the model using the labeled dataset, evaluate the model and tune its parameters;
[0029] Step 4.3: For vehicle target frame images outside the dataset, use the trained deep learning model to identify the existence of vehicle shadows.
[0030] Furthermore, step 5 includes the following steps:
[0031] Step 5.1: Analyze the vehicle shadow state recognition results within a fixed period of time;
[0032] Step 5.2: Establish a mapping relationship between the vehicle shadow state aggregation result and the weather condition;
[0033] Step 5.3: Identify the weather conditions at the bridge site during a fixed time period.
[0034] Preferably, the fixed time period takes a time window of 1 hour in length.
[0035] Furthermore, step 5.1 counts the classification results of the shadow states of all vehicle target frame images within the time window, and calculates the proportion of vehicle shadow images in all images.
[0036] Further preferably, weather conditions are divided into three categories: sunny, cloudy and overcast, and the weather conditions are judged based on the proportion P of vehicle shadow pictures in all pictures: when P is less than a1, the weather is judged to be sunny; when a1≤P≤a2, the weather is judged to be cloudy; when P>a2, the weather is judged to be overcast, wherein a1 represents the sunny threshold and a2 represents the overcast threshold.
[0037] Preferably, a1=1 / 2, a2=9 / 10.
[0038] Compared with the prior art, the present invention has the following beneficial effects:
[0039] In view of the problems that solar radiation is difficult to observe and weather conditions at bridge sites cannot be identified, the present invention designs a method for identifying weather conditions at bridge sites based on vehicle shadow recognition. Vehicle shadow recognition is performed based on dual deep learning, and the shadow position is tracked by calculating the solar incident angle to address the problem that vehicle shadow positions are different at different times and at different solar incident angles. In addition, different weather conditions can be identified by analyzing vehicle shadow recognition results within a time period and defining a mapping relationship with different weather conditions.
[0040] The present invention utilizes the industrial cameras widely deployed on the bridge structure to identify the shadow state of vehicles at different times and different sun incidence angles from the collected traffic videos, and based on this, can effectively identify the three weather conditions of sunny, cloudy and overcast at the location of the bridge. In this way, the problem of difficulty in judging the weather conditions at the bridge site due to the seldom installation of bridge sunshine radiometers can be solved, and the time law of the relative temperature lag change of the structural response under different weather conditions can be grasped, laying the foundation for the effective stripping of the temperature effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 It is a flow chart of the weather condition identification method at the bridge site based on vehicle shadow identification of the present invention;
[0042] Figure 2 It is a photograph of a vehicle in the form of identification in the traffic video of the present invention;
[0043] Figure 3 The vehicle target recognition frame of the present invention is expanded by taking the sun's incident angle into consideration;
[0044] Figure 4 It is the recognition result of the vehicle shadow state of the present invention. DETAILED DESCRIPTION
[0045] The following is a detailed description of a method for identifying weather conditions at a bridge site based on vehicle shadow recognition according to the present invention in conjunction with the accompanying drawings and specific implementation methods.
[0046] The present invention utilizes the industrial cameras widely deployed on the bridge structure to identify the shadow state of vehicles at different times and different sun incidence angles from the collected traffic videos, and on this basis can effectively identify the three weather conditions of sunny, cloudy and overcast at the location of the bridge. In this way, the problem of difficulty in judging the weather conditions at the bridge site due to the seldom installation of bridge sunshine radiometers can be solved, and then it can be used to grasp the time law of the relative temperature lag change of the structural response under different weather conditions, laying the foundation for the effective stripping of the temperature effect. The present invention can actually characterize the weather conditions at the bridge site within a certain period of time through the shadow state of the vehicles on the bridge, and the industrial cameras widely deployed in the bridge can also provide a data basis for the implementation of this method.
[0047] like Figure 1 As shown, the specific implementation process of the present invention is as follows:
[0048] Step 1: Collect traffic video monitoring data.
[0049] Traffic monitoring cameras installed on the bridge are used to obtain traffic video data from sunrise to sunset. The image range of the traffic video should be able to cover all lanes on the bridge. For this reason, the camera should be installed 4 to 5 meters above the bridge deck.
[0050] Step 2: If Figure 2 As shown, the vehicle target box on the bridge is identified.
[0051] (1) Construction of vehicle target recognition dataset. Manually annotate the vehicles passing on the bridge in the traffic video and determine the pixel coordinates [X1, Y u , X r , Y d ], where X1, Y u , X r , Y d They respectively represent the horizontal coordinate of the upper left pixel, the vertical coordinate of the upper left pixel, the horizontal coordinate of the lower right pixel, and the vertical coordinate of the lower right pixel in the vehicle target detection box, and construct a data set for training the deep neural network model.
[0052] (2) Construction of deep learning model for vehicle identification. Based on general deep learning models such as YOLOv4 and SSD, a neural network model suitable for vehicle target identification on bridges is constructed. The model is trained using labeled data sets, and the model is evaluated and parameter tuning is performed.
[0053] (3) Vehicle target recognition on the bridge. Use the trained deep learning model to identify vehicle targets during the daytime in unlabeled videos and output the pixel coordinates of the vehicle target box.
[0054] Step 3: If Figure 3 As shown, the vehicle target frame is expanded.
[0055] (1) Calculation of solar incidence angle. To ensure that the shadow of the vehicle is within the target frame output by the vehicle recognition model at different times and different solar incidence angles, the solar altitude angle H and solar azimuth angle A at different times are first calculated. There are mature calculation methods in relevant literature and specifications, which will not be described in detail in this invention. At the same time, the clockwise angle between the projection of the camera optical axis on the ground plane and the true north direction (i.e., the camera line of sight direction angle) should be determined.
[0056] (2) Vehicle target frame expansion. After determining the solar altitude angle and azimuth at different times, the pixel coordinates of the expanded target frame are calculated based on the pixel coordinates of the original vehicle target frame according to the following formula, so that the expanded vehicle target frame can accommodate the vehicle shadow at different times.
[0057] Δh=Y u -Y d ; Δw=X r -X l
[0058]
[0059]
[0060]
[0061] Where H represents the solar altitude angle, A represents the solar azimuth angle, Δh represents the pixel height of the original vehicle identification frame, Aw represents the pixel width of the original vehicle identification frame, ΔX represents the number of pixels expanded in the width direction of the vehicle identification frame, ΔY represents the number of pixels expanded in the height direction of the vehicle identification frame, R represents the clockwise angle between the projection of the camera optical axis on the ground plane and the true north direction, X represents the angle between the camera optical axis and the true north direction, and l , Y u , X r , Y d Respectively represent the horizontal coordinate of the upper left corner pixel, the vertical coordinate of the upper left corner pixel, the horizontal coordinate of the lower right corner pixel, and the vertical coordinate of the lower right corner pixel of the original vehicle identification frame; X ls , Y us , X rs , Y ds They represent the horizontal coordinate of the upper left pixel, the vertical coordinate of the upper left pixel, the horizontal coordinate of the lower right pixel, and the vertical coordinate of the lower right pixel of the expanded vehicle identification box respectively.
[0062] Step 4: Figure 4 As shown, the shadow of the vehicle on the bridge is identified.
[0063] (1) Construction of a vehicle shadow recognition dataset. Images are captured according to the pixel coordinates of the expanded vehicle target frame, and the presence or absence of vehicle shadows in each image is manually annotated to construct a dataset for training the shadow image classification model. The training dataset includes two categories: images of vehicles with shadows and images without shadows.
[0064] (2) Construction of a deep learning model for vehicle shadow recognition. A deep learning model for vehicle shadow image classification is constructed based on a convolutional neural network. The model is trained using annotated datasets, and the model is evaluated and its parameters are optimized.
[0065] The input image is classified through the trained model to obtain the image classification result.
[0066] (3) Vehicle shadow image classification: For vehicle target frame images outside the dataset, the trained deep learning model is used to identify the existence of vehicle shadows.
[0067] Step 5: Identify weather conditions at the bridge site.
[0068] (1) Analysis of vehicle shadow status recognition results within a fixed time period. Taking a 1-hour time window as the time window, the classification results of the shadow status of all vehicle target frame images within the time window are counted, and the proportion of vehicle shadow images in all images is calculated.
[0069] (2) Establish the mapping relationship between the aggregation results of vehicle shadow states and weather conditions. Referring to GB / T 35663-2107 "Basic Terms of Weather Forecast", weather conditions are divided into three categories: sunny, cloudy and overcast. The corresponding relationship between weather conditions and the proportion of vehicle shadow images is defined in the following table:
[0070] Table 1 Weather condition definitions
[0071]
[0072] (3) Identification of weather conditions at the bridge site within a fixed time period. According to the above table, the weather conditions are classified by the proportion of vehicle shadow images within each hour, and the three weather conditions of sunny, cloudy and overcast at different times at the bridge site can be identified.
[0073] The above embodiments are only for illustrating the technical concept and features of the present invention, and their purpose is to enable people familiar with the technology to understand the content of the present invention and implement it accordingly, and they cannot be used to limit the protection scope of the present invention. Any equivalent changes or modifications made according to the spirit of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for identifying weather conditions at a bridge site based on vehicle shadow recognition, characterized in that: The steps include: Step 1: Collect traffic video data at the bridge site from sunrise to sunset; Step 2: Identify vehicle targets in traffic video data and select them using target boxes; Step 3: Expand the vehicle target frame to accommodate the vehicle shadow at different times; Step 4: Identify the vehicle shadow state within the expanded target frame; Step 5: Determine the weather conditions at the bridge site based on the vehicle shadow state; Wherein, step 3 comprises the following steps: Step 3.1: Determine the solar altitude angle H and azimuth angle A at different times; Step 3.2: Based on the pixel coordinates of the original vehicle target frame, the pixel coordinates of the expanded target frame are calculated according to the following formula, so that the expanded vehicle target frame is sufficient to accommodate the vehicle shadow at different times: Δh=Y u -Y d ;Δw=X r -X l Where H represents the solar altitude angle, A represents the solar azimuth angle, Δh represents the pixel height of the original vehicle identification frame, Δw represents the pixel width of the original vehicle identification frame, ΔX represents the number of pixels expanded in the width direction of the vehicle identification frame, ΔY represents the number of pixels expanded in the height direction of the vehicle identification frame, R represents the clockwise angle between the projection of the camera optical axis on the ground plane and the true north direction, X represents the angle between the camera optical axis and the true north direction, and l ,Y u ,X r ,Y d Respectively represent the horizontal coordinate of the upper left corner pixel, the vertical coordinate of the upper left corner pixel, the horizontal coordinate of the lower right corner pixel, and the vertical coordinate of the lower right corner pixel of the original vehicle identification frame; X ls ,Y us ,X rs ,Y ds They represent the horizontal coordinate of the upper left corner pixel, the vertical coordinate of the upper left corner pixel, the horizontal coordinate of the lower right corner pixel, and the vertical coordinate of the lower right corner pixel of the expanded vehicle identification box respectively; Step 5 includes the following steps: Step 5.1: Analyze the vehicle shadow state recognition results within the preset time window, specifically including: counting the classification results of the shadow states of all vehicle target frame images within the time window, and calculating the proportion of vehicle shadow images in all images; Step 5.2: Establish a mapping relationship between the vehicle shadow state aggregation result and the weather condition; Step 5.3: Identify the weather conditions at the bridge site within the preset time window.
2. The method for identifying weather conditions at a bridge site based on vehicle shadow recognition according to claim 1, characterized in that: Traffic video data comes from traffic monitoring cameras installed on the bridge. The cameras are installed 4 meters above the bridge deck to ensure that the traffic video coverage covers all lanes on the bridge.
3. The method for identifying weather conditions at a bridge site based on vehicle shadow recognition according to claim 1, characterized in that: Step 2 includes the following steps: Step 2.1: Manually label the vehicles passing on the bridge in the traffic video and determine the pixel coordinates of the vehicle target box; Step 2.2: Based on the deep learning model, a neural network model suitable for vehicle target recognition on the bridge is constructed, the model is trained using the labeled data set, and the model is evaluated and parameter tuning is performed; Step 2.3: Use the trained deep learning model to identify vehicle targets during the daytime in the unlabeled video and output the pixel coordinates of the vehicle target box.
4. The method for identifying weather conditions at a bridge site based on vehicle shadow recognition according to claim 3 is characterized in that: Step 4 includes the following steps: Step 4.1: Capture images according to the pixel coordinates of the expanded vehicle target frame, manually annotate the presence or absence of vehicle shadows in each image, and construct a data set for training the shadow image classification model. The training data set includes two categories: images with vehicle shadows and images without vehicle shadows. Step 4.2: Build a deep learning model for vehicle shadow image classification based on convolutional neural network, train the model using the labeled dataset, evaluate the model and tune its parameters; Step 4.3: For vehicle target frame images outside the dataset, use the trained deep learning model to identify the existence of vehicle shadows.
5. The method for identifying weather conditions at a bridge site based on vehicle shadow recognition according to claim 4 is characterized in that: The default time window is 1 hour in length.
6. The method for identifying weather conditions at a bridge site based on vehicle shadow recognition according to claim 5, characterized in that: Weather conditions are divided into three categories: sunny, cloudy and overcast. The weather conditions are judged based on the proportion P of vehicle shadow images in all images: when P is less than a1, the weather is judged to be sunny; when a1≤P≤a2, the weather is judged to be overcast; when P>a2, the weather is judged to be overcast, where a1 represents the sunny threshold and a2 represents the overcast threshold.
7. The method for identifying weather conditions at a bridge site based on vehicle shadow recognition according to claim 6, characterized in that: a1=1 / 2, a2=9 / 10.
Citation Information
Patent Citations
Subregional vehicle bottom shadow detection method based on divergent scanning
CN108846363A
Blind zone transparent display method and system in auxiliary driving, electronic equipment and storage medium
CN116373745A
