[go: up one dir, main page]

CN119124302B - A water level measurement system based on water environment simulation - Google Patents

A water level measurement system based on water environment simulation Download PDF

Info

Publication number
CN119124302B
CN119124302B CN202411585554.2A CN202411585554A CN119124302B CN 119124302 B CN119124302 B CN 119124302B CN 202411585554 A CN202411585554 A CN 202411585554A CN 119124302 B CN119124302 B CN 119124302B
Authority
CN
China
Prior art keywords
water
data
water level
water body
level measurement
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202411585554.2A
Other languages
Chinese (zh)
Other versions
CN119124302A (en
Inventor
黄继民
宋庆元
林祥朋
陈洪鹏
史景旭
董冠宏
杨敬爽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Harbin Natural Resources Comprehensive Survey Center Of China Geological Survey
Original Assignee
Harbin Natural Resources Comprehensive Survey Center Of China Geological Survey
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Harbin Natural Resources Comprehensive Survey Center Of China Geological Survey filed Critical Harbin Natural Resources Comprehensive Survey Center Of China Geological Survey
Priority to CN202411585554.2A priority Critical patent/CN119124302B/en
Publication of CN119124302A publication Critical patent/CN119124302A/en
Application granted granted Critical
Publication of CN119124302B publication Critical patent/CN119124302B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01FMEASURING VOLUME, VOLUME FLOW, MASS FLOW OR LIQUID LEVEL; METERING BY VOLUME
    • G01F23/00Indicating or measuring liquid level or level of fluent solid material, e.g. indicating in terms of volume or indicating by means of an alarm
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D21/00Measuring or testing not otherwise provided for
    • G01D21/02Measuring two or more variables by means not covered by a single other subclass
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01FMEASURING VOLUME, VOLUME FLOW, MASS FLOW OR LIQUID LEVEL; METERING BY VOLUME
    • G01F23/00Indicating or measuring liquid level or level of fluent solid material, e.g. indicating in terms of volume or indicating by means of an alarm
    • G01F23/80Arrangements for signal processing
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/11Complex mathematical operations for solving equations, e.g. nonlinear equations, general mathematical optimization problems
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/0464Convolutional networks [CNN, ConvNet]
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • G06N3/084Backpropagation, e.g. using gradient descent
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A90/00Technologies having an indirect contribution to adaptation to climate change
    • Y02A90/30Assessment of water resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Evolutionary Computation (AREA)
  • Artificial Intelligence (AREA)
  • Pure & Applied Mathematics (AREA)
  • Fluid Mechanics (AREA)
  • Computing Systems (AREA)
  • Mathematical Optimization (AREA)
  • Mathematical Analysis (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Molecular Biology (AREA)
  • Biomedical Technology (AREA)
  • Biophysics (AREA)
  • Computational Linguistics (AREA)
  • Computational Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Algebra (AREA)
  • Operations Research (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Measuring Volume Flow (AREA)

Abstract

本发明属于水位测量技术领域,具体是指一种基于水环境模拟的水位测量系统,包括数据集成模块、数据传输模块、水体模拟模块和水位显示模块;所述系统设置网络拓扑结构,利用多种水体传感器采集水体数据,对水体数据进行预处理,保证数据质量,为水位测量提供了数据基础;建立圣维南方程模型模拟水体流动,结合波谱密度函数模拟水体表面波,建立水位测量模型,提取水位特征信息,得到水位测量结果,根据评估指标与实际水位对比验证,提高模型预测的准确性;所述系统能够反映实际水体状况,便于用户获取水位测量结果及相关的水体数据,为水位测量提供高效准确的解决方案。

The invention belongs to the technical field of water level measurement, and specifically refers to a water level measurement system based on water environment simulation, comprising a data integration module, a data transmission module, a water body simulation module and a water level display module; the system sets a network topology structure, uses a variety of water body sensors to collect water body data, pre-processes the water body data, ensures data quality, and provides a data basis for water level measurement; establishes a Saint-Venant equation model to simulate water body flow, combines a spectral density function to simulate water body surface waves, establishes a water level measurement model, extracts water level characteristic information, obtains water level measurement results, compares and verifies with actual water levels according to evaluation indicators, and improves the accuracy of model prediction; the system can reflect the actual water body conditions, facilitates users to obtain water level measurement results and related water body data, and provides an efficient and accurate solution for water level measurement.

Description

Water level measurement system based on water environment simulation
Technical Field
The invention belongs to the technical field of water level measurement, and particularly relates to a water level measurement system based on water environment simulation.
Background
The water level is an important index reflecting the water resource quantity, the dynamic change condition of the water resource can be mastered by continuously measuring the water level, including the increasing and decreasing trend and seasonal change rule of the water resource, which is important for scientific management and planning of the water resource and is beneficial to reasonably planning the development and utilization of the water resource, but the current water level measurement has the following defects:
(1) Only single type of data is concerned, the traditional measuring method can only measure the water level height, other related data such as water flow temperature, flow speed and pressure are ignored, the temperature can influence the water density and further influence the water level, the flow speed and the pressure are related to the flowing state and energy of the water body, the water level change is influenced, the collected water body data is lack of effective processing means, abnormal values are generated due to sensor faults, inaccurate data caused by other external interference factors are difficult to effectively identify, and the subsequent water level analysis is not facilitated;
(2) The lack of a physical model for describing the flow characteristics of the water body under different conditions, the traditional water level measurement method does not consider key factors such as the continuity of the water body flow, the change of momentum and the like, so that the water body flow condition cannot be comprehensively and accurately simulated, and the accuracy of water level measurement is affected; the water level measuring process uses a fixed grid division mode, cannot adopt grids with different precision according to the water flow velocity and the water resistance in different areas, cannot capture the detail change of water flow if the grids are not fine enough in the area with large water flow change, and cannot capture the detail change of water flow if the grids are too fine in the water flow stable area, thereby increasing the workload of water level measurement and wasting resources and affecting the calculation efficiency and simulation precision;
(3) The traditional measuring method cannot automatically learn the characteristic mode in the water body data, lacks of deep analysis and characteristic extraction of the data, cannot improve the water level measuring capability by adjusting parameters, and is difficult to quantitatively evaluate the extracting capability and the prediction accuracy of the water level characteristic information.
Disclosure of Invention
Aiming at the situation, the system acquires water data by utilizing a plurality of water sensors through setting a network topological structure, preprocesses the water data, guarantees the data quality, provides a data basis for water level measurement, establishes a san-View southern path model to simulate water flow, combines a spectrum density function to simulate water surface waves, establishes a water level measurement model, extracts water level characteristic information, obtains a water level measurement result, and improves the accuracy of model prediction according to comparison verification of an evaluation index and an actual water level.
A water level measurement system based on water environment simulation comprises a data integration module, a data transmission module, a water body simulation module and a water level display module;
The data integration module is connected with the data transmission module, the data transmission module is connected with the water body simulation module and the water level display module, and the water body simulation module is connected with the water level display module.
The data integration module is used for acquiring and fusing water body data to obtain an analog signal of the water body data;
The data transmission module is used for converting the analog signals of the water body data into digital signals and transmitting the digital signals to the water body analog module;
the water body simulation module is used for establishing a water level measurement model, extracting water level characteristic information and generating a water level measurement result according to the water level characteristic information;
The water level display module displays water body data, water level characteristic information and water level measurement results.
The data integration module is used for acquiring and fusing water body data to obtain an analog signal of the water body data, and specifically comprises the following steps:
Step G1, setting a network topology structure, selecting a measurement position as a network node, setting a network node address, and connecting all network nodes for direct communication;
step G2, setting a coordinator, a router and a water body sensor according to a network topological structure, acquiring water body data by using the water body sensor, transmitting the water body data to the network topological structure, managing network nodes by using the coordinator, receiving and processing the water body data acquired by the water body sensor, and relaying signals by using the router;
And G3, setting a threshold range of the water body data, removing abnormal values of the water body data exceeding the threshold range, and filling missing values of the water body data by adopting an average value of adjacent data to obtain analog signals of the water body data.
Further, in step G2, water data is acquired using a water sensor, specifically including the steps of:
g21, measuring the temperature of the water body by using a temperature sensor to obtain water body temperature data;
G22, detecting induced electromotive force generated by water flow by using a flow velocity sensor, and determining the water flow velocity according to the induced electromotive force to obtain water flow velocity data;
Step G23, measuring the water pressure of different depths by using a pressure sensor to obtain water pressure data;
and G24, measuring the geometric parameters of the river channel, including the gradient and the section shape of the river bed, calculating the cross-sectional area and the roughness coefficient of the water, reflecting the resistance of the river channel wall to the water flow and obtaining water body resistance data by using a total station.
The data transmission module converts the analog signals of the water body data into digital signals and transmits the digital signals to the water body analog module, and the method specifically comprises the following steps of:
step T1, performing data calibration on analog signals of water body data, and converting the analog signals of the water body data into digital signals by using an analog-to-digital converter;
step T2, packaging digital signals of water body data into data packets, sending the data packets to a network topology structure by using a water body sensor, and forwarding the data packets to a coordinator through a router;
and step T3, the coordinator extracts the data packet and sends the data packet to the water body simulation module through the serial port.
The water body simulation module establishes a water level measurement model, extracts water level characteristic information, and generates a water level measurement result according to the water level characteristic information, and specifically comprises the following steps:
step S1, establishing a Saint View south equation model, and simulating the water flow conditions of rivers and lakes by using the following formula:
Continuity equation: ;
Momentum equation: ;
wherein A represents the cross-sectional area of water, t represents time, Q represents flow, x represents distance along the river channel, h represents water level, g represents gravitational acceleration, C represents a Xuezhen coefficient, Representing a deviation-solving operation;
S2, discretizing the Saint View south equation model by adopting a finite difference method, and dividing the river channel into computing units in space, wherein the length of each computing unit is Dividing time steps in time, each time step beingt;
For the continuity equation, discretization is performed by adopting a central differential format method, and the used formula is as follows:
;
Wherein j represents a calculation unit number in space, and n represents a time step number;
For the momentum equation, discretizing by adopting a windward format method;
s3, simulating an initial water surface wave by using a spectrum density function, and calculating the water surface waves in different directions by using a directional diffusion function;
S4, setting boundary conditions and initial conditions according to the initial water surface wave, wherein the boundary conditions comprise inlet boundary conditions, outlet boundary conditions and wall boundary conditions, and the initial conditions comprise initial water level setting and initial flow rate setting;
inlet boundary conditions, namely a calculation unit for determining the inflow position of the water body, water body flow velocity data and water body pressure data;
outlet boundary conditions, namely a calculation unit for determining the water outflow position, water flow velocity data and water resistance data;
Wall boundary conditions, namely adopting a non-slip boundary condition for the contact position of the water body and the solid wall surface, and assuming that the speed of the water body on the wall surface is zero;
S5, adopting a self-adaptive grid dividing technology, and carrying out grid refinement on the river channel on each computing unit according to the water flow velocity data and the water resistance data;
fine grids are used at the positions of the river bends and near the water gates, and coarse grids are used in the water flow stable areas;
and S6, establishing a convolutional neural network as a water level measurement model, and inputting water body data into the water level measurement model to obtain a water level measurement result.
Further, the step S3 specifically includes the following steps:
Step S31, simulating an initial water surface wave by using a spectrum density function, creating a two-dimensional initial wave state, and obtaining a nominal wave amplitude, wherein the used formula is as follows:
;
Wherein, Represents the vertical displacement generated on the horizontal axis of the water body surface, Y represents the horizontal axis of the water body surface, t represents time, i represents the parameter point of the water body surface wave,Representing the amplitude of the nominal wave,Representing the cosine function, T representing the matrix transpose operation,Representing wave vector, X represents the horizontal axis position of the surface wave of the water body,Which represents the angular frequency of the light emitted by the light source,Representing the displacement of the surface wave of the water body,Represents the angular frequency of the ith water body surface wave parameter point,Representing the displacement of the ith water surface wave parameter point;
Step S32, propagating the initial wave state forwards, and simulating the wavelength and the relative speed of the surface wave of the water body by using a directional spectrum, wherein the used formula is as follows:
;
Wherein, The change quantity of the angular frequency of the surface wave of the water body is represented,The displacement variation of the surface wave of the water body is represented,Indicating a directional spectrum;
Step S33, the nominal wave amplitude and the directional spectrum are connected in a time step, the relation between the vertical displacement of the surface wave of the water body on each computing unit and the directional spectrum is described, and the following formula is used:
;
Step S34, defining expansion factors in different directions, calculating the influence of the expansion factors in different directions on the surface wave of the water body by combining the expansion factors by using a directional diffusion function, and obtaining a calculation result of the surface wave of the water body, wherein the used formula is shown as follows:
;
Wherein, Representing a directional diffusion function, s representing a parameter related to angular frequency,As a function of the gamma-ray,Represents the directional characteristic of the water surface wave, p represents the expansion factor of the water surface wave,Indicating the directional characteristic of the ith water surface wave parameter point,Indicating the directional characteristic of the surface wave spreading factor of the water body.
Further, the step S6 specifically includes the following steps:
Step S61, building a convolutional neural network, wherein the convolutional neural network is used as a water level measurement model and comprises an input layer, a convolutional layer, a feature extraction layer, a pooling layer and an output layer;
Step S62, dividing a training set and a verification set, namely dividing the training set and the verification set, respectively inputting water pressure data, water flow velocity data and water temperature data as different channels into a convolutional neural network, setting parameters of the convolutional neural network, wherein the parameters comprise weights and offsets, performing forward propagation by using the training set, and obtaining water level measurement results on each calculation unit;
Step 63, determining a loss function, namely calculating a loss value by using the loss function, calculating the gradient of each layer of the convolutional neural network by using a back propagation algorithm, and updating parameters of the convolutional neural network;
step S64, performing iterative training, namely setting the number of training wheels and control parameters, performing iterative training, and repeating the steps S362-S363;
And step S65, water level measurement, namely evaluating the water level measurement model by using the verification set, calculating an evaluation index, and adjusting control parameters according to the evaluation index to obtain a final water level measurement result.
Further, in step S62, performing forward propagation specifically includes the steps of:
Step S621, performing multi-scale feature extraction by using convolution kernels with different sizes, and extracting water level feature information of water body data to obtain a feature map;
Step S622, extracting periodic variation of water body data by using SIREN periodic activation function, weighting and summing each calculation unit, adding bias, and finally obtaining an activated characteristic diagram through the activation function;
Step S623, introducing an attention mechanism in a pooling layer, downsampling the activated feature map, calculating the attention weight of each calculation unit, carrying out weighted pooling on water level feature information of different network nodes, and giving high attention weight to a fine grid.
Further, the step S63 specifically includes the following steps:
Step S631, using the mean square error loss function to provide constraint on the water level measurement results of each calculation unit;
Step S632, using Adam optimization algorithm, self-adaptively adjusting learning rate update parameters, wherein the following formula is used:
;
Wherein, Represents the number of iterative training times,Represent the firstThe parameter values at the time of the training of the next iteration,Represent the firstThe parameter values at the time of the training of the next iteration,The learning rate is indicated as being indicative of the learning rate,A first moment estimate representing the gradient is presented,A second moment estimate representing the gradient is presented,Representing a small constant.
The beneficial effects achieved by the invention are as follows:
(1) The system collects various water body data, provides an information basis for the subsequent accurate water level measurement, the temperature data influences the water body density, the water level is influenced, the flow speed and the pressure data are directly related to the flowing state and the energy of the water body, the water level change is greatly influenced, the actual condition of the water body can be more comprehensively known by integrating the water body data of different types, and the accuracy and the reliability of the water level measurement are improved;
(2) The system establishes a Saint Violet path model to simulate the water flow conditions of rivers and lakes, can accurately describe the flow characteristics of the water under different conditions, including the change of continuity and momentum, converts a continuous physical process into a discrete mathematical model, is convenient for solving and simulation, simulates initial water surface waves by using a spectrum density function, calculates water surface waves in different directions by using a directional diffusion function, and simultaneously sets boundary conditions and initial conditions, so that the model is more in line with the actual water conditions;
(3) The system establishes a convolutional neural network as a water level measurement model, can automatically learn a characteristic mode in water body data, and performs depth analysis and characteristic extraction on the input water body data. Secondly, training and optimizing a network by dividing a training set and a verification set and using a loss function and a back propagation algorithm, so that parameters can be continuously adjusted, the prediction capacity of a model is improved, multi-scale feature extraction and periodic change of neuron extraction of a periodic activation function are performed by adopting convolution kernels with different sizes, and an innovative method of introducing an attention mechanism in a pooling layer is adopted, so that the extraction capacity of the model on water level feature information and the accuracy of a predicted water level measurement result are further improved;
(4) The system can intuitively display water body data, water level characteristic information and water level measurement results, is convenient for a user to acquire related information, does not need to carry out complex data processing and analysis, and hydraulic engineering management staff can know the water level condition in real time through a water level display module to make reasonable decisions in time and adjust the opening of a river sluice.
Drawings
FIG. 1 is a schematic diagram of a water level measurement system based on water environment simulation according to the present invention;
fig. 2 is a flowchart of step S6 according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
Referring to FIG. 1, a water level measurement system based on water environment simulation comprises a data integration module, a data transmission module, a water body simulation module and a water level display module;
The data integration module is connected with the data transmission module, the data transmission module is connected with the water body simulation module and the water level display module, and the water body simulation module is connected with the water level display module.
Embodiment 2. The embodiment is based on the above embodiment, referring to fig. 2, the data integration module collects the fused water body data to obtain the analog signal of the water body data, and specifically includes the following steps:
Step G1, setting a network topology structure, selecting a measurement position as a network node, setting a network node address, and connecting all network nodes for direct communication;
step G2, setting a coordinator, a router and a water body sensor according to a network topological structure, acquiring water body data by using the water body sensor, transmitting the water body data to the network topological structure, managing network nodes by using the coordinator, receiving and processing the water body data acquired by the water body sensor, and relaying signals by using the router;
And G3, setting a threshold range of the water body data, removing abnormal values of the water body data exceeding the threshold range, and filling missing values of the water body data by adopting an average value of adjacent data to obtain analog signals of the water body data.
Embodiment 3. This embodiment is based on the above embodiment, and in step G2, the water body data is collected using a water body sensor, and specifically includes the following steps:
g21, measuring the temperature of the water body by using a temperature sensor to obtain water body temperature data;
G22, detecting induced electromotive force generated by water flow by using a flow velocity sensor, and determining the water flow velocity according to the induced electromotive force to obtain water flow velocity data;
Step G23, measuring the water pressure of different depths by using a pressure sensor to obtain water pressure data;
and G24, measuring the geometric parameters of the river channel, including the gradient and the section shape of the river bed, calculating the cross-sectional area and the roughness coefficient of the water, reflecting the resistance of the river channel wall to the water flow and obtaining water body resistance data by using a total station.
Embodiment 4. The data transmission module converts an analog signal of water body data into a digital signal and transmits the digital signal to the water body analog module based on the above embodiment, and specifically includes the following steps:
step T1, performing data calibration on analog signals of water body data, and converting the analog signals of the water body data into digital signals by using an analog-to-digital converter;
step T2, packaging digital signals of water body data into data packets, sending the data packets to a network topology structure by using a water body sensor, and forwarding the data packets to a coordinator through a router;
and step T3, the coordinator extracts the data packet and sends the data packet to the water body simulation module through the serial port.
Embodiment 5. The water body simulation module establishes a water level measurement model, extracts water level characteristic information, and generates a water level measurement result according to the water level characteristic information, wherein the water level measurement result comprises the following steps:
step S1, establishing a Saint View south equation model, and simulating the water flow conditions of rivers and lakes by using the following formula:
Continuity equation: ;
Momentum equation: ;
wherein A represents the cross-sectional area of water, t represents time, Q represents flow, x represents distance along the river channel, h represents water level, g represents gravitational acceleration, C represents a Xuezhen coefficient, Representing a deviation-solving operation;
S2, discretizing the Saint View south equation model by adopting a finite difference method, and dividing the river channel into computing units in space, wherein the length of each computing unit is Dividing time steps in time, each time step beingt;
For the continuity equation, discretization is performed by adopting a central differential format method, and the used formula is as follows:
;
Wherein j represents a calculation unit number in space, and n represents a time step number;
For the momentum equation, discretizing by adopting a windward format method;
s3, simulating an initial water surface wave by using a spectrum density function, and calculating the water surface waves in different directions by using a directional diffusion function;
S4, setting boundary conditions and initial conditions according to the initial water surface wave, wherein the boundary conditions comprise inlet boundary conditions, outlet boundary conditions and wall boundary conditions, and the initial conditions comprise initial water level setting and initial flow rate setting;
S5, adopting a self-adaptive grid dividing technology, and carrying out grid refinement on the river channel on each computing unit according to the water flow velocity data and the water resistance data;
and S6, establishing a convolutional neural network as a water level measurement model, and inputting water body data into the water level measurement model to obtain a water level measurement result.
Embodiment 6 this embodiment is based on the above embodiment, and step S3 specifically includes the following steps:
Step S31, simulating an initial water surface wave by using a spectrum density function, creating a two-dimensional initial wave state, and obtaining a nominal wave amplitude, wherein the used formula is as follows:
;
Wherein, Represents the vertical displacement generated on the horizontal axis of the water body surface, Y represents the horizontal axis of the water body surface, t represents time, i represents the parameter point of the water body surface wave,Representing the amplitude of the nominal wave,Representing the cosine function, T representing the matrix transpose operation,Representing wave vector, X represents the horizontal axis position of the surface wave of the water body,Which represents the angular frequency of the light emitted by the light source,Representing the displacement of the surface wave of the water body,Represents the angular frequency of the ith water body surface wave parameter point,Representing the displacement of the ith water surface wave parameter point;
Step S32, propagating the initial wave state forwards, and simulating the wavelength and the relative speed of the surface wave of the water body by using a directional spectrum, wherein the used formula is as follows:
;
Wherein, The change quantity of the angular frequency of the surface wave of the water body is represented,The displacement variation of the surface wave of the water body is represented,Indicating a directional spectrum;
Step S33, the nominal wave amplitude and the directional spectrum are connected in a time step, the relation between the vertical displacement of the surface wave of the water body on each computing unit and the directional spectrum is described, and the following formula is used:
;
Step S34, defining expansion factors in different directions, calculating the influence of the expansion factors in different directions on the surface wave of the water body by combining the expansion factors by using a directional diffusion function, and obtaining a calculation result of the surface wave of the water body, wherein the used formula is shown as follows:
;
Wherein, Representing a directional diffusion function, s representing a parameter related to angular frequency,As a function of the gamma-ray,Represents the directional characteristic of the water surface wave, p represents the expansion factor of the water surface wave,Indicating the directional characteristic of the ith water surface wave parameter point,Indicating the directional characteristic of the surface wave spreading factor of the water body.
Embodiment 7 this embodiment is based on the above embodiment, and step S6 specifically includes the steps of:
Step S61, building a convolutional neural network, wherein the convolutional neural network is used as a water level measurement model and comprises an input layer, a convolutional layer, a feature extraction layer, a pooling layer and an output layer;
Step S62, dividing a training set and a verification set, namely dividing the training set and the verification set, respectively inputting water pressure data, water flow velocity data and water temperature data as different channels into a convolutional neural network, setting parameters of the convolutional neural network, wherein the parameters comprise weights and offsets, performing forward propagation by using the training set, and obtaining water level measurement results on each calculation unit;
Step 63, determining a loss function, namely calculating a loss value by using the loss function, calculating the gradient of each layer of the convolutional neural network by using a back propagation algorithm, and updating parameters of the convolutional neural network;
step S64, performing iterative training, namely setting the number of training wheels and control parameters, performing iterative training, and repeating the steps S362-S363;
And step S65, water level measurement, namely evaluating the water level measurement model by using the verification set, calculating an evaluation index, and adjusting control parameters according to the evaluation index to obtain a final water level measurement result.
Embodiment 8. This embodiment is based on the above embodiment, and in step S62, performing forward propagation specifically includes the steps of:
Step S621, performing multi-scale feature extraction by using convolution kernels with different sizes, and extracting water level feature information of water body data to obtain a feature map;
In the embodiment, 3×3 and 5×5 convolution kernels are simultaneously used, the 3×3 convolution kernel captures the water body data change in a short time, and the 5×5 convolution kernel captures the water body data change trend on a long time scale;
Step S622, extracting periodic variation of water body data by using SIREN periodic activation function, weighting and summing each calculation unit, adding bias, and finally obtaining an activated characteristic diagram through the activation function;
Step S623, introducing an attention mechanism in a pooling layer, downsampling the activated feature map, calculating the attention weight of each calculation unit, carrying out weighted pooling on water level feature information of different network nodes, and giving high attention weight to a fine grid.
Embodiment 9 this embodiment is based on the above embodiment, and step S63 specifically includes the steps of:
Step S631, using the mean square error loss function to provide constraint on the water level measurement results of each calculation unit;
Step S632, using Adam optimization algorithm, self-adaptively adjusting learning rate update parameters, wherein the following formula is used:
;
Wherein, Represents the number of iterative training times,Represent the firstThe parameter values at the time of the training of the next iteration,Represent the firstThe parameter values at the time of the training of the next iteration,The learning rate is indicated as being indicative of the learning rate,A first moment estimate representing the gradient is presented,A second moment estimate representing the gradient is presented,Representing a small constant.
The present invention and its embodiments have been described in detail, but it should be understood that the invention is not limited to the embodiments and structural arrangements and examples described in the foregoing without departing from the spirit of the invention.

Claims (5)

1.一种基于水环境模拟的水位测量系统,其特征在于:包括数据集成模块、数据传输模块、水体模拟模块和水位显示模块;1. A water level measurement system based on water environment simulation, characterized by: comprising a data integration module, a data transmission module, a water body simulation module and a water level display module; 所述数据集成模块,采集并融合水体数据,得到水体数据的模拟信号;The data integration module collects and fuses water body data to obtain a simulation signal of the water body data; 所述数据传输模块,将水体数据的模拟信号转换为数字信号,传输数字信号至水体模拟模块;The data transmission module converts the analog signal of the water body data into a digital signal, and transmits the digital signal to the water body simulation module; 所述水体模拟模块,建立水位测量模型,提取水位特征信息,根据水位特征信息,生成水位测量结果;The water body simulation module establishes a water level measurement model, extracts water level characteristic information, and generates water level measurement results based on the water level characteristic information; 所述水位显示模块,显示水体数据、水位特征信息和水位测量结果;The water level display module displays water body data, water level characteristic information and water level measurement results; 所述数据集成模块,采集并融合水体数据,得到水体数据的模拟信号,具体包括以下步骤:The data integration module collects and fuses water body data to obtain a simulation signal of the water body data, specifically including the following steps: 步骤G1:设置网络拓扑结构,选择测量位置作为网络节点,设置网络节点地址,连接各个网络节点进行直接通信;Step G1: Set the network topology, select the measurement location as the network node, set the network node address, and connect each network node for direct communication; 步骤G2:根据网络拓扑结构,设置协调器、路由器和水体传感器,使用水体传感器采集水体数据;Step G2: According to the network topology, a coordinator, a router and a water sensor are set up, and the water sensor is used to collect water data; 步骤G3:设定水体数据的阈值范围,去除超出阈值范围的水体数据的异常值,采用相邻数据平均值,填充水体数据的缺失值,得到水体数据的模拟信号;Step G3: setting a threshold range for water body data, removing abnormal values of water body data that exceed the threshold range, using the average value of adjacent data to fill in the missing values of water body data, and obtaining a simulated signal of water body data; 所述水体模拟模块,建立水位测量模型,提取水位特征信息,根据水位特征信息,生成水位测量结果,具体包括以下步骤:The water body simulation module establishes a water level measurement model, extracts water level characteristic information, and generates water level measurement results according to the water level characteristic information, specifically including the following steps: 步骤S1:建立圣维南方程模型,模拟河流和湖泊的水体流动状况;Step S1: Establish a Saint-Venant equation model to simulate the water flow conditions of rivers and lakes; 步骤S2:采用有限差分法,对圣维南方程模型进行离散化,在空间上将河道划分为计算单元,在时间上划分时间步长;Step S2: using the finite difference method to discretize the Saint-Venant equation model, dividing the river channel into calculation units in space and dividing the time steps in time; 步骤S3:使用波谱密度函数,模拟初始的水体表面波,使用定向扩散函数,计算不同方向的水体表面波;Step S3: using the spectral density function to simulate the initial water surface waves, and using the directional diffusion function to calculate the water surface waves in different directions; 步骤S4:根据初始的水体表面波,设置边界条件和初始条件,边界条件包括入口边界条件、出口边界条件和壁面边界条件,初始条件包括初始水位设置和初始流速设置;Step S4: according to the initial water surface wave, boundary conditions and initial conditions are set, the boundary conditions include inlet boundary conditions, outlet boundary conditions and wall boundary conditions, and the initial conditions include initial water level setting and initial flow velocity setting; 步骤S5:采用自适应网格划分技术,在每个计算单元上,根据水体流速数据和水体阻力数据,对河道进行网格细化;Step S5: Adopting adaptive meshing technology, in each calculation unit, based on water velocity data and water resistance data, the river channel is meshed and refined; 步骤S6:建立卷积神经网络作为水位测量模型,将水体数据输入到水位测量模型,得到水位测量结果;Step S6: Establish a convolutional neural network as a water level measurement model, input water body data into the water level measurement model, and obtain a water level measurement result; 步骤S3具体包括以下步骤:Step S3 specifically includes the following steps: 步骤S31:使用波谱密度函数,模拟初始的水体表面波,创建二维的初始波状态,得到名义波振幅;Step S31: using the spectral density function to simulate the initial water surface wave, create a two-dimensional initial wave state, and obtain the nominal wave amplitude; 步骤S32:将初始波状态向前传播,使用定向波谱,模拟水体表面波的波长和相对速度;Step S32: propagate the initial wave state forward, using a directional wave spectrum to simulate the wavelength and relative speed of the water surface wave; 步骤S33:在时间步长上,将名义波振幅与定向波谱相互联系,描述水体表面波在每个计算单元上垂直位移与定向波谱的关系;Step S33: in the time step, the nominal wave amplitude is linked to the directional wave spectrum to describe the relationship between the vertical displacement of the water surface wave and the directional wave spectrum in each calculation unit; 步骤S34:定义不同方向的扩展因子,使用定向扩散函数结合扩展因子,计算不同方向扩展因子对水体表面波的影响,得到水体表面波的计算结果。Step S34: define expansion factors in different directions, use the directional diffusion function in combination with the expansion factors, calculate the influence of the expansion factors in different directions on the water surface wave, and obtain the calculation result of the water surface wave. 2.根据权利要求1所述的一种基于水环境模拟的水位测量系统,其特征在于:在步骤G2中,使用水体传感器采集水体数据,具体包括以下步骤:2. A water level measurement system based on water environment simulation according to claim 1, characterized in that: in step G2, using a water sensor to collect water data, specifically comprising the following steps: 步骤G21:使用温度传感器,测量水体温度,得到水体温度数据;Step G21: using a temperature sensor to measure the water temperature and obtain water temperature data; 步骤G22:使用流速传感器,检测水流产生的感应电动势,根据感应电动势确定水流速度,得到水体流速数据;Step G22: using a flow velocity sensor to detect the induced electromotive force generated by the water flow, determining the water flow velocity according to the induced electromotive force, and obtaining water flow velocity data; 步骤G23:使用压力传感器,测量不同深度的水体压力,得到水体压力数据;Step G23: Using a pressure sensor to measure water pressure at different depths to obtain water pressure data; 步骤G24:使用全站仪,测量河道几何参数,计算过水断面面积和糙率系数,得到水体阻力数据。Step G24: Use a total station to measure the geometric parameters of the river channel, calculate the water-passing cross-sectional area and roughness coefficient, and obtain water resistance data. 3.根据权利要求2所述的一种基于水环境模拟的水位测量系统,其特征在于:所述数据传输模块,将水体数据的模拟信号转换为数字信号,传输数字信号至水体模拟模块,具体包括以下步骤:3. A water level measurement system based on water environment simulation according to claim 2, characterized in that: the data transmission module converts the analog signal of the water body data into a digital signal and transmits the digital signal to the water body simulation module, specifically comprising the following steps: 步骤T1:对水体数据的模拟信号进行数据校准,使用模数转换器,将水体数据的模拟信号转换为数字信号;Step T1: calibrate the analog signal of the water body data, and use an analog-to-digital converter to convert the analog signal of the water body data into a digital signal; 步骤T2:将水体数据的数字信号封装为数据包,使用水体传感器将数据包发送到网络拓扑结构,通过路由器转发数据包到协调器;Step T2: Encapsulate the digital signal of the water body data into a data packet, use the water body sensor to send the data packet to the network topology, and forward the data packet to the coordinator through the router; 步骤T3:协调器提取数据包,通过串口将数据包发送给水体模拟模块。Step T3: The coordinator extracts the data packet and sends it to the water body simulation module through the serial port. 4.根据权利要求3所述的一种基于水环境模拟的水位测量系统,其特征在于:步骤S6具体包括以下步骤:4. The water level measurement system based on water environment simulation according to claim 3 is characterized in that: step S6 specifically comprises the following steps: 步骤S61:建立卷积神经网络:建立卷积神经网络作为水位测量模型,卷积神经网络包括输入层、卷积层、特征提取层、池化层和输出层;Step S61: Establishing a convolutional neural network: Establishing a convolutional neural network as a water level measurement model, the convolutional neural network includes an input layer, a convolution layer, a feature extraction layer, a pooling layer and an output layer; 步骤S62:划分训练集和验证集:划分训练集和验证集,将水体压力数据、水体流速数据、水体温度数据,分别作为不同的通道输入到水位测量模型,设置卷积神经网络的参数,参数包括的权重和偏置,使用训练集进行前向传播,在各个计算单元上得到水位测量结果;Step S62: Divide the training set and the validation set: Divide the training set and the validation set, input the water pressure data, water flow velocity data, and water temperature data into the water level measurement model as different channels, set the parameters of the convolutional neural network, including weights and biases, use the training set for forward propagation, and obtain the water level measurement results on each computing unit; 步骤S63:确定损失函数:使用损失函数计算得到损失值,通过反向传播算法计算卷积神经网络每层的梯度,更新卷积神经网络的参数;Step S63: Determine the loss function: use the loss function to calculate the loss value, calculate the gradient of each layer of the convolutional neural network through the back propagation algorithm, and update the parameters of the convolutional neural network; 步骤S64:进行迭代训练:设置训练轮数和控制参数,进行迭代训练,重复步骤S362-步骤S363;Step S64: Perform iterative training: set the number of training rounds and control parameters, perform iterative training, and repeat steps S362 to S363; 步骤S65:水位测量:使用验证集对水位测量模型进行评估,计算评估指标,根据评估指标调整控制参数,得到最终水位测量结果。Step S65: Water level measurement: Use the validation set to evaluate the water level measurement model, calculate the evaluation index, adjust the control parameters according to the evaluation index, and obtain the final water level measurement result. 5.根据权利要求4所述的一种基于水环境模拟的水位测量系统,其特征在于:在步骤S62中,进行前向传播具体包括以下步骤:5. A water level measurement system based on water environment simulation according to claim 4, characterized in that: in step S62, performing forward propagation specifically comprises the following steps: 步骤S621:使用不同大小的卷积核进行多尺度特征提取,提取水体数据的水位特征信息,得到特征图;Step S621: using convolution kernels of different sizes to perform multi-scale feature extraction, extracting water level feature information of water body data, and obtaining a feature map; 步骤S622:使用SIREN周期性激活函数,提取水体数据周期性变化,对各个计算单元加权求和再加上偏置,最后通过激活函数,得到激活后的特征图;Step S622: Use the SIREN periodic activation function to extract the periodic changes of the water body data, perform weighted summation on each calculation unit and add the bias, and finally obtain the activated feature map through the activation function; 步骤S623:在池化层引入注意力机制,对激活后的特征图进行下采样,计算各个计算单元的注意力权重,对不同网络节点的水位特征信息进行加权池化。Step S623: Introduce the attention mechanism in the pooling layer, downsample the activated feature map, calculate the attention weight of each computing unit, and perform weighted pooling on the water level feature information of different network nodes.
CN202411585554.2A 2024-11-08 2024-11-08 A water level measurement system based on water environment simulation Active CN119124302B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411585554.2A CN119124302B (en) 2024-11-08 2024-11-08 A water level measurement system based on water environment simulation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411585554.2A CN119124302B (en) 2024-11-08 2024-11-08 A water level measurement system based on water environment simulation

Publications (2)

Publication Number Publication Date
CN119124302A CN119124302A (en) 2024-12-13
CN119124302B true CN119124302B (en) 2025-04-11

Family

ID=93762509

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411585554.2A Active CN119124302B (en) 2024-11-08 2024-11-08 A water level measurement system based on water environment simulation

Country Status (1)

Country Link
CN (1) CN119124302B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115659871A (en) * 2022-11-10 2023-01-31 中国长江三峡集团有限公司 One-dimensional hydrodynamic force simulation method and device under local coordinate system
CN116385735A (en) * 2023-06-01 2023-07-04 珠江水利委员会珠江水利科学研究院 A Water Level Measurement Method Based on Image Recognition
CN118886368A (en) * 2024-09-24 2024-11-01 水利部交通运输部国家能源局南京水利科学研究院 A grid processing method to improve the efficiency and stability of ocean numerical forecast models

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6052334A (en) * 1998-08-04 2000-04-18 Rowe-Deines Instruments System and method for measuring wave directional spectrum and wave height
KR101531906B1 (en) * 2013-10-17 2015-06-29 한국해양과학기술원 Apparatus and method for measuring maritime information using radar
KR102119135B1 (en) * 2018-12-28 2020-06-05 인천대학교 산학협력단 Method of measuring ocean conditions using radar
CN114970213B (en) * 2022-07-25 2022-10-11 青岛国数信息科技有限公司 Sea clutter dynamic simulation method under soliton internal wave fluctuation effect
CN117275600A (en) * 2023-09-18 2023-12-22 淮阴工学院 A method for predicting lake and river water quality parameters based on temporal convolutional neural network
CN118152990B (en) * 2024-05-13 2024-08-06 山东省水文计量检定中心 Online current measurement system for hydrologic tower

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115659871A (en) * 2022-11-10 2023-01-31 中国长江三峡集团有限公司 One-dimensional hydrodynamic force simulation method and device under local coordinate system
CN116385735A (en) * 2023-06-01 2023-07-04 珠江水利委员会珠江水利科学研究院 A Water Level Measurement Method Based on Image Recognition
CN118886368A (en) * 2024-09-24 2024-11-01 水利部交通运输部国家能源局南京水利科学研究院 A grid processing method to improve the efficiency and stability of ocean numerical forecast models

Also Published As

Publication number Publication date
CN119124302A (en) 2024-12-13

Similar Documents

Publication Publication Date Title
CN114997541B (en) Urban waterlogging prediction method and early warning platform based on digital twin technology
CN111159149A (en) River flow prediction method based on three-dimensional convolutional neural network
CN113947045B (en) A method for calculating pipeline flow based on neural network and transducer topology setting
JP6819692B2 (en) Simulation equipment, simulation methods and programs
KR102480382B1 (en) Wind load estimation system based on artificial intelligence
CN118152990B (en) Online current measurement system for hydrologic tower
CN110570031A (en) A Method for Predicting the Distributary Ratio of Two-stage Branched Channels in Plain River Network
CN116432828A (en) An Intelligent Prediction Method of Runoff in Data-Lacking Watersheds
CN118095104B (en) A method and system for rapid flood forecasting based on machine learning
CN114692895B (en) A method and device for extracting the relationship between fish's perception and response to water flow morphology
CN119598912B (en) River mouth area ship lock hydrodynamic force simulation method and system
CN111914487A (en) Data-free regional hydrological parameter calibration method based on antagonistic neural network
CN115455867A (en) Calculation Method of Flow State in Dam Area Based on Regression Analysis
CN118690331B (en) Offshore wind energy prediction method and system
CN113111590A (en) Urban flood model runoff sensitivity parameter identification method based on artificial neural network
CN117113854A (en) A salt tide forecasting method based on ConvLSTM and three-dimensional numerical simulation
CN111914488A (en) Data regional hydrological parameter calibration method based on antagonistic neural network
CN112215495B (en) A calculation method of pollution source contribution degree based on long short-term memory neural network
Ramirez et al. Validation of simplified urban-canopy aerodynamic parametrizations using a numerical simulation of an actual downtown area
CN118758256A (en) An intelligent measurement method for hydraulic and environmental geological profiles
CN114372427B (en) Hydrodynamic model building method
CN119124302B (en) A water level measurement system based on water environment simulation
CN119692789A (en) Power grid flood prevention risk warning and auxiliary decision-making system based on flood simulation
CN117405175B (en) Marine environment intelligent monitoring system
CN117150823A (en) High-resolution rapid simulation method for coastal city flood disasters

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant