Deep learning-based bridge floor runoff real-time monitoring and processing system and method
Patent Information
- Application Number
- CN202510799381.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-16
- Publication Date
- 2025-11-14
- Estimated Expiration
- 2045-06-16
Smart Images

Figure CN120950827A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of bridge deck runoff monitoring technology, and in particular to a real-time bridge deck runoff monitoring and processing system and method based on deep learning. Background Technology
[0002] Bridge runoff monitoring, as an important part of highway environmental protection facilities, mainly serves bridges that cross sensitive water bodies. Its core objective is to detect runoff water quality parameters in real time to trigger electric valves and divert polluted runoff into emergency treatment pools to prevent harmful substances from being directly discharged into the environment.
[0003] A typical system architecture, such as the single-bridge independent control mode adopted in patent CN207484630U, deploys a sensor network and PLC controller independently on each bridge, autonomously deciding on valve opening and closing based on preset thresholds. However, in scenarios where multiple bridges share limited emergency treatment resources, such as a group of urban elevated bridges sharing a centralized treatment station, the valve actions of adjacent bridges lack a coordination mechanism. When bridge A opens its valve due to sudden pollution, the normal runoff of bridges B / C may be misled into the emergency pool, causing the treatment capacity to be squeezed by low-priority water flow. Traditional threshold judgment methods cannot dynamically perceive the global status, such as remaining pool capacity and rainfall intensity, and may cause the treatment system to overload due to simultaneous sewage discharge from multiple bridges. Traditional bridge control systems do not share data, and manual scheduling relies on experience-based decisions, making it difficult to achieve rapid resource allocation in complex events.
[0004] To alleviate the above problems, some solutions have adopted measures such as expanding the emergency pool volume or adding distributed processing units to improve system redundancy (see CN201648961U), but this significantly increases land occupation and construction costs. Other solutions adopt a static priority strategy, such as graded control based on the distance between the bridge and the water source. Although this can reduce the probability of simultaneous sewage discharge, it cannot adapt to a surge in runoff. Summary of the Invention
[0005] In view of the aforementioned existing problems, the present invention is proposed.
[0006] This invention provides a bridge deck runoff real-time monitoring and processing system and method based on deep learning to solve the problems of traditional systems that adopt a single-bridge independent control mode, which have defects such as multi-bridge resource competition, rigid response logic and information isolation, and the inability of hardware expansion and rule optimization schemes to fundamentally solve the contradiction of collaborative control.
[0007] To solve the above-mentioned technical problems, the present invention provides the following technical solution:
[0008] In a first aspect, embodiments of the present invention provide a real-time monitoring and processing system for bridge surface runoff based on deep learning, comprising,
[0009] The bridge deck monitoring unit is deployed at each bridge runoff collection point and includes a pH sensor, an oil sensor, a conductivity sensor, a turbidity sensor, and a video acquisition device.
[0010] The local control module is connected to the bridge deck monitoring unit via an RS485 bus. It has a built-in PLC controller and edge computing chip, which are used to store sensor data and execute local valve control logic.
[0011] The collaborative decision-making module includes a cloud server and an optical fiber communication unit. The cloud server integrates a federated learning model and interacts with each local control module through the optical fiber communication unit to exchange gradient parameters.
[0012] The valve actuator includes an electrically operated two-position three-way ball valve installed on the drainage pipes of each bridge deck, and its drive circuit is electrically connected to the local control module.
[0013] The emergency pool capacity monitoring device includes an ultrasonic level gauge and a flow switch, which collects real-time data on the liquid level and inflow rate of the emergency treatment pool.
[0014] As a preferred embodiment of the bridge surface runoff real-time monitoring and processing system based on deep learning described in this invention, the edge computing chip has a built-in sensor data completion module, which is used to perform the following operations when the sensor fails:
[0015] Extract time-series data and historical records of the same working conditions from other sensors on the current bridge deck;
[0016] The association weights between missing parameters and contextual data are calculated using a self-attention mechanism;
[0017] The completed sensor sequence is output to the threshold judgment logic of the PLC controller.
[0018] As a preferred embodiment of the deep learning-based bridge surface runoff real-time monitoring and processing system described in this invention, the method for calculating the association weights between missing parameters and context data in the local control module is as follows:
[0019] The input sensor data is fused with position codes. Let X′=X+PE, where X′ represents the input data sequence after fusion with position codes, X represents the original sensor data sequence, and PE represents the position coding matrix.
[0020] Position coding is defined using sine and cosine functions, with the following formula:
[0021]
[0022] Where i represents the position index in the data sequence, j represents the baseline index of the feature dimension, d represents the total feature dimension of the input data sequence, the constant 10000 is used to construct the periodic scale, and 2j and 2j+1 correspond to the index positions calculated by the sine and cosine functions, respectively.
[0023] A linear mapping is performed on the fused location-encoded data X′ to generate query, key, and value vectors, as shown in the formula:
[0024] Q = X′W Q K = X′W K V=X′W V ,
[0025] Where Q represents the generated query vector sequence, K represents the generated key vector sequence, V represents the generated value vector sequence, X′ is the data sequence after positional encoding fusion, and W Q W K and W V These are the corresponding linear mapping weight matrices;
[0026] A multi-head attention mechanism is employed to enhance model capabilities. Let H be the number of multi-head attention mechanisms and d be the feature dimension of each head. h :
[0027] d h =d / H, for the i-th head, the attention calculation formula is:
[0028] Among them, head i Q represents the output of the i-th attention head. i K i and V i Let i be the query, key, and value after linear projection of the i-th head, respectively. K represents i transpose, The scaling factor is used to balance the magnitude of the vector inner product, and softmax(·) represents the normalization operation;
[0029] Generate the vector projections for each head using the formula: Q i =X′W i Q ,K i =X′W i K V i =X′W i V Among them, W i Q W i K and W i VLet Q represent the linear mapping weights of the i-th head, respectively. i K i and V i This is the result of the corresponding linear transformation;
[0030] After concatenating the outputs of all heads, the multi-head attention result is obtained through output transformation:
[0031] MHA(X′)=Concat(head1,…,head H W O Where MHA(X′) represents the final output of the multi-head self-attention mechanism, and Concat(·) represents concatenating the outputs of each attention head according to its dimension. i For the i-th head output, W O The output is a fused linear transformation matrix, where H represents the total number of attention heads;
[0032] The number of attention heads is determined based on the input feature dimension and the minimum requirement per head, expressed as:
[0033]
[0034] Where H represents the final number of attention heads selected, and d is the total feature dimension of the input data sequence. min This represents the minimum feature dimension required for each attention head. This indicates a floor operation. In addition, considering the actual parallel computing capabilities of the hardware, the local attention strategy can constrain the computation range in certain regions, thereby reducing computational costs.
[0035] As a preferred embodiment of the deep learning-based bridge deck runoff real-time monitoring and processing system described in this invention, the federated learning model generates multi-bridge cooperative control strategies in the following ways:
[0036] Each local control module trains a local sub-model based on a deep reinforcement learning framework, with inputs including the current bridge deck water quality parameter sequence, the historical valve status of adjacent bridges, and the remaining capacity of the emergency pool.
[0037] The gradient parameters of the local sub-model are encrypted and uploaded to the cloud server for aggregation to generate global model parameters;
[0038] The global model parameters are sent to each local control module to dynamically adjust the opening combination of the electric two-position three-way ball valve.
[0039] As a preferred embodiment of the deep learning-based bridge surface runoff real-time monitoring and processing system described in this invention, the training process of the local sub-model includes:
[0040] A state space is constructed based on historical pollution events, which includes a four-dimensional vector of the current bridge deck water quality parameters, the valve action sequence of adjacent bridges in the past 5 minutes, and the emergency pool capacity change rate.
[0041] The PPO algorithm is used to optimize the motion space, which is the opening adjustment amount of the electric two-position three-way ball valve on each bridge deck;
[0042] The total inflow is constrained to not exceed the real-time capacity of the emergency pool by using the Lagrange relaxation method.
[0043] In a preferred embodiment of the deep learning-based bridge surface runoff real-time monitoring and processing system described in this invention, the collaborative decision-making module encrypts the gradient parameters of the local sub-model and uploads them to the cloud server for aggregation in the following way:
[0044] Homomorphic encryption is used to encrypt the gradient parameters of the local sub-models, and a secure aggregation rule is used to complete the global update. Let g be the gradient parameter calculated by each local sub-model. i ,i=1,2,…,N, where g i This represents the gradient parameter vector of the i-th local sub-model, and N represents the total number of sub-models participating in the co-training.
[0045] Encryption is achieved by using the homomorphic encryption function E(·) on each gradient parameter vector, resulting in... Where E(·) represents the homomorphic encryption operation function, and the encrypted gradient parameter is denoted as...
[0046] After receiving all the encryption gradients, the cloud server directly aggregates them using the homomorphic property, and the calculation formula is as follows: in, This represents the addition operation under homomorphic encryption, and the aggregation result is the global gradient under the encryption state;
[0047] After aggregation, the result is restored to the global gradient using a threshold decryption scheme:
[0048] Where D(·) represents the decryption function, which restores the encrypted result to the true gradient parameters. In order to balance the model convergence speed and data privacy protection, the amplitude of the encryption noise and the key parameters can be adjusted during the encryption process to ensure both aggregation accuracy and privacy requirements.
[0049] As a preferred embodiment of the deep learning-based bridge surface runoff real-time monitoring and processing system described in this invention, the process of constraining the local sub-model using the Lagrange relaxation method includes:
[0050] A constrained optimization problem is constructed using the Lagrange relaxation method, and the adjustment amount of each valve is denoted as Δv.i , Where, Δv i This represents the opening adjustment amount of the i-th valve, m is the number of valves, and C represents the real-time reception capacity of the emergency pool.
[0051] By introducing the Lagrange multiplier λ, the original constraint is transformed into an unconstrained problem. The Lagrange function is then constructed for the objective function L(Δv):
[0052]
[0053] Where L(Δv) represents the loss function defined during training, and λ is the Lagrange multiplier;
[0054] While solving this optimization problem, λ is dynamically adjusted, and the updated formula is:
[0055]
[0056] Where, λ (t) Let represent the multiplier at the t-th iteration, and η represent the multiplier update step size. + The non-negative part is taken, λ≥0. This update strategy realizes the gradual adjustment of the multiplier according to the default amount, so that the total inflow strictly satisfies the constraint conditions.
[0057] As a preferred embodiment of the deep learning-based bridge deck runoff real-time monitoring and processing system described in this invention, the control strategy of the valve actuator includes a hierarchical response mechanism:
[0058] When the emergency pool level reaches the first threshold, the valve priority is dynamically allocated according to the distance between the bridge and the sensitive water body.
[0059] When the liquid level reaches the second threshold, the electric two-position three-way ball valve of the low-priority bridge is forcibly closed.
[0060] The priority weights are dynamically adjusted based on the regional hydrological characteristics using an LSTM network;
[0061] In the valve actuator unit, the method for dynamically correcting the regional hydrological characteristics is as follows:
[0062] Define a regional hydrological feature vector and use a fully connected layer to linearly encode the regional hydrological features;
[0063] The encoded feature sequence is input into the LSTM network;
[0064] LSTM networks capture the temporal dynamics of hydrological characteristics through gating mechanisms, enabling the system to adjust valve execution strategies in real time, thereby adapting to the ever-changing regional water conditions and ensuring that valve control responds to the actual conditions of the regional environment.
[0065] Secondly, this invention provides a method for real-time monitoring and processing of bridge surface runoff based on deep learning, including:
[0066] Step S1: Collect water quality parameters and video data through each bridge deck monitoring unit, and generate standardized feature vectors through local control module preprocessing.
[0067] Step S2: Input the feature vector into the federated learning model, and combine it with the real-time capacity of the emergency pool and meteorological forecast data to generate a multi-bridge collaborative valve control instruction set;
[0068] Step S3: Dynamically adjust the opening combination of each bridge deck electric two-position three-way ball valve according to the instruction set, so that bridge deck runoff with a pollution probability higher than the set threshold is preferentially introduced into the emergency pool.
[0069] Step S4: When a communication interruption is detected, switch to the redundant control strategy generated by the local sub-model to maintain the single-bridge foundation drainage function.
[0070] As a preferred embodiment of the deep learning-based real-time monitoring and processing method for bridge surface runoff described in this invention, the generation of the multi-bridge collaborative valve control instruction set includes:
[0071] The urgency of pollution is calculated based on the abrupt change characteristics of water quality parameters on each bridge deck.
[0072] Dynamic programming algorithm is used to optimize valve opening combinations, with the emission weight of high-urgency bridge decks being greater than that of low-urgency bridge decks;
[0073] In heavy rain, the anti-interference mode is activated, and the leakage identification results of the video acquisition device are used first to correct the sensor data.
[0074] Step S2, the steps for calculating the urgency of pollution, include:
[0075] A quantitative method for mutation indices is introduced, and the formula is defined as follows:
[0076]
[0077] in, This represents the current observed value of the l-th water quality parameter at time t. This represents the average value of the ιth water quality parameter over a past period of time. Let represent the standard deviation of the l-th water quality parameter within the same historical window, ∈ , and ∈ , where ...
[0078] Based on the abrupt change indicators of each sensor, a weighted summation is used to calculate the comprehensive pollution urgency, using the following formula:
[0079] Among them, E t represents the comprehensive pollution emergency level at time t, and w ι is the weight coefficient corresponding to the ι-th type of water quality parameter and satisfies
[0080] The classification logic of the pollution emergency level is classified according to the preset threshold:
[0081] When E t < T1, it is classified as a low emergency level,
[0082] When T1 ≤ E t < T2, it is classified as a medium emergency level,
[0083] When E t ≥ T2, it is classified as a high emergency level,
[0084] Among them, T1 and T2 are emergency level thresholds.
[0085] The beneficial effects of the present invention are as follows: The present invention realizes the collaborative control of multi-bridge valves through a federated learning model, dynamically optimizes the resource allocation of the emergency pool, and effectively solves the problems of resource occupation and response lag caused by traditional single-bridge independent control; combines the LSTM network for temporal modeling of hydrological characteristics, dynamically corrects the valve priority weights, and breaks through the environmental adaptability limitations of traditional fixed-threshold strategies; introduces an encrypted gradient aggregation mechanism to break the information island while protecting data privacy and achieve a rapid response to global pollution events; through the sensor data completion module and hierarchical control strategy, significantly improves the robustness of the system in complex scenarios such as hardware failures and rainstorm interference. Brief Description of the Drawings
[0086] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for description in the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0087] Figure 1 It is a schematic diagram of the framework of the real-time monitoring and processing system for bridge deck runoff based on deep learning in Embodiment 1.
[0088] Figure 2 It is a schematic diagram of the process of the real-time monitoring and processing method for bridge deck runoff based on deep learning in Embodiment 1. Detailed Embodiments
[0089] In order to make the above objects, features, and advantages of the present invention more obvious and understandable, the specific embodiments of the present invention will be described in detail below with reference to the drawings in the specification.
[0090] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein, and those skilled in the art can make similar extensions without departing from the spirit of the invention. Therefore, the invention is not limited to the specific embodiments disclosed below.
[0091] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The phrase "in one embodiment" appearing in different places in this specification does not necessarily refer to the same embodiment, nor is it a single or selective embodiment that is mutually exclusive with other embodiments.
[0092] Example 1, referring to Figure 1 and Figure 2 This embodiment provides a deep learning-based real-time monitoring and processing system for bridge deck runoff, including:
[0093] The bridge deck monitoring unit is deployed at each bridge runoff collection point and includes a pH sensor, an oil sensor, a conductivity sensor, a turbidity sensor, and a video acquisition device.
[0094] The local control module is connected to the bridge deck monitoring unit via an RS485 bus. It has a built-in PLC controller and edge computing chip, which are used to store sensor data and execute local valve control logic.
[0095] Edge computing chips have a built-in sensor data completion module to perform the following operations when sensors fail:
[0096] Extract time-series data and historical records of the same working conditions from other sensors on the current bridge deck;
[0097] The association weights between missing parameters and contextual data are calculated using a self-attention mechanism;
[0098] Output the completed sensor sequence to the threshold judgment logic of the PLC controller;
[0099] In the local control module, the method for calculating the association weight between missing parameters and context data is as follows:
[0100] The input sensor data is fused with position codes. Let X′=X+PE, where X′ represents the input data sequence after fusion with position codes, X represents the original sensor data sequence, and PE represents the position coding matrix.
[0101] Position coding is defined using sine and cosine functions, with the following formula:
[0102]
[0103] Where i represents the position index in the data sequence, j represents the baseline index of the feature dimension, d represents the total feature dimension of the input data sequence, the constant 10000 is used to construct the periodic scale, and 2j and 2j+1 correspond to the index positions calculated by the sine and cosine functions, respectively.
[0104] A linear mapping is performed on the fused location-encoded data X′ to generate query, key, and value vectors, as shown in the formula:
[0105] Q = X′W Q K = X′W K V=X′W V ,
[0106] Where Q represents the generated query vector sequence, K represents the generated key vector sequence, V represents the generated value vector sequence, X′ is the data sequence after positional encoding fusion, and W Q W K and W V These are the corresponding linear mapping weight matrices;
[0107] A multi-head attention mechanism is employed to enhance model capabilities. Let H be the number of multi-head attention mechanisms and d be the feature dimension of each head. h :
[0108] d h =d / H, for the i-th head, the attention calculation formula is:
[0109] Among them, head i Q represents the output of the i-th attention head. i K i and V i Let i be the query, key, and value after linear projection of the i-th head, respectively. K represents i transpose, The scaling factor is used to balance the magnitude of the vector inner product, and softmax(·) represents the normalization operation;
[0110] Generate the vector projections for each head using the formula: Q i =X′W i Q ,K i =X′W i K V i =X′W i V Among them, W i Q W i K and W i VLet Q represent the linear mapping weights of the i-th head, respectively. i K i and V i This is the result of the corresponding linear transformation;
[0111] After concatenating the outputs of all heads, the multi-head attention result is obtained through output transformation:
[0112] MHA(X′)=Concat(head1,…,head H W O Where MHA(X′) represents the final output of the multi-head self-attention mechanism, and Concat(·) represents concatenating the outputs of each attention head according to its dimension. i For the i-th head output, W O The output is a fused linear transformation matrix, where H represents the total number of attention heads;
[0113] The number of attention heads is determined based on the input feature dimension and the minimum requirement per head, expressed as:
[0114]
[0115] Where H represents the final number of attention heads selected, and d is the total feature dimension of the input data sequence. min This represents the minimum feature dimension required for each attention head. This indicates a floor operation. In addition, considering the actual parallel computing capabilities of the hardware, the local attention strategy can constrain the computation range in certain regions, thereby reducing computational costs.
[0116] Specifically, by controlling the number of attention heads, a balance is achieved between the model's expressive power and hardware resources; to ensure the processing quality of sub-modules, a minimum feature dimension constraint is introduced, so that the model can still run efficiently under resource constraints. The local attention strategy further reduces unnecessary computational burden, which helps to shorten processing latency and maintain a stable response when hardware computing power is limited.
[0117] The collaborative decision-making module includes a cloud server and a fiber optic communication unit. The cloud server integrates a federated learning model and interacts with each local control module for gradient parameters through the fiber optic communication unit.
[0118] Federated learning models generate multi-bridge cooperative control policies in the following ways:
[0119] Each local control module trains a local sub-model based on a deep reinforcement learning framework, with inputs including the current bridge deck water quality parameter sequence, the historical valve status of adjacent bridges, and the remaining capacity of the emergency pool.
[0120] The gradient parameters of the local sub-model are encrypted and uploaded to the cloud server for aggregation to generate global model parameters;
[0121] Global model parameters are sent to each local control module to dynamically adjust the opening combination of the electric two-position three-way ball valve;
[0122] The training process for the local sub-model includes:
[0123] A state space is constructed based on historical pollution events, which includes a four-dimensional vector of the current bridge deck water quality parameters, the valve action sequence of adjacent bridges in the past 5 minutes, and the emergency pool capacity change rate.
[0124] The PPO algorithm is used to optimize the motion space, which is the opening adjustment amount of the electric two-position three-way ball valve on each bridge deck;
[0125] The total inflow rate is constrained to not exceed the real-time reception capacity of the emergency pool by using the Lagrange relaxation method.
[0126] In the collaborative decision-making module, the method for encrypting the gradient parameters of the local sub-model and uploading them to the cloud server for aggregation is as follows:
[0127] Homomorphic encryption is used to encrypt the gradient parameters of the local sub-models, and a secure aggregation rule is used to complete the global update. Let g be the gradient parameter calculated by each local sub-model. i ,i=1,2,…,N, where g i This represents the gradient parameter vector of the i-th local sub-model, and N represents the total number of sub-models participating in the co-training.
[0128] Encryption is achieved by using the homomorphic encryption function E(·) on each gradient parameter vector, resulting in... Where E(·) represents the homomorphic encryption operation function, and the encrypted gradient parameter is denoted as...
[0129] After receiving all the encryption gradients, the cloud server directly aggregates them using the homomorphic property, and the calculation formula is as follows: in, This represents the addition operation under homomorphic encryption, and the aggregation result is the global gradient under the encryption state;
[0130] After aggregation, the result is restored to the global gradient using a threshold decryption scheme:
[0131] Where D(·) represents the decryption function, which restores the encryption result to the true gradient parameters. In order to balance the model convergence speed and data privacy protection, the amplitude of encryption noise and key parameters can be adjusted during the encryption process to ensure both aggregation accuracy and privacy requirements.
[0132] Specifically, by using homomorphic encryption technology, the direct connection between local data and cloud computing is effectively isolated. The encryption and aggregation process does not need to reveal the original gradient, which protects data privacy and maintains the global update of the model. By adopting the method of encryption before aggregation and decryption after aggregation, it not only effectively resists malicious attacks, but also allows the cloud server to complete numerical calculations without decryption, thereby reducing security risks.
[0133] The process of constraining the local sub-model using the Lagrange relaxation method includes:
[0134] A constrained optimization problem is constructed using the Lagrange relaxation method, and the adjustment amount of each valve is denoted as Δv. i , Where, Δv i This represents the opening adjustment amount of the i-th valve, m is the number of valves, and C represents the real-time reception capacity of the emergency pool.
[0135] By introducing the Lagrange multiplier λ, the original constraint is transformed into an unconstrained problem. The Lagrange function is then constructed for the objective function L(Δv):
[0136]
[0137] Where L(Δv) represents the loss function defined during training, and λ is the Lagrange multiplier;
[0138] While solving this optimization problem, λ is dynamically adjusted, and the updated formula is:
[0139]
[0140] Where, λ (t) Let represent the multiplier at the t-th iteration, and η represent the multiplier update step size. + The non-negative part is taken, λ≥0. This update strategy realizes the gradual adjustment of the multiplier according to the default amount, so that the total inflow strictly satisfies the constraint condition.
[0141] Specifically, the Lagrange relaxation method is used to introduce a multiplier to constrain the total inflow flow of the valve. Under the premise of ensuring that the emergency pool's capacity is not exceeded, the system can automatically adjust the valve control command. After constructing the Lagrange function, the system can dynamically adjust the penalty for the part that violates the constraint by iteratively updating the multiplier. This method has good adaptability and stability in practical applications. The update strategy ensures that the multiplier value is adjusted according to the current flow deviation in each training iteration, which can both accelerate model convergence and continuously control the flow within the allowable range.
[0142] The valve actuator includes an electrically operated two-position three-way ball valve installed on the drainage pipes of each bridge deck, and its drive circuit is electrically connected to the local control module.
[0143] The control strategy of the valve actuator includes a graded response mechanism:
[0144] When the emergency pool level reaches the first threshold, the valve priority is dynamically allocated according to the distance between the bridge and the sensitive water body.
[0145] When the liquid level reaches the second threshold, the electric two-position three-way ball valve of the low-priority bridge is forcibly closed.
[0146] Priority weights are dynamically adjusted based on regional hydrological characteristics using an LSTM network;
[0147] In the valve actuator unit, the method for dynamically correcting regional hydrological characteristics is as follows:
[0148] Define a regional hydrological feature vector and use a fully connected layer to linearly encode the regional hydrological features;
[0149] The encoded feature sequence is input into the LSTM network;
[0150] LSTM networks capture the temporal dynamics of hydrological characteristics through gating mechanisms, enabling the system to adjust valve execution strategies in real time, thereby adapting to the ever-changing regional hydrological conditions and ensuring that valve control responds to the actual conditions of the regional environment.
[0151] The emergency pool capacity monitoring device includes an ultrasonic level gauge and a flow switch, which collects real-time data on the liquid level and inflow rate of the emergency treatment pool.
[0152] This embodiment also provides a processing method for the above-mentioned deep learning-based bridge deck runoff real-time monitoring and processing system, including:
[0153] Step S1: Collect water quality parameters and video data through each bridge deck monitoring unit, and generate standardized feature vectors through local control module preprocessing.
[0154] Step S2: Input the feature vector into the federated learning model, and combine it with the real-time capacity of the emergency pool and meteorological forecast data to generate a multi-bridge collaborative valve control instruction set;
[0155] The generation of multi-bridge coordinated valve control instruction sets includes:
[0156] The urgency of pollution is calculated based on the abrupt change characteristics of water quality parameters on each bridge deck.
[0157] Dynamic programming algorithm is used to optimize valve opening combinations, with the emission weight of high-urgency bridge decks being greater than that of low-urgency bridge decks;
[0158] Start the anti-interference mode in heavy rain weather, and preferentially use the leakage identification results of the video acquisition device to correct the sensor data;
[0159] In step S2, the steps for calculating the pollution urgency include:
[0160] Introduce a quantization method for mutation indicators, and the defined formula is:
[0161]
[0162] Where represents the current observed value of the ι-th type of water quality parameter at time t, represents the average value of the ι-th type of water quality parameter over a past period of time, represents the standard deviation of the ι-th type of water quality parameter within the same historical window, ∈ is a small constant to prevent the denominator from being zero, ι = 1, 2,..., J and J represents the number of types of water quality parameters;
[0163] Based on the mutation indicators of each sensor, calculate the comprehensive pollution urgency by weighted summation, and the formula is:
[0164] Where, E t represents the comprehensive pollution urgency at time t, w ι is the weight coefficient corresponding to the ι-th type of water quality parameter, and satisfies
[0165] The classification logic of the pollution urgency is classified according to the preset threshold:
[0166] When E t < T1, it is classified as low urgency,
[0167] When T1 ≤ E t < T2, it is classified as medium urgency,
[0168] When E t ≥ T2, it is classified as high urgency,
[0169] Where, T1 and T2 are the urgency thresholds;
[0170] Step S3, dynamically adjust the opening combination of each bridge deck electric two-way three-way ball valve according to the instruction set, so that the bridge deck runoff with a pollution probability higher than the set threshold is preferentially introduced into the emergency pool;
[0171] Step S4, when a communication interruption is detected, switch to the redundant control strategy generated by the local sub-model to maintain the single-bridge basic drainage function.
[0172] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention, and all such modifications or substitutions should be covered within the scope of the claims of the present invention.
Claims
1. A real-time monitoring and processing system for bridge deck runoff based on deep learning, characterized in that: include, The bridge deck monitoring unit is deployed at each bridge runoff collection point and includes a pH sensor, an oil sensor, a conductivity sensor, a turbidity sensor, and a video acquisition device. The local control module is connected to the bridge deck monitoring unit via an RS485 bus. It has a built-in PLC controller and edge computing chip, which are used to store sensor data and execute local valve control logic. The collaborative decision-making module includes a cloud server and an optical fiber communication unit. The cloud server integrates a federated learning model and interacts with each local control module through the optical fiber communication unit to exchange gradient parameters. The valve actuator includes an electrically operated two-position three-way ball valve installed on the drainage pipes of each bridge deck, and its drive circuit is electrically connected to the local control module. The emergency pool capacity monitoring device includes an ultrasonic level gauge and a flow switch, which collects real-time data on the liquid level and inflow rate of the emergency treatment pool.
2. The bridge deck runoff real-time monitoring and processing system based on deep learning as described in claim 1, characterized in that: The edge computing chip has a built-in sensor data completion module, which is used to perform the following operations when the sensor fails: Extract time-series data and historical records of the same working conditions from other sensors on the current bridge deck; The association weights between missing parameters and contextual data are calculated using a self-attention mechanism; The completed sensor sequence is output to the threshold judgment logic of the PLC controller.
3. The bridge deck runoff real-time monitoring and processing system based on deep learning as described in claim 2, characterized in that: In the local control module, the method for calculating the association weight between the missing parameter and the context data is as follows: The input sensor data is fused with position codes. Let X′=X+PE, where X′ represents the input data sequence after fusion with position codes, X represents the original sensor data sequence, and PE represents the position coding matrix. Position coding is defined using sine and cosine functions, with the following formula: Where i represents the position index in the data sequence, j represents the baseline index of the feature dimension, d represents the total feature dimension of the input data sequence, the constant 10000 is used to construct the periodic scale, and 2j and 2j+1 correspond to the index positions calculated by the sine and cosine functions, respectively. A linear mapping is performed on the fused location-encoded data X′ to generate query, key, and value vectors, as shown in the formula: Q=X′W Q ,K=X′W K ,V=X′W V , Where Q represents the generated query vector sequence, K represents the generated key vector sequence, V represents the generated value vector sequence, X′ is the data sequence after positional encoding fusion, and W Q W K and W V These are the corresponding linear mapping weight matrices; A multi-head attention mechanism is employed to enhance model capabilities. Let H be the number of multi-head attention mechanisms and d be the feature dimension of each head. h : d h =d / H, for the i-th head, the attention calculation formula is: Among them, head i Q represents the output of the i-th attention head. i K i and V i Let i be the query, key, and value after linear projection of the i-th head, respectively. K represents i transpose, The scaling factor is used to balance the magnitude of the vector inner product, and softmax(·) represents the normalization operation; Generate the vector projections for each head using the formula: Q i =X′W i Q ,K i =X′W i K V i =X′W i V Among them, W i Q W i K and W i V Let Q represent the linear mapping weights of the i-th head, respectively. i K i and V i This is the result of the corresponding linear transformation; After concatenating the outputs of all heads, the multi-head attention result is obtained through output transformation: MHA(X′)=Concat(head1,…,head H W O Where MHA(X′) represents the final output of the multi-head self-attention mechanism, and Concat(·) represents concatenating the outputs of each attention head according to its dimension. i For the i-th head output, W O The output is a fused linear transformation matrix, where H represents the total number of attention heads; The number of attention heads is determined based on the input feature dimension and the minimum requirement per head, expressed as: Where H represents the final number of attention heads selected, and d is the total feature dimension of the input data sequence. min This represents the minimum feature dimension required for each attention head. This indicates the floor function.
4. The bridge deck runoff real-time monitoring and processing system based on deep learning as described in claim 1, characterized in that: The federated learning model generates multi-bridge cooperative control strategies in the following ways: Each local control module trains a local sub-model based on a deep reinforcement learning framework, with inputs including the current bridge deck water quality parameter sequence, the historical valve status of adjacent bridges, and the remaining capacity of the emergency pool. The gradient parameters of the local sub-model are encrypted and uploaded to the cloud server for aggregation to generate global model parameters; The global model parameters are sent to each local control module to dynamically adjust the opening combination of the electric two-position three-way ball valve.
5. The bridge deck runoff real-time monitoring and processing system based on deep learning as described in claim 4, characterized in that: The training process of the local sub-model includes: A state space is constructed based on historical pollution events, which includes a four-dimensional vector of the current bridge deck water quality parameters, the valve action sequence of adjacent bridges in the past 5 minutes, and the emergency pool capacity change rate. The PPO algorithm is used to optimize the motion space, which is the opening adjustment amount of the electric two-position three-way ball valve on each bridge deck; The total inflow is constrained to not exceed the real-time capacity of the emergency pool by using the Lagrange relaxation method.
6. The bridge deck runoff real-time monitoring and processing system based on deep learning as described in claim 5, characterized in that: In the collaborative decision-making module, the gradient parameters of the local sub-model are encrypted and then uploaded to the cloud server for aggregation in the following way: Homomorphic encryption is used to encrypt the gradient parameters of the local sub-models, and a secure aggregation rule is used to complete the global update. Let g be the gradient parameter calculated by each local sub-model. i ,i=1,2,…,N, where g i This represents the gradient parameter vector of the i-th local sub-model, and N represents the total number of sub-models participating in the co-training. Encryption is achieved by using the homomorphic encryption function E(·) on each gradient parameter vector, resulting in... Where E(·) represents the homomorphic encryption operation function, and the encrypted gradient parameter is denoted as... After receiving all the encryption gradients, the cloud server directly aggregates them using the homomorphic property, and the calculation formula is as follows: in, This represents the addition operation under homomorphic encryption, and the aggregation result is the global gradient under the encryption state; After aggregation, the result is restored to the global gradient using a threshold decryption scheme: Where D(·) represents the decryption function, which restores the encrypted result to the true gradient parameters.
7. The bridge deck runoff real-time monitoring and processing system based on deep learning as described in claim 6, characterized in that: During the training of the local sub-model, the process of constraining using the Lagrange relaxation method includes: A constrained optimization problem is constructed using the Lagrange relaxation method, and the adjustment amount of each valve is denoted as . Where, Δv i This represents the opening adjustment amount of the i-th valve, m is the number of valves, and C represents the real-time reception capacity of the emergency pool. By introducing the Lagrange multiplier λ, the original constraint is transformed into an unconstrained problem. The Lagrange function is then constructed for the objective function L(Δv): Where L(Δv) represents the loss function defined during training, and λ is the Lagrange multiplier; While solving this optimization problem, λ is dynamically adjusted, and the updated formula is: Where, λ (t) Let represent the multiplier at the t-th iteration, and η represent the multiplier update step size. + This indicates taking the non-negative part, where λ≥0.
8. The bridge deck runoff real-time monitoring and processing system based on deep learning as described in claim 1, characterized in that: The control strategy of the valve actuator includes a graded response mechanism: When the emergency pool level reaches the first threshold, the valve priority is dynamically allocated according to the distance between the bridge and the sensitive water body. When the liquid level reaches the second threshold, the electric two-position three-way ball valve of the low-priority bridge is forcibly closed. The priority weights are dynamically adjusted based on the regional hydrological characteristics using an LSTM network.
9. A method for real-time monitoring and processing of bridge deck runoff based on deep learning, based on the real-time monitoring and processing system for bridge deck runoff based on deep learning as described in any one of claims 1 to 8, characterized in that, include: Step S1: Collect water quality parameters and video data through each bridge deck monitoring unit, and generate standardized feature vectors through local control module preprocessing. Step S2: Input the feature vector into the federated learning model, and combine it with the real-time capacity of the emergency pool and meteorological forecast data to generate a multi-bridge collaborative valve control instruction set; Step S3: Dynamically adjust the opening combination of each bridge deck electric two-position three-way ball valve according to the instruction set, so that bridge deck runoff with a pollution probability higher than the set threshold is preferentially introduced into the emergency pool. Step S4: When a communication interruption is detected, switch to the redundant control strategy generated by the local sub-model to maintain the single-bridge foundation drainage function.
10. The method for real-time monitoring and processing of bridge deck runoff based on deep learning as described in claim 9, characterized in that, The generation of the multi-bridge cooperative valve control instruction set includes: The urgency of pollution is calculated based on the abrupt change characteristics of water quality parameters on each bridge deck. Dynamic programming algorithm is used to optimize valve opening combinations, with the emission weight of high-urgency bridge decks being greater than that of low-urgency bridge decks; In heavy rain, the anti-interference mode is activated, and the leakage identification results of the video acquisition device are used first to correct the sensor data.
Citation Information
Patent Citations
Highway bridge surface runoff real-time recognizing and selectively collecting system
CN201648961U
Hazardous chemical leakage monitoring and emergency treatment system for sensitive water body bridge section
CN102354180A
Method for judging road surface stagnant water based on image technology
CN111046773A
Runoff prediction method and system based on improved federal learning
CN114818461A
Bridge floor hazardous chemical substance leakage accident treatment system
CN114837074A