[go: up one dir, main page]

CN116360330B - A method and system for measuring flow in an open channel based on a multi-channel ultrasonic array - Google Patents

A method and system for measuring flow in an open channel based on a multi-channel ultrasonic array Download PDF

Info

Publication number
CN116360330B
CN116360330B CN202310641475.8A CN202310641475A CN116360330B CN 116360330 B CN116360330 B CN 116360330B CN 202310641475 A CN202310641475 A CN 202310641475A CN 116360330 B CN116360330 B CN 116360330B
Authority
CN
China
Prior art keywords
open channel
channel gate
data
liquid level
liquid
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
CN202310641475.8A
Other languages
Chinese (zh)
Other versions
CN116360330A (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.)
Pearl River Hydraulic Research Institute of PRWRC
Original Assignee
Pearl River Hydraulic Research Institute of PRWRC
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 Pearl River Hydraulic Research Institute of PRWRC filed Critical Pearl River Hydraulic Research Institute of PRWRC
Priority to CN202310641475.8A priority Critical patent/CN116360330B/en
Publication of CN116360330A publication Critical patent/CN116360330A/en
Application granted granted Critical
Publication of CN116360330B publication Critical patent/CN116360330B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01FMEASURING VOLUME, VOLUME FLOW, MASS FLOW OR LIQUID LEVEL; METERING BY VOLUME
    • G01F1/00Measuring the volume flow or mass flow of fluid or fluent solid material wherein the fluid passes through a meter in a continuous flow
    • G01F1/002Measuring the volume flow or mass flow of fluid or fluent solid material wherein the fluid passes through a meter in a continuous flow wherein the flow is in an open channel
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01FMEASURING VOLUME, VOLUME FLOW, MASS FLOW OR LIQUID LEVEL; METERING BY VOLUME
    • G01F1/00Measuring the volume flow or mass flow of fluid or fluent solid material wherein the fluid passes through a meter in a continuous flow
    • G01F1/05Measuring the volume flow or mass flow of fluid or fluent solid material wherein the fluid passes through a meter in a continuous flow by using mechanical effects
    • G01F1/52Measuring the volume flow or mass flow of fluid or fluent solid material wherein the fluid passes through a meter in a continuous flow by using mechanical effects by measuring the height of the fluid level due to the lifting power of the fluid flow
    • 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/22Indicating or measuring liquid level or level of fluent solid material, e.g. indicating in terms of volume or indicating by means of an alarm by measuring physical variables, other than linear dimensions, pressure or weight, dependent on the level to be measured, e.g. by difference of heat transfer of steam or water
    • G01F23/26Indicating or measuring liquid level or level of fluent solid material, e.g. indicating in terms of volume or indicating by means of an alarm by measuring physical variables, other than linear dimensions, pressure or weight, dependent on the level to be measured, e.g. by difference of heat transfer of steam or water by measuring variations of capacity or inductance of capacitors or inductors arising from the presence of liquid or fluent solid material in the electric or electromagnetic fields
    • G01F23/263Indicating or measuring liquid level or level of fluent solid material, e.g. indicating in terms of volume or indicating by means of an alarm by measuring physical variables, other than linear dimensions, pressure or weight, dependent on the level to be measured, e.g. by difference of heat transfer of steam or water by measuring variations of capacity or inductance of capacitors or inductors arising from the presence of liquid or fluent solid material in the electric or electromagnetic fields by measuring variations in capacitance of capacitors
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01PMEASURING LINEAR OR ANGULAR SPEED, ACCELERATION, DECELERATION, OR SHOCK; INDICATING PRESENCE, ABSENCE, OR DIRECTION, OF MOVEMENT
    • G01P5/00Measuring speed of fluids, e.g. of air stream; Measuring speed of bodies relative to fluids, e.g. of ship, of aircraft
    • G01P5/24Measuring speed of fluids, e.g. of air stream; Measuring speed of bodies relative to fluids, e.g. of ship, of aircraft by measuring the direct influence of the streaming fluid on the properties of a detecting acoustical wave
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24215Scada supervisory control and data acquisition
    • 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

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Fluid Mechanics (AREA)
  • Theoretical Computer Science (AREA)
  • Power Engineering (AREA)
  • Mathematical Physics (AREA)
  • Data Mining & Analysis (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Mathematical Optimization (AREA)
  • Acoustics & Sound (AREA)
  • Algebra (AREA)
  • Computational Mathematics (AREA)
  • Thermal Sciences (AREA)
  • Mathematical Analysis (AREA)
  • Multimedia (AREA)
  • Electromagnetism (AREA)
  • Pure & Applied Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Measurement Of Levels Of Liquids Or Fluent Solid Materials (AREA)

Abstract

本发明涉及信息技术领域,尤其涉及一种基于多通道超声波阵列的明渠流量测量方法及系统。该方法包括以下步骤:利用液位测量设备对待测液体进行测量,从而获得液位数据;获取历史水文数据以及明渠闸门历史开关数据,对历史水文数据以及明渠闸门历史开关数据进行计算,从而得到明渠闸门历史数据集;获取实时液位数据以及实时明渠闸门分层流速数据,对实时液位数据以及实时明渠闸门分层流速数据进行计算,从而得到明渠闸门开启模式数据;根据明渠闸门指令数据进行计算,从而得到明渠闸门开启模式,以发送至明渠闸门控制模块执行明渠闸门运行作业。本发明采用智能数据分析技术实现对明渠闸门运行等的智能化控制和管理。

The invention relates to the field of information technology, in particular to an open channel flow measurement method and system based on a multi-channel ultrasonic array. The method includes the following steps: using a liquid level measuring device to measure the liquid to be measured, thereby obtaining liquid level data; obtaining historical hydrological data and open channel gate historical switch data, and calculating the historical hydrological data and open channel gate historical switch data, thereby obtaining the open channel Gate historical data set; obtain real-time liquid level data and real-time open channel gate stratified velocity data, and calculate the real-time liquid level data and real-time open channel gate stratified velocity data, so as to obtain open channel gate opening mode data; calculate according to open channel gate command data , so as to obtain the open channel gate opening mode, which can be sent to the open channel gate control module to execute the open channel gate operation operation. The invention adopts the intelligent data analysis technology to realize the intelligent control and management of the operation of the open channel gate and the like.

Description

一种基于多通道超声波阵列的明渠流量测量方法及系统A method and system for measuring flow in an open channel based on a multi-channel ultrasonic array

技术领域technical field

本发明涉及信息技术领域,尤其涉及一种基于多通道超声波阵列的明渠流量测量方法及系统。The invention relates to the field of information technology, in particular to an open channel flow measurement method and system based on a multi-channel ultrasonic array.

背景技术Background technique

随着经济的发展和人口的增加,水资源的利用效率成为社会关注的焦点之一。水利明渠闸门是水利水电工程重要的组成部分,它利用明渠闸门控制流量和调节水位,以达到减轻或消除水旱灾害,满足人们生活和生产需求,在防洪治涝、农业灌溉、水力发电、航运交通、生态环境保护等方面发挥着重要作用。水利明渠闸门在保障水资源利用的同时,也需要严格的运行管理和控制。With the development of economy and the increase of population, the utilization efficiency of water resources has become one of the focuses of society. Water conservancy open channel gate is an important part of water conservancy and hydropower projects. It uses open channel gate to control flow and adjust water level to reduce or eliminate flood and drought disasters and meet people's living and production needs. Transportation, ecological environment protection and other aspects play an important role. Water conservancy open channel gates need strict operation management and control while ensuring the utilization of water resources.

传统的明渠流量测量方法主要依赖人工操作,存在控制精度有限、人力成本高的缺点。而且,在复杂的水流环境下,传统的测量方法难以实现水流的智能化管理,无法对明渠闸门进行有效的控制。The traditional open channel flow measurement method mainly relies on manual operation, which has the disadvantages of limited control accuracy and high labor cost. Moreover, in the complex water flow environment, traditional measurement methods are difficult to realize the intelligent management of water flow, and cannot effectively control the open channel gate.

发明内容Contents of the invention

本发明为解决上述技术问题,提出了一种基于多通道超声波阵列的明渠流量测量方法及系统,以解决至少一个上述技术问题。In order to solve the above technical problems, the present invention proposes an open channel flow measurement method and system based on a multi-channel ultrasonic array to solve at least one of the above technical problems.

为实现上述目的,一种基于多通道超声波阵列的明渠流量测量方法,应用于多通道超声波流速测量装置,多通道超声波流速测量装置包括超声波传感器;应用于液位测量设备,液位测量设备包括外壳、感应面板、数据传输模块、供电电池以及单片机,其中感应面板、单片机、数据传输模块以及供电电池设置在外壳内部;外壳为用于保护设备;感应面板包括多个感应区、多个感应电容转换电路、液位测量电极、液体参考电极、环境参考电极以及电容数字转换器,数据传输模块用于实现液位测量设备与数据服务器之间的通信,使液位测量设备通过无线网络将测量得到的数据传输给数据服务器;供电电池用于为液位测量设备供电;单片机为采用32位处理器架构,用于对液位数据进行采集、处理以及传输,通过内置的电容数字转换器将感应面板采集到的模拟信号转换为数字信号;该基于多通道超声波阵列的明渠流量测量方法包括以下步骤:In order to achieve the above object, an open channel flow measurement method based on a multi-channel ultrasonic array is applied to a multi-channel ultrasonic flow velocity measurement device, the multi-channel ultrasonic flow velocity measurement device includes an ultrasonic sensor; it is applied to a liquid level measurement device, and the liquid level measurement device includes a shell , sensing panel, data transmission module, power supply battery and single-chip microcomputer, wherein the sensing panel, single-chip microcomputer, data transmission module and power supply battery are set inside the shell; the shell is used to protect the equipment; the sensing panel includes multiple sensing areas, multiple sensing capacitance conversion circuit, liquid level measurement electrode, liquid reference electrode, environmental reference electrode and capacitance-to-digital converter, and the data transmission module is used to realize the communication between the liquid level measurement equipment and the data server, so that the liquid level measurement equipment can transmit the measured data through the wireless network The data is transmitted to the data server; the power supply battery is used to power the liquid level measurement equipment; the single-chip microcomputer adopts a 32-bit processor architecture to collect, process and transmit the liquid level data, and the sensor panel is collected by the built-in capacitance-to-digital converter The obtained analog signal is converted into a digital signal; the open channel flow measurement method based on the multi-channel ultrasonic array includes the following steps:

步骤S1:利用液位测量设备对待测液体进行测量,从而获得液位数据;Step S1: Using a liquid level measuring device to measure the liquid to be tested, so as to obtain liquid level data;

步骤S2:获取明渠闸门结构数据,通过多通道超声波流速测量装置获取明渠闸门分层流速数据,对明渠闸门分层流速数据以及液位数据进行计算,从而获得明渠流量数据;根据明渠闸门结构数据、明渠闸门分层流速数据、明渠流量数据以及液位数据构建明渠闸门开关公式,其中明渠闸门开关公式具体为:Step S2: Obtain the structural data of the open channel gate, obtain the stratified flow velocity data of the open channel gate through a multi-channel ultrasonic velocity measurement device, and calculate the stratified velocity data and liquid level data of the open channel gate to obtain the open channel flow data; according to the structural data of the open channel gate, Open channel gate layered velocity data, open channel flow data and liquid level data construct the open channel gate switch formula, where the open channel gate switch formula is specifically:

;

为明渠闸门阈值,/>为明渠闸门前侧面的液位值,/>为明渠闸门后侧面的液位值,/>为明渠闸门重量,/>为明渠闸门体积,/>为明渠流量值; is the open channel gate threshold, /> is the liquid level value at the front side of the open channel gate, /> is the liquid level value on the back side of the open channel gate, /> is the weight of the open channel gate, /> is the open channel gate volume, /> is the open channel flow value;

步骤S3:获取历史水文数据以及明渠闸门历史开关数据,对历史水文数据以及明渠闸门历史开关数据进行计算,从而得到明渠闸门历史数据集;Step S3: Obtain historical hydrological data and open channel gate historical switch data, and calculate the historical hydrological data and open channel gate historical switch data, so as to obtain the open channel gate historical data set;

步骤S4:根据明渠闸门开关公式并利用明渠闸门历史数据集构建明渠闸门智能开关模型;Step S4: Construct an open channel gate intelligent switch model according to the open channel gate switch formula and use the open channel gate historical data set;

步骤S5:获取实时液位数据以及实时明渠闸门分层流速数据,对实时液位数据以及实时明渠闸门分层流速数据进行计算,从而得到明渠闸门指令数据;Step S5: Obtain real-time liquid level data and real-time open channel gate stratified flow velocity data, and calculate the real-time liquid level data and real-time open channel gate stratified velocity data to obtain open channel gate instruction data;

步骤S6:根据明渠闸门指令数据进行计算,从而得到明渠闸门开启模式,以发送至明渠闸门控制模块执行明渠闸门运行作业。Step S6: Calculate according to the open channel gate instruction data, so as to obtain the open channel gate opening mode, and send it to the open channel gate control module to execute the open channel gate operation operation.

本发明利用液位测量设备对待测液体进行测量,使用液位测量装备测量待测液体能减少人工测量的工作量,提高了工作效率,降低操作风险,并能增加液位数据的准确性和真实性,从而获得液位数据;获取明渠闸门结构数据,通过多通道超声波流速测量装置获取明渠闸门分层流速数据,对明渠闸门分层流速数据以及液位数据进行计算,从而获得明渠流量数据;根据明渠闸门结构数据、明渠闸门分层流速数据、明渠流量数据以及液位数据构建明渠闸门开关公式,构建明渠闸门开关公式能提高明渠闸门的开关控制精度和稳定性,从而得到明渠闸门开关公式;获取历史水文数据以及明渠闸门历史开关数据,对历史水文数据以及明渠闸门历史开关数据进行计算,从而得到明渠闸门历史数据集,明渠闸门历史数据集可以为智能水利明渠闸门控制系统提供参考依据,进而提高系统的精度和效率;根据明渠闸门开关公式并利用明渠闸门历史数据集构建明渠闸门智能开关模型,明渠闸门智能开关模型利用明渠闸门开关公式和明渠闸门历史数据集能够构建了更为准确和稳定的数学模型,能够更好地预测当前水文环境下明渠闸门的控制状态,避免人为误差和数据错误对水利工程造成的影响;获取实时液位数据以及实时明渠闸门分层流速数据,对实时液位数据以及实时明渠闸门分层流速数据进行计算,根据实时液位数据和实时明渠闸门分层流速数据进行计算,能得到更加准确和真实的数据,提高水利工程的精度,从而得到明渠闸门指令数据;根据明渠闸门指令数据进行计算,从而得到明渠闸门开启模式,以发送至明渠闸门控制模块执行明渠闸门运行作业,利用计算得到的明渠闸门开启模式,可以实现对水闸的信息,提高水利工程的智能化程度,可以得到最佳的明渠闸门开启模式,从而确保明渠闸门的精准控制,提高水位的稳定性和准确性,减少了人工干预的工作量,提高了明渠闸门安全运行的可靠性和稳定性,降低了水利工程的人力成本。The invention uses liquid level measuring equipment to measure the liquid to be measured, and using the liquid level measuring equipment to measure the liquid to be measured can reduce the workload of manual measurement, improve work efficiency, reduce operational risks, and increase the accuracy and authenticity of liquid level data To obtain the liquid level data; obtain the structure data of the open channel gate, obtain the stratified flow velocity data of the open channel gate through the multi-channel ultrasonic velocity measurement device, and calculate the stratified velocity data and liquid level data of the open channel gate to obtain the open channel flow data; Open channel gate structure data, open channel gate layered velocity data, open channel flow data and liquid level data construct open channel gate switch formula, and constructing open channel gate switch formula can improve the control accuracy and stability of open channel gate, so as to obtain the open channel gate switch formula; Historical hydrological data and open channel gate historical switch data are calculated by historical hydrological data and open channel gate historical switch data to obtain the open channel gate historical data set. The open channel gate historical data set can provide reference for the intelligent water conservancy open channel gate control system, thereby improving The accuracy and efficiency of the system; according to the open channel gate switch formula and the open channel gate historical data set to build the open channel gate intelligent switch model, the open channel gate intelligent switch model can build a more accurate and stable The mathematical model can better predict the control state of the open channel gate in the current hydrological environment, and avoid the impact of human errors and data errors on water conservancy projects; obtain real-time liquid level data and real-time open channel gate layered flow rate data, and improve real-time liquid level data. And real-time open channel gate layered velocity data for calculation, based on real-time liquid level data and real-time open channel gate layered velocity data to calculate, can get more accurate and real data, improve the accuracy of water conservancy projects, and thus obtain open channel gate instruction data; The open channel gate command data is calculated to obtain the open channel gate opening mode, which can be sent to the open channel gate control module to execute the open channel gate operation operation. Using the calculated open channel gate opening mode, the information on the sluice gate can be realized and the intelligence of water conservancy projects can be improved. , the best opening mode of the open channel gate can be obtained, so as to ensure the precise control of the open channel gate, improve the stability and accuracy of the water level, reduce the workload of manual intervention, improve the reliability and stability of the safe operation of the open channel gate, and reduce the The labor cost of water conservancy projects.

可选地,感应面板上多个感应区从下到上依次等距布置,多个感应区分别与多个感应电容转换电路一一对应,每个感应区与对应的感应电容转换电性连接,每相邻两个的感应区之间设置有一个液位测量电极,液体参考电极位于感应面板的底部,环境参考电极位于感应面板的顶部,且处于液位测量量程以外的位置,液位测量电极与电容数字转换器对应,每个液位测量电极与对应的电容数字转换器电性连接,液体参考电极和环境参考电极均与每个电容数字转换器连接,感应电容转换电路和电容数字转换器均与单片机连接;Optionally, a plurality of sensing areas on the sensing panel are arranged equidistantly from bottom to top, and the plurality of sensing areas are in one-to-one correspondence with a plurality of sensing capacitance conversion circuits, and each sensing area is electrically connected to the corresponding sensing capacitance conversion, A liquid level measuring electrode is set between every two adjacent sensing areas, the liquid reference electrode is located at the bottom of the sensing panel, the environmental reference electrode is located at the top of the sensing panel, and is outside the liquid level measurement range, and the liquid level measuring electrode Corresponding to the capacitance-to-digital converter, each liquid level measurement electrode is electrically connected to the corresponding capacitance-to-digital converter, the liquid reference electrode and the environment reference electrode are connected to each capacitance-to-digital converter, the sensing capacitance conversion circuit and the capacitance-to-digital converter Both are connected with the single chip microcomputer;

感应区为导电面,根据产生的感应电容值大小能够区分有无液体覆盖;The sensing area is a conductive surface, and it can be distinguished whether there is liquid coverage or not according to the generated sensing capacitance value;

感应区和液位测量电极在测量液位时不直接接触待测液体,以实现隔离式测量;The sensing area and the liquid level measurement electrode do not directly contact the liquid to be measured when measuring the liquid level, so as to realize isolated measurement;

感应面板上的感应区数量由液位量程确定。The number of sensing zones on the sensing panel is determined by the liquid level range.

本发明中的感应面板上每个感应区都可以被视为一个电容器,液位测量电极作为另一个电容器的一部分,液体和环境参考电极也作为电容器的一部分。因为液体参考电极和环境参考电极都是固定的,所以它们的电容不会改变,而液位测量电极的电容会随着液位的变化而改变,这种基于电容测量原理的感应面板精度高、响应时间快以及可靠性高。感应区根据产生的感应电容值大小区分有无液体覆盖能够实现对液位的快速准确判断,能有效减少误报率,降低误诊率,提高液位检测的精度和灵敏度。感应区为导电面可以适用于各种液体环境,并且有精度高响应速度快的特点。隔离式测量可以保护电极和感应区免受液体的腐蚀或损害,提高测量设备的寿命和可靠性,隔离式测量不直接接触液体,减少了测量误差的可能性,提高了测量的准确性和稳定性。感应区数量的核实选择能够提高液位控制的精度和速度。Each sensing area on the sensing panel in the present invention can be regarded as a capacitor, the liquid level measuring electrode is a part of another capacitor, and the liquid and environment reference electrodes are also a part of the capacitor. Because the liquid reference electrode and the environment reference electrode are fixed, their capacitance will not change, while the capacitance of the liquid level measurement electrode will change with the change of the liquid level. This sensing panel based on the principle of capacitance measurement has high precision, Fast response time and high reliability. The sensing area distinguishes whether there is liquid coverage according to the generated sensing capacitance value, which can realize the rapid and accurate judgment of the liquid level, effectively reduce the false alarm rate, reduce the misdiagnosis rate, and improve the accuracy and sensitivity of liquid level detection. The sensing area is a conductive surface, which can be applied to various liquid environments, and has the characteristics of high precision and fast response. The isolated measurement can protect the electrode and the sensing area from corrosion or damage of the liquid, improve the life and reliability of the measuring equipment, the isolated measurement does not directly contact the liquid, reduces the possibility of measurement error, and improves the accuracy and stability of the measurement sex. Verified selection of the number of sensing zones can improve the accuracy and speed of liquid level control.

可选地,步骤S1具体为:Optionally, step S1 is specifically:

步骤S11:将液位测量设备部分或全部浸没于待测液体后,感应面板对待测液体从下往上检测,根据感应面板中感应区产生的感应电容值大小进行数字转换,获得感应区输出状态,其中感应区输出状态包括有液体状态以及无液体状态;Step S11: After part or all of the liquid level measuring device is submerged in the liquid to be tested, the sensing panel detects the liquid to be measured from bottom to top, and performs digital conversion according to the sensing capacitance value generated in the sensing area of the sensing panel to obtain the output state of the sensing area , where the output state of the sensing area includes liquid state and liquid-free state;

步骤S12:根据感应区输出状态通过判别处理得到当前液位线所在的感应区,将当前液位线所在的感应区对应高度作为第一级测量结果数据;Step S12: According to the output state of the sensing area, the sensing area where the current liquid level line is located is obtained through discrimination processing, and the height corresponding to the sensing area where the current liquid level line is located is taken as the first-level measurement result data;

步骤S13:获取液位测量电极的电容值、液体参考电极的电容值以及环境参考电极的电容值,对液位测量电极的电容值、液体参考电极的电容值以及环境参考电极的电容值进行计算,获得第二级测量结果数据,其中第二级测量结果数据为当前液位线所在的感应区与上方的感应区之间的液位高度;Step S13: Obtain the capacitance value of the liquid level measurement electrode, the capacitance value of the liquid reference electrode, and the capacitance value of the environmental reference electrode, and calculate the capacitance value of the liquid level measurement electrode, the capacitance value of the liquid reference electrode, and the capacitance value of the environmental reference electrode , to obtain the second-level measurement result data, wherein the second-level measurement result data is the liquid level height between the sensing area where the current liquid level line is located and the upper sensing area;

步骤S14:对第一级测量结果数据以及第二级测量结果数据进行计算,从而得到液位数据。Step S14: Calculate the first-level measurement result data and the second-level measurement result data to obtain liquid level data.

本发明将液位测量设备部分或全部浸没于待测液体,感应面板对待测液体从下往上检测,从下往上检测比从上往下检测更容易应对液位的变化,能够检测更广泛的液位范围。根据感应面板中感应区产生的感应电容值大小进行数字转换,能够快速、准确以及高敏感度的得出感应区输出状态,从而获得感应区输出状态。根据感应区输出状态通过判别处理得到当前液位线所在的感应区,将当前液位线所在的感应区对应高度作为第一级测量结果数据。获取液位测量电极的电容值、液体参考电极的电容值以及环境参考电极的电容值,对液位测量电极的电容值、液体参考电极的电容值以及环境参考电极的电容值进行计算,获得第二级测量结果数据,利用液位测量电极的电容值、液体参考电极的电容值以及环境参考电极的电容值进行计算可以修正测量结果中的误差,提高测量精度和可靠性,从而更加准确地测量液位高度。对第一级测量结果数据以及第二级测量结果数据进行计算,从而得到液位数据。将第一级测量结果数据和第二级测量结果数据进行计算,可以得到更为准确、可靠的液位数据。In the present invention, part or all of the liquid level measuring equipment is submerged in the liquid to be measured, and the sensing panel detects the liquid to be measured from bottom to top, and detection from bottom to top is easier to deal with changes in liquid level than detection from top to bottom, and can detect more widely liquid level range. Digital conversion is performed according to the magnitude of the sensing capacitance generated by the sensing area in the sensing panel, so that the output state of the sensing area can be quickly, accurately and highly sensitively obtained, thereby obtaining the output state of the sensing area. According to the output state of the sensing area, the sensing area where the current liquid level line is located is obtained through discrimination processing, and the corresponding height of the sensing area where the current liquid level line is located is taken as the first-level measurement result data. Obtain the capacitance value of the liquid level measurement electrode, the capacitance value of the liquid reference electrode and the capacitance value of the environmental reference electrode, calculate the capacitance value of the liquid level measurement electrode, the capacitance value of the liquid reference electrode and the capacitance value of the environmental reference electrode, and obtain the first Secondary measurement result data, using the capacitance value of the liquid level measurement electrode, the capacitance value of the liquid reference electrode and the capacitance value of the environmental reference electrode for calculation can correct the error in the measurement result, improve the measurement accuracy and reliability, and thus measure more accurately Liquid level height. Calculate the first-level measurement result data and the second-level measurement result data to obtain liquid level data. By calculating the first-level measurement result data and the second-level measurement result data, more accurate and reliable liquid level data can be obtained.

可选地,步骤S3具体为:Optionally, step S3 is specifically:

获取历史水文数据以及明渠闸门历史开关数据,利用明渠闸门开关公式对历史水文数据进行计算,从而得到明渠闸门历史水文数据;Obtain historical hydrological data and historical opening and closing data of the open channel gate, and use the open channel gate opening and closing formula to calculate the historical hydrological data, so as to obtain the historical hydrological data of the open channel gate;

对明渠闸门历史水文数据以及明渠闸门历史开关数据基于时间顺序进行时序合并,从而生成明渠闸门历史数据集。The historical hydrological data of open channel gates and the historical opening and closing data of open channel gates are time-series merged based on chronological order to generate the historical data set of open channel gates.

本发明获取历史水文数据以及明渠闸门历史开关数据,利用明渠闸门开关公式对历史水文数据进行计算,可以有效计算出明渠闸门的高度和宽度的最佳值、明渠闸门的最佳开门时间和关门时间,从而得到明渠闸门历史水文数据。对明渠闸门历史水文数据以及明渠闸门历史开关数据基于时间顺序进行时序合并,能够更好地分析水文条件对明渠闸门开关的影响,能够获取明渠闸门的正常运行范围和存在异常的情况,提高明渠闸门运行的稳定性、准确性以及可靠性,从而生成明渠闸门历史数据集。The invention acquires historical hydrological data and open channel gate historical switch data, uses the open channel gate switch formula to calculate the historical hydrological data, and can effectively calculate the optimal value of the height and width of the open channel gate, and the optimal opening time and closing time of the open channel gate , so as to obtain the historical hydrological data of the open channel gate. The historical hydrological data of the open channel gate and the historical opening and closing data of the open channel gate are merged in time series based on the time sequence, which can better analyze the influence of hydrological conditions on the opening and closing of the open channel gate, obtain the normal operating range and abnormal conditions of the open channel gate, and improve the open channel gate. The stability, accuracy and reliability of the operation to generate a historical dataset of open channel gates.

可选地,步骤S4具体为:Optionally, step S4 is specifically:

利用明渠闸门开关公式对明渠闸门历史数据集进行计算,从而得到明渠闸门开关阈值数据集,其中明渠闸门开关阈值数据集包括明渠闸门全开阈值数据、明渠闸门挡流阈值数据与明渠闸门半开阈值数据;Use the open channel gate switch formula to calculate the open channel gate historical data set, so as to obtain the open channel gate switch threshold data set, in which the open channel gate switch threshold data set includes open channel gate full open threshold data, open channel gate flow blocking threshold data and open channel gate half open threshold data data;

根据明渠闸门开关公式并利用明渠闸门开关阈值数据构建明渠闸门智能开关模型;According to the open channel gate switch formula and using the open channel gate switch threshold data, the open channel gate intelligent switch model is constructed;

将明渠闸门智能开关模型作为输入数据,输入至数据分析模块,实现数据分析模块对实时数据进行监测分析。The open channel gate intelligent switch model is used as input data, which is input to the data analysis module, so that the data analysis module can monitor and analyze real-time data.

本发明利用明渠闸门开关公式对明渠闸门历史数据集进行计算,可以得到合适的明渠闸门开关阈值数据集,提高明渠闸门的稳定性和可靠性,避免出现操作失误和设备故障,从而得到明渠闸门开关阈值数据集。根据明渠闸门开关公式并利用明渠闸门开关阈值数据构建明渠闸门智能开关模型,构建明渠闸门智能开关模型能避免传统的明渠闸门开关可能存在的误判、误操作等问题,提高了明渠闸门开关的准确度和稳定性,可以自动实现明渠闸门的开启和关闭,避免了人工干预的成本,从而节约了成本,智能开关模型的自动化操作可以有效降低了操作人员的风险,提高了操作的安全性。将明渠闸门智能开关模型作为输入数据,输入至数据分析模块,实现数据分析模块对实时数据进行监测分析,能够帮助监测发生的故障和隐患,以提高系统的效率和安全性。The present invention uses the open channel gate switch formula to calculate the historical data set of the open channel gate, can obtain a suitable open channel gate switch threshold data set, improves the stability and reliability of the open channel gate, avoids operating errors and equipment failures, and thus obtains the open channel gate switch Threshold dataset. According to the open channel gate switch formula and using the open channel gate switch threshold data to construct the open channel gate intelligent switch model, the construction of the open channel gate intelligent switch model can avoid the problems of misjudgment and misoperation that may exist in the traditional open channel gate switch, and improve the accuracy of the open channel gate switch. The accuracy and stability can automatically realize the opening and closing of the open channel gate, avoiding the cost of manual intervention, thereby saving costs. The automatic operation of the intelligent switch model can effectively reduce the risk of the operator and improve the safety of the operation. The open channel gate intelligent switch model is used as input data to the data analysis module, and the data analysis module can monitor and analyze real-time data, which can help monitor the occurrence of failures and hidden dangers, so as to improve the efficiency and safety of the system.

可选地,步骤S6具体为:Optionally, step S6 is specifically:

步骤S61:根据明渠闸门开关阈值数据对明渠闸门指令数据进行分类计算,从而得到明渠闸门开启模式数据,其中明渠闸门开启模式数据包括明渠闸门全开模式数据、明渠闸门半开模式数据以及明渠闸门挡流模式数据;Step S61: Classify and calculate the open channel gate instruction data according to the open channel gate switch threshold data, so as to obtain the open channel gate opening mode data, wherein the open channel gate opening mode data includes the open channel gate full open mode data, the open channel gate half open mode data and the open channel gate stopper stream mode data;

步骤S62:将明渠闸门开启模式数据发送至明渠闸门控制模块执行明渠闸门运行作业,使明渠闸门根据明渠闸门开启模式数据使用不同的明渠闸门开启模式,其中明渠闸门开启模式包括明渠闸门全开模式、明渠闸门半开模式以及明渠闸门挡流模式;Step S62: Send the open channel gate opening mode data to the open channel gate control module to execute the open channel gate operation, so that the open channel gate uses different open channel gate opening modes according to the open channel gate opening mode data, wherein the open channel gate opening mode includes open channel gate full open mode, Open channel gate half-open mode and open channel gate blocking mode;

步骤S63:获取实时的明渠闸门开启模式,并在明渠闸门开启模式与对应的明渠闸门开启模式数据不符时,改变明渠闸门开启模式,以使明渠闸门开启模式与明渠闸门开启模式数据相匹配。Step S63: Obtain the real-time open channel gate opening mode, and change the open channel gate opening mode when the open channel gate opening mode does not match the corresponding open channel gate opening mode data, so that the open channel gate opening mode matches the open channel gate opening mode data.

本发明根据明渠闸门开关阈值数据对明渠闸门指令数据进行分类计算,从而得到明渠闸门开启模式数据,能够得出不同开启模式下的水流情况,进而确定最佳的开启模式,能够提高明渠闸门使用寿命,延长设备的维护周期,减少明渠闸门故障。将明渠闸门开启模式数据发送至明渠闸门控制模块执行明渠闸门运行作业,使明渠闸门根据明渠闸门开启模式数据使用不同的明渠闸门开启模式。获取实时的明渠闸门开启模式,并在明渠闸门开启模式与对应的明渠闸门开启模式数据不符时,改变明渠闸门开启模式,以使明渠闸门开启模式与开启模式数据相匹配,获取实时的明渠闸门开启模式并做出适当的调整,可以确保设备按照合适的模式进行工作,提高设备的稳定性和可靠性,适当的开启模式可以使设备工作更加高效,节约资源和成本,改变明渠闸门开启模式以适应当前工作状态可以最大程度地提高设备的效率。The present invention classifies and calculates open channel gate instruction data according to open channel gate switch threshold data, thereby obtaining open channel gate opening mode data, can obtain water flow conditions under different opening modes, and then determine the best opening mode, and can improve the service life of the open channel gate , prolong the maintenance cycle of equipment, and reduce the failure of open channel gates. The open channel gate opening mode data is sent to the open channel gate control module to execute the open channel gate operation operation, so that the open channel gate uses different open channel gate opening modes according to the open channel gate opening mode data. Obtain the real-time open channel gate opening mode, and change the open channel gate open mode when the open channel gate open mode does not match the corresponding open channel gate open mode data, so that the open channel gate open mode matches the open mode data, and obtain real-time open channel gate open Mode and making appropriate adjustments can ensure that the equipment works in an appropriate mode and improve the stability and reliability of the equipment. The appropriate opening mode can make the equipment work more efficiently, save resources and costs, and change the open channel gate opening mode to adapt to The current working state can maximize the efficiency of the equipment.

可选地,步骤S12具体包括以下步骤:Optionally, step S12 specifically includes the following steps:

从下往上检测感应区输出状态,直至检测出连续两个感应区输出状态为无液体状态,从而得到液位感应区;Detect the output state of the sensing area from bottom to top until it detects that the output state of two consecutive sensing areas is a liquid-free state, thereby obtaining the liquid level sensing area;

在液位感应区的上方继续往上检测感应区输出状态;若往上检测出感应区输出状态都为无液体状态,则判别当前液位位于液位感应区,并将这液位感应区位于下方的感应区高度作为第一级测量结果数据。Continue to detect the output state of the sensing area above the liquid level sensing area; if it is detected that the output state of the sensing area is no liquid, then it is judged that the current liquid level is located in the liquid level sensing area, and the liquid level sensing area is located in the liquid level sensing area. The height of the sensing area below is used as the first-level measurement result data.

本发明从下往上检测感应区输出状态,直至检测出连续两个感应区输出状态为无液体状态,通过检测的连续两个感应区输出状态为无液体状态,可以排除单个感应区输出状态的错误,从而提高了可靠性,从而得到液位感应区。在液位感应区的上方继续往上检测感应区输出状态;若往上检测出感应区输出状态都为无液体状态,则判别当前液位位于液位感应区,并将这液位感应区位于下方的感应区高度作为第一级测量结果数据,采用多级测量,将液位感应区位于下方的感应区高度作为第一级测量结果数据,不但可以减小误差,还可以提高测量的精度和准确度,从而更准确地测量液位的高度。The invention detects the output state of the sensing area from bottom to top until it detects that the output state of two consecutive sensing areas is an anhydrous state, and the output state of two consecutive sensing areas passed through detection is an anhydrous state, which can eliminate the output state of a single sensing area errors, thereby improving reliability, resulting in a liquid level sensing area. Continue to detect the output state of the sensing area above the liquid level sensing area; if it is detected that the output state of the sensing area is no liquid, then it is judged that the current liquid level is located in the liquid level sensing area, and the liquid level sensing area is located in the liquid level sensing area. The height of the sensing area below is used as the first-level measurement result data. Using multi-level measurement, the height of the sensing area located below the liquid level sensing area is used as the first-level measurement result data, which can not only reduce the error, but also improve the accuracy and accuracy of the measurement. Accuracy, so as to measure the height of the liquid level more accurately.

可选地,其中步骤S13中的对液位测量电极的电容值、液体参考电极的电容值以及环境参考电极的电容值进行计算具体为:Optionally, the calculation of the capacitance value of the liquid level measurement electrode, the capacitance value of the liquid reference electrode, and the capacitance value of the environment reference electrode in step S13 is specifically:

根据液位测量电极的电容值、液体参考电极的电容值以及环境参考电极的电容值构建感应区距离公式,其中感应区距离公式具体为:According to the capacitance value of the liquid level measurement electrode, the capacitance value of the liquid reference electrode and the capacitance value of the environmental reference electrode, the distance formula of the sensing area is constructed, and the formula of the distance of the sensing area is specifically:

;

其中,为感应区距离,/>为当前液位线的液位测量电极的电容值,/>为没有待测液体时的液位测量电极的电容值,/>为液体参考电极的电容值,/>为环境参考电极的电容值,/>为转换系数;in, is the sensing area distance, /> Measure the capacitance value of the electrode for the liquid level of the current liquid level line, /> Capacitance value of the electrode for level measurement in the absence of liquid to be measured, /> is the capacitance value of the liquid reference electrode, /> is the capacitance value of the environmental reference electrode, /> is the conversion factor;

本发明中的感应区距离公式充分考虑了影响感应区距离的当前液位线的液位测量电极的电容值,没有待测液体时的液位测量电极的电容值/>,液体参考电极的电容值,环境参考电极的电容值/>,形成了/>的函数关系,实现了利用当前液位线的液位测量电极的电容值、没有待测液体时的液位测量电极的电容值、液体参考电极的电容值以及环境参考电极的电容值计算感应区距离,并通过转换系数/>的引入,可以根据待测液体的种类适当调整转换系数,进一步提高转换系数的适用性,该公式考虑到不同液体对电极电容值的影响,适用于各种液体的测量,能够有效提高感应区距离的准确性和真实性。The sensing area distance formula in the present invention fully considers the capacitance value of the liquid level measuring electrode of the current liquid level line that affects the sensing area distance , the capacitance value of the liquid level measuring electrode when there is no liquid to be measured /> , the capacitance value of the liquid reference electrode , the capacitance value of the environmental reference electrode /> , forming a /> The functional relationship of the current liquid level line, the capacitance value of the liquid level measurement electrode, the capacitance value of the liquid level measurement electrode when there is no liquid to be measured, the capacitance value of the liquid reference electrode and the capacitance value of the environmental reference electrode are used to calculate the sensing area. distance, and pass the conversion factor /> The introduction of the conversion coefficient can be properly adjusted according to the type of liquid to be measured, and the applicability of the conversion coefficient can be further improved. This formula takes into account the influence of different liquids on the electrode capacitance value, and is suitable for the measurement of various liquids, which can effectively increase the distance of the sensing area. accuracy and authenticity.

利用感应区距离公式对液位测量电极的电容值、液体参考电极的电容值以及环境参考电极的电容值进行计算,获得感应区距离,并将感应区距离作为第二级测量结果数据。The capacitance value of the liquid level measurement electrode, the capacitance value of the liquid reference electrode and the capacitance value of the environment reference electrode are calculated by using the distance formula of the sensing area to obtain the distance of the sensing area, and the distance of the sensing area is used as the second-level measurement result data.

本发明根据液位测量电极的电容值、液体参考电极的电容值以及环境参考电极的电容值构建感应区距离公式,构建感应区距离公式可以消除电极、液体及环境等因素对电容的影响,减小误差,提高液位测量的精度。利用感应区距离公式对液位测量电极的电容值、液体参考电极的电容值以及环境参考电极的电容值进行计算,获得感应区距离,并将感应区距离作为第二级测量结果数据,使用感应区距离作为第二级测量结果数据,可以避免电容测量中不稳定的因素对测量结果的影响,从而获得更加稳定的测量信号。According to the capacitance value of the liquid level measuring electrode, the capacitance value of the liquid reference electrode and the capacitance value of the environment reference electrode, the invention constructs the distance formula of the sensing area, and the construction of the distance formula of the sensing area can eliminate the influence of factors such as electrodes, liquid, and the environment on the capacitance, and reduce the Small error, improve the accuracy of liquid level measurement. Use the distance formula of the sensing area to calculate the capacitance value of the liquid level measurement electrode, the capacitance value of the liquid reference electrode and the capacitance value of the environmental reference electrode to obtain the distance of the sensing area, and use the distance of the sensing area as the second-level measurement result data. As the second-level measurement result data, the zone distance can avoid the influence of unstable factors in the capacitance measurement on the measurement result, so as to obtain a more stable measurement signal.

可选地,步骤S61中的分类计算为利用优化二级模型进行分类计算,其中优化二级模型的构建方法包括以下步骤:Optionally, the classification calculation in step S61 is to use the optimized secondary model to perform classification calculation, wherein the construction method of the optimized secondary model includes the following steps:

通过预设的划分比例对明渠闸门指令数据进行划分,从而获得训练集和测试集;Divide the open channel gate command data by a preset division ratio to obtain a training set and a test set;

利用CatBoost算法对训练集以及测试集进行建模,从而得到CatBoost一级模型;Use the CatBoost algorithm to model the training set and test set to obtain the CatBoost first-level model;

利用决策树算法对训练集以及测试集进行建模,从而得到决策树一级模型;Use the decision tree algorithm to model the training set and test set, so as to obtain the decision tree first-level model;

利用CatBoost一级模型以及决策树一级模型对测试集进行预测,从而得到预测结果;Use the CatBoost first-level model and the decision tree first-level model to predict the test set to obtain the prediction results;

利用预测结果通过支持向量机建模算法进行建模,从而构建二级模型,并利用测试集对二级模型进行迭代均方值误差拟合,从而获得优化二级模型。The predicted results are used to build a secondary model through the support vector machine modeling algorithm, and the test set is used to iteratively fit the secondary model with mean square error to obtain an optimized secondary model.

本发明中的优化二级模型,将潮位范围数据通过预设的划分比例进行划分,将明渠闸门指令数据进行划分能够防止过拟合、验证模型的能力以及提高模型的可靠性,从而得到训练集和测试集。使用CatBoost算法对训练集以及测试集进行建模,CatBoost算法能够有效降低过拟合风险、能够自动参数调优、预测准确度高的优势,从而得到CatBoost一级模型。使用决策树算法对训练集以及测试集进行建模,决策树算法能够有效地进行特征选择,可以提高模型精度和效率,能够有效降低噪声数据的影响,从而得到决策树一级模型。利用CatBoost一级模型以及决策树一级模型对测试集进行预测,从而得到预测结果。利用预测结果通过线性回归方法进行建模,从而构建二级模型,使用CatBoost一级模型以及决策树一级模型对测试集进行预测的预测结果作为特征来训练二级向量机模型,与使用单个模型相比,这种集成学习技术可以带来更好的准确性和鲁棒性。利用测试集对二级模型进行迭代均方值误差拟合,从而获得优化二级模型,利用测试集对二级模型进行迭代均方误差拟合可以有效地优化模型的预测性能,提高模型的泛化能力,并评估模型的预测性能。The optimized two-level model in the present invention divides the tide level range data through the preset division ratio, and divides the open channel gate instruction data to prevent over-fitting, verify the ability of the model and improve the reliability of the model, thereby obtaining the training set and the test set. Use the CatBoost algorithm to model the training set and test set. The CatBoost algorithm can effectively reduce the risk of overfitting, can automatically tune parameters, and has the advantages of high prediction accuracy, thus obtaining the CatBoost first-level model. The decision tree algorithm is used to model the training set and the test set. The decision tree algorithm can effectively select features, improve the accuracy and efficiency of the model, and effectively reduce the influence of noise data, thereby obtaining the first-level model of the decision tree. The first-level model of CatBoost and the first-level decision tree model are used to predict the test set, so as to obtain the prediction results. Use the prediction results to model through the linear regression method to build a secondary model, use the CatBoost primary model and the decision tree primary model to predict the prediction results of the test set as features to train the secondary vector machine model, and use a single model Compared with , this ensemble learning technique can bring better accuracy and robustness. Using the test set to perform iterative mean square error fitting on the second-level model to obtain an optimized second-level model, using the test set to perform iterative mean square error fitting on the second-level model can effectively optimize the prediction performance of the model and improve the generality of the model. capacity and evaluate the predictive performance of the model.

可选地,本说明书中还提供一种基于多通道超声波阵列的明渠流量测量系统,包括:Optionally, this specification also provides an open channel flow measurement system based on a multi-channel ultrasonic array, including:

至少一个处理器;以及,at least one processor; and,

与至少一个处理器通信连接的存储器;其中,memory communicatively coupled to at least one processor; wherein,

存储器存储有可被至少一个处理器执行的计算机程序,计算机程序被至少一个处理器执行,以使至少一个处理器能够执行上述任一项的基于多通道超声波阵列的明渠流量测量方法。The memory stores a computer program that can be executed by at least one processor, and the computer program is executed by at least one processor, so that at least one processor can execute any one of the methods for measuring open channel flow based on a multi-channel ultrasonic array described above.

本发明中一种基于多通道超声波阵列的明渠流量测量系统,该系统能够实现本发明任意一种基于多通道超声波阵列的明渠流量测量方法,用于联合各个设备之间的操作与信号传输的媒介,以完成基于多通道超声波阵列的明渠流量测量方法,系统内部结构互相协作,从而完善水利明渠闸门的控制和应用,实现对水利明渠闸门的智能化控制。An open channel flow measurement system based on a multi-channel ultrasonic array in the present invention, the system can realize any open channel flow measurement method based on a multi-channel ultrasonic array in the present invention, and is used as a medium for combining operation and signal transmission between various devices , in order to complete the open channel flow measurement method based on the multi-channel ultrasonic array, the internal structure of the system cooperates with each other, so as to improve the control and application of the water conservancy open channel gate, and realize the intelligent control of the water conservancy open channel gate.

附图说明Description of drawings

通过阅读参照以下附图所作的对非限制性实施所作的详细描述,本申请的其它特征、目的和优点将会变得更明显:Other characteristics, objects and advantages of the present application will become more apparent by reading the detailed description of a non-limiting implementation made with reference to the following drawings:

图1为本发明一种基于多通道超声波阵列的明渠流量测量方法的步骤流程示意图;Fig. 1 is a schematic flow chart of the steps of an open channel flow measurement method based on a multi-channel ultrasonic array of the present invention;

图2为本发明中步骤S1的详细实施步骤流程示意图;Fig. 2 is a schematic flow chart of the detailed implementation steps of step S1 in the present invention;

图3为本发明中步骤S6的详细实施步骤流程示意图;Fig. 3 is the schematic flow chart of the detailed implementation steps of step S6 in the present invention;

本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization of the purpose of the present invention, functional characteristics and advantages will be further described in conjunction with the embodiments and with reference to the accompanying drawings.

具体实施方式Detailed ways

下面结合附图对本发明专利的技术方法进行清楚、完整的描述,显然,所描述的实施例是本发明的一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域所属的技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following is a clear and complete description of the technical method of the patent of the present invention in conjunction with the accompanying drawings. Apparently, the described embodiments are part of the embodiments of the present invention, rather than all of them. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts fall within the protection scope of the present invention.

此外,附图仅为本发明的示意性图解,并非一定是按比例绘制。图中相同的附图标记表示相同或类似的部分,因而将省略对它们的重复描述。附图中所示的一些方框图是功能实体,不一定必须与物理或逻辑上独立的实体相对应。可以采用软件形式来实现功能实体,或在一个或多个硬件模块或集成电路中实现这些功能实体,或在不同网络和/或处理器方法和/或微控制器方法中实现这些功能实体。Furthermore, the drawings are merely schematic illustrations of the invention and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus repeated descriptions thereof will be omitted. Some of the block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically separate entities. The functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different network and/or processor methods and/or microcontroller methods.

应当理解的是,虽然在这里可能使用了术语“第一”、“第二”等等来描述各个单元,但是这些单元不应当受这些术语限制。使用这些术语仅仅是为了将一个单元与另一个单元进行区分。举例来说,在不背离示例性实施例的范围的情况下,第一单元可以被称为第二单元,并且类似地第二单元可以被称为第一单元。这里所使用的术语“和/或”包括其中一个或更多所列出的相关联项目的任意和所有组合。It will be understood that although the terms "first", "second", etc. may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another. For example, a first element could be termed a second element, and, similarly, a second element could be termed a first element, without departing from the scope of example embodiments. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.

请参考图1,本发明提供一种基于多通道超声波阵列的明渠流量测量方法,在本实例中,所述基于多通道超声波阵列的明渠流量测量方法包括以下步骤:Please refer to FIG. 1, the present invention provides a method for measuring open channel flow based on a multi-channel ultrasonic array. In this example, the method for measuring open channel flow based on a multi-channel ultrasonic array includes the following steps:

步骤S1:利用液位测量设备对待测液体进行测量,从而获得液位数据;Step S1: Using a liquid level measuring device to measure the liquid to be tested, so as to obtain liquid level data;

本发明实施例中利用液位测量设备对待测液体进行测量,从而获得液位数据,对液位数据进行数据清洗,保证数据的准确性和可靠性。In the embodiments of the present invention, liquid level measuring equipment is used to measure the liquid to be measured, thereby obtaining liquid level data, and performing data cleaning on the liquid level data to ensure the accuracy and reliability of the data.

步骤S2:获取明渠闸门结构数据,通过多通道超声波流速测量装置获取明渠闸门分层流速数据,对明渠闸门分层流速数据以及液位数据进行计算,从而获得明渠流量数据;根据明渠闸门结构数据、明渠闸门分层流速数据、明渠流量数据以及液位数据构建明渠闸门开关公式,其中明渠闸门开关公式具体为:Step S2: Obtain the structural data of the open channel gate, obtain the stratified flow velocity data of the open channel gate through a multi-channel ultrasonic velocity measurement device, and calculate the stratified velocity data and liquid level data of the open channel gate to obtain the open channel flow data; according to the structural data of the open channel gate, Open channel gate layered velocity data, open channel flow data and liquid level data construct the open channel gate switch formula, where the open channel gate switch formula is specifically:

;

为明渠闸门阈值,/>为明渠闸门前侧面的液位值,/>为明渠闸门后侧面的液位值,/>为明渠闸门重量,/>为明渠闸门体积,/>为明渠流量值; is the open channel gate threshold, /> is the liquid level value at the front side of the open channel gate, /> is the liquid level value on the back side of the open channel gate, /> is the weight of the open channel gate, /> is the open channel gate volume, /> is the open channel flow value;

本发明实施例中利用多组超声波流速测量装置获取明渠闸门分层流速数据;对明渠闸门进行测量获得明渠闸门结构数据,通过多通道超声波流速测量装置获取明渠闸门分层流速数据,通过曼宁公式对明渠闸门分层流速数据以及液位数据进行计算,从而获得明渠流量数据;根据明渠闸门结构数据、明渠闸门分层流速数据、明渠流量数据以及液位数据构建明渠闸门开关公式,明渠闸门开关公式充分考虑了影响明渠闸门阈值的明渠闸门前侧面的液位值,明渠闸门后侧面的液位值/>,明渠闸门重量/>,明渠闸门体积/>以及明渠流量值/>,形成了/>的函数关系,实现了利用明渠闸门前侧面的液位值、明渠闸门后侧面的液位值、明渠闸门重量、明渠闸门体积以及明渠闸门分层流速对明渠闸门阈值的计算,构建的明渠闸门开关公式能更精确地控制明渠闸门开关,提高明渠闸门的灵敏度和精度。In the embodiment of the present invention, multiple sets of ultrasonic flow velocity measurement devices are used to obtain the layered flow velocity data of the open channel gate; the open channel gate is measured to obtain the structure data of the open channel gate, and the multi-channel ultrasonic flow velocity measurement device is used to obtain the layered flow velocity data of the open channel gate, through the Manning formula Calculate open channel gate layered velocity data and liquid level data to obtain open channel flow data; construct open channel gate switch formula and open channel gate switch formula based on open channel gate structure data, open channel gate layered velocity data, open channel flow data and liquid level data The liquid level value on the front side of the open channel gate that affects the open channel gate threshold is fully considered , the liquid level value on the back side of the open channel gate /> , open channel gate weight /> , open channel gate volume /> and open channel flow values/> , forming a /> The function relationship of the open channel gate is realized by using the liquid level value on the front side of the open channel gate, the liquid level value on the back side of the open channel gate, the weight of the open channel gate, the volume of the open channel gate and the stratified flow velocity of the open channel gate to calculate the threshold value of the open channel gate, and construct the open channel gate switch The formula can control the opening and closing of the open channel gate more accurately, and improve the sensitivity and precision of the open channel gate.

步骤S3:获取历史水文数据以及明渠闸门历史开关数据,对历史水文数据以及明渠闸门历史开关数据进行计算,从而得到明渠闸门历史数据集;Step S3: Obtain historical hydrological data and open channel gate historical switch data, and calculate the historical hydrological data and open channel gate historical switch data, so as to obtain the open channel gate historical data set;

本实施例中通过搜寻数据库获取历史水文数据以及明渠闸门历史开关数据,对历史水文数据以及明渠闸门历史开关数据进行数据清洗,保证数据的完整性,对数据清洗过的历史水文数据以及明渠闸门历史开关数据进行计算,从而获得明渠闸门历史数据集。In this embodiment, the historical hydrological data and the open channel gate history switch data are obtained by searching the database, and the historical hydrological data and the open channel gate historical switch data are cleaned to ensure the integrity of the data. Open and close data are calculated to obtain the historical data set of open channel gates.

步骤S4:根据明渠闸门开关公式并利用明渠闸门历史数据集构建明渠闸门智能开关模型;Step S4: Construct an open channel gate intelligent switch model according to the open channel gate switch formula and use the open channel gate historical data set;

本实施例中根据明渠闸门开关公式并利用明渠闸门历史数据集构建明渠闸门智能开关模型,并对明渠闸门智能开关模型进行优化调参。In this embodiment, an open channel gate intelligent switch model is constructed according to the open channel gate switch formula and the open channel gate historical data set, and parameters are optimized and adjusted for the open channel gate intelligent switch model.

步骤S5:获取实时液位数据以及实时明渠闸门分层流速数据,对实时液位数据以及实时明渠闸门分层流速数据进行计算,从而得到明渠闸门指令数据;Step S5: Obtain real-time liquid level data and real-time open channel gate stratified flow velocity data, and calculate the real-time liquid level data and real-time open channel gate stratified velocity data to obtain open channel gate instruction data;

本实施例中通过液位测量设备获取实时液位数据,通过多组超声波流速测量装置获取实时明渠闸门分层流速数据,对实时液位数据以及实时明渠闸门分层流速数据进行计算,从而得到明渠闸门指令数据。In this embodiment, the real-time liquid level data is obtained by the liquid level measuring equipment, and the real-time open channel gate stratified flow velocity data is obtained by multiple sets of ultrasonic velocity measuring devices, and the real-time liquid level data and the real-time open channel gate stratified velocity data are calculated to obtain the open channel Gate instruction data.

步骤S6:根据明渠闸门指令数据进行计算,从而得到明渠闸门开启模式,以发送至明渠闸门控制模块执行明渠闸门运行作业。Step S6: Calculate according to the open channel gate instruction data, so as to obtain the open channel gate opening mode, and send it to the open channel gate control module to execute the open channel gate operation operation.

本实施例中对明渠闸门指令数据进行分类计算,从而得到明渠闸门开启模式;将明渠闸门开启模式通过数据传输至明渠闸门控制模块,通过明渠闸门控制模块对明渠闸门下达命令,从而执行明渠闸门运行作业。In this embodiment, the open channel gate instruction data is classified and calculated to obtain the open channel gate opening mode; the open channel gate opening mode is transmitted to the open channel gate control module through data, and the open channel gate control module issues commands to the open channel gate to execute the open channel gate operation Operation.

本发明利用液位测量设备对待测液体进行测量,使用液位测量装备测量待测液体能减少人工测量的工作量,提高了工作效率,降低操作风险,并能增加液位数据的准确性和真实性,从而获得液位数据;获取明渠闸门结构数据,通过多通道超声波流速测量装置获取明渠闸门分层流速数据,对明渠闸门分层流速数据以及液位数据进行计算,从而获得明渠流量数据;根据明渠闸门结构数据、明渠闸门分层流速数据、明渠流量数据以及液位数据构建明渠闸门开关公式,构建明渠闸门开关公式能提高明渠闸门的开关控制精度和稳定性,从而得到明渠闸门开关公式;获取历史水文数据以及明渠闸门历史开关数据,对历史水文数据以及明渠闸门历史开关数据进行计算,从而得到明渠闸门历史数据集,明渠闸门历史数据集可以为智能水利明渠闸门控制系统提供参考依据,进而提高系统的精度和效率;根据明渠闸门开关公式并利用明渠闸门历史数据集构建明渠闸门智能开关模型,明渠闸门智能开关模型利用明渠闸门开关公式和明渠闸门历史数据集能够构建了更为准确和稳定的数学模型,能够更好地预测当前水文环境下明渠闸门的控制状态,避免人为误差和数据错误对水利工程造成的影响;获取实时液位数据以及实时明渠闸门分层流速数据,对实时液位数据以及实时明渠闸门分层流速数据进行计算,根据实时液位数据和实时明渠闸门分层流速数据进行计算,能得到更加准确和真实的数据,提高水利工程的精度,从而得到明渠闸门指令数据;根据明渠闸门指令数据进行计算,从而得到明渠闸门开启模式,以发送至明渠闸门控制模块执行明渠闸门运行作业,利用计算得到的明渠闸门开启模式,可以实现对水闸的信息,提高水利工程的智能化程度,可以得到最佳的明渠闸门开启模式,从而确保明渠闸门的精准控制,提高水位的稳定性和准确性,减少了人工干预的工作量,提高了明渠闸门运行的可靠性和稳定性。The invention uses liquid level measuring equipment to measure the liquid to be measured, and using the liquid level measuring equipment to measure the liquid to be measured can reduce the workload of manual measurement, improve work efficiency, reduce operational risks, and increase the accuracy and authenticity of liquid level data To obtain the liquid level data; obtain the structure data of the open channel gate, obtain the stratified flow velocity data of the open channel gate through the multi-channel ultrasonic velocity measurement device, and calculate the stratified velocity data and liquid level data of the open channel gate to obtain the open channel flow data; Open channel gate structure data, open channel gate layered velocity data, open channel flow data and liquid level data construct open channel gate switch formula, and constructing open channel gate switch formula can improve the control accuracy and stability of open channel gate, so as to obtain the open channel gate switch formula; Historical hydrological data and open channel gate historical switch data are calculated by historical hydrological data and open channel gate historical switch data to obtain the open channel gate historical data set. The open channel gate historical data set can provide reference for the intelligent water conservancy open channel gate control system, thereby improving The accuracy and efficiency of the system; according to the open channel gate switch formula and the open channel gate historical data set to build the open channel gate intelligent switch model, the open channel gate intelligent switch model can build a more accurate and stable The mathematical model can better predict the control state of the open channel gate in the current hydrological environment, and avoid the impact of human errors and data errors on water conservancy projects; obtain real-time liquid level data and real-time open channel gate layered flow rate data, and improve real-time liquid level data. And real-time open channel gate layered velocity data for calculation, based on real-time liquid level data and real-time open channel gate layered velocity data to calculate, can get more accurate and real data, improve the accuracy of water conservancy projects, and thus obtain open channel gate instruction data; The open channel gate command data is calculated to obtain the open channel gate opening mode, which can be sent to the open channel gate control module to execute the open channel gate operation operation. Using the calculated open channel gate opening mode, the information on the sluice gate can be realized and the intelligence of water conservancy projects can be improved. , can get the best open channel gate opening mode, so as to ensure the precise control of the open channel gate, improve the stability and accuracy of the water level, reduce the workload of manual intervention, and improve the reliability and stability of the open channel gate operation.

可选地,液位测量设备中的感应面板具体为:Optionally, the sensing panel in the liquid level measuring device is specifically:

感应面板上多个感应区从下到上依次等距布置,多个感应区分别与多个感应电容转换电路一一对应,每个感应区与对应的感应电容转换电性连接,每相邻两个的感应区之间设置有一个液位测量电极,液体参考电极位于感应面板的底部,环境参考电极位于感应面板的顶部,且处于液位测量量程以外的位置,液位测量电极与电容数字转换器对应,每个液位测量电极与对应的电容数字转换器电性连接,液体参考电极和环境参考电极均与每个电容数字转换器连接,感应电容转换电路和电容数字转换器均与单片机连接;Multiple sensing areas on the sensing panel are arranged equidistantly from bottom to top. The multiple sensing areas are in one-to-one correspondence with multiple sensing capacitance conversion circuits. Each sensing area is electrically connected to the corresponding sensing capacitance conversion. Each adjacent two A liquid level measurement electrode is set between the two sensing areas, the liquid reference electrode is located at the bottom of the sensing panel, the environmental reference electrode is located at the top of the sensing panel, and is outside the liquid level measurement range, the liquid level measurement electrode and capacitance digital conversion Each liquid level measurement electrode is electrically connected to the corresponding capacitance-to-digital converter, the liquid reference electrode and the environmental reference electrode are connected to each capacitance-to-digital converter, and the sensing capacitance conversion circuit and capacitance-to-digital converter are connected to the single-chip microcomputer ;

感应区为导电面,根据产生的感应电容值大小能够区分有无液体覆盖;The sensing area is a conductive surface, and it can be distinguished whether there is liquid coverage or not according to the generated sensing capacitance value;

感应区和液位测量电极在测量液位时不直接接触待测液体,以实现隔离式测量;The sensing area and the liquid level measurement electrode do not directly contact the liquid to be measured when measuring the liquid level, so as to realize isolated measurement;

感应面板上的感应区数量由液位量程确定。The number of sensing zones on the sensing panel is determined by the liquid level range.

本发明中的感应面板上每个感应区都可以被视为一个电容器,液位测量电极作为另一个电容器的一部分,液体和环境参考电极也作为电容器的一部分。因为液体参考电极和环境参考电极都是固定的,所以它们的电容不会改变,而液位测量电极的电容会随着液位的变化而改变,这种基于电容测量原理的感应面板精度高、响应时间快以及可靠性高。感应区根据产生的感应电容值大小区分有无液体覆盖能够实现对液位的快速准确判断,能有效减少误报率,降低误诊率,提高液位检测的精度和灵敏度。感应区为导电面可以适用于各种液体环境,并且有精度高响应速度快的特点。隔离式测量可以保护电极和感应区免受液体的腐蚀或损害,提高测量设备的寿命和可靠性,隔离式测量不直接接触液体,减少了测量误差的可能性,提高了测量的准确性和稳定性。感应区数量的核实选择能够提高液位控制的精度和速度。Each sensing area on the sensing panel in the present invention can be regarded as a capacitor, the liquid level measuring electrode is a part of another capacitor, and the liquid and environment reference electrodes are also a part of the capacitor. Because the liquid reference electrode and the environment reference electrode are fixed, their capacitance will not change, while the capacitance of the liquid level measurement electrode will change with the change of the liquid level. This sensing panel based on the principle of capacitance measurement has high precision, Fast response time and high reliability. The sensing area distinguishes whether there is liquid coverage according to the generated sensing capacitance value, which can realize the rapid and accurate judgment of the liquid level, effectively reduce the false alarm rate, reduce the misdiagnosis rate, and improve the accuracy and sensitivity of liquid level detection. The sensing area is a conductive surface, which can be applied to various liquid environments, and has the characteristics of high precision and fast response. The isolated measurement can protect the electrode and the sensing area from corrosion or damage of the liquid, improve the life and reliability of the measuring equipment, the isolated measurement does not directly contact the liquid, reduces the possibility of measurement error, and improves the accuracy and stability of the measurement sex. Verified selection of the number of sensing zones can improve the accuracy and speed of liquid level control.

可选地,步骤S1具体为:Optionally, step S1 is specifically:

步骤S11:将液位测量设备部分或全部浸没于待测液体后,感应面板对待测液体从下往上检测,根据感应面板中感应区产生的感应电容值大小进行数字转换,获得感应区输出状态,其中感应区输出状态包括有液体状态以及无液体状态;Step S11: After part or all of the liquid level measuring device is submerged in the liquid to be tested, the sensing panel detects the liquid to be measured from bottom to top, and performs digital conversion according to the sensing capacitance value generated in the sensing area of the sensing panel to obtain the output state of the sensing area , where the output state of the sensing area includes liquid state and liquid-free state;

步骤S12:根据感应区输出状态通过判别处理得到当前液位线所在的感应区,将当前液位线所在的感应区对应高度作为第一级测量结果数据;Step S12: According to the output state of the sensing area, the sensing area where the current liquid level line is located is obtained through discrimination processing, and the height corresponding to the sensing area where the current liquid level line is located is taken as the first-level measurement result data;

步骤S13:获取液位测量电极的电容值、液体参考电极的电容值以及环境参考电极的电容值,对液位测量电极的电容值、液体参考电极的电容值以及环境参考电极的电容值进行计算,获得第二级测量结果数据,其中第二级测量结果数据为当前液位线所在的感应区与上方的感应区之间的液位高度;Step S13: Obtain the capacitance value of the liquid level measurement electrode, the capacitance value of the liquid reference electrode, and the capacitance value of the environmental reference electrode, and calculate the capacitance value of the liquid level measurement electrode, the capacitance value of the liquid reference electrode, and the capacitance value of the environmental reference electrode , to obtain the second-level measurement result data, wherein the second-level measurement result data is the liquid level height between the sensing area where the current liquid level line is located and the upper sensing area;

步骤S14:对第一级测量结果数据以及第二级测量结果数据进行计算,从而得到液位数据。Step S14: Calculate the first-level measurement result data and the second-level measurement result data to obtain liquid level data.

作为本发明的一个实施例,参考图2所示,为图1中步骤S1的详细实施步骤流程示意图,在本实施例中所述步骤S1包括以下步骤:As an embodiment of the present invention, as shown in FIG. 2, it is a schematic flow diagram of the detailed implementation steps of step S1 in FIG. 1. In this embodiment, step S1 includes the following steps:

步骤S11:将液位测量设备部分或全部浸没于待测液体后,感应面板对待测液体从下往上检测,根据感应面板中感应区产生的感应电容值大小进行数字转换,获得感应区输出状态,其中感应区输出状态包括有液体状态以及无液体状态;Step S11: After part or all of the liquid level measuring device is submerged in the liquid to be tested, the sensing panel detects the liquid to be measured from bottom to top, and performs digital conversion according to the sensing capacitance value generated in the sensing area of the sensing panel to obtain the output state of the sensing area , where the output state of the sensing area includes liquid state and liquid-free state;

本实施例中将液位测量设备部分或全部浸没于待测液体后,启动检测程序,感应面板对待测液体从下往上检测,根据感应面板中感应区产生的感应电容值大小进行数字转换,当待测液体靠近感应区时,感应电容值会增加,而距离越远,感应电容值会减小,对感应电容值通过电容数字转换器转换为数字信号,从而获得感应区输出状态。In this embodiment, after part or all of the liquid level measuring device is immersed in the liquid to be tested, the detection program is started, and the sensing panel detects the liquid to be measured from bottom to top, and digital conversion is performed according to the sensing capacitance value generated in the sensing area of the sensing panel, When the liquid to be tested is close to the sensing area, the sensing capacitance value will increase, and the farther the distance is, the sensing capacitance value will decrease. The sensing capacitance value is converted into a digital signal by a capacitance-to-digital converter to obtain the output state of the sensing area.

步骤S12:根据感应区输出状态通过判别处理得到当前液位线所在的感应区,将当前液位线所在的感应区对应高度作为第一级测量结果数据;Step S12: According to the output state of the sensing area, the sensing area where the current liquid level line is located is obtained through discrimination processing, and the height corresponding to the sensing area where the current liquid level line is located is taken as the first-level measurement result data;

步骤S13:获取液位测量电极的电容值、液体参考电极的电容值以及环境参考电极的电容值,对液位测量电极的电容值、液体参考电极的电容值以及环境参考电极的电容值进行计算,获得第二级测量结果数据,其中第二级测量结果数据为当前液位线所在的感应区与上方的感应区之间的液位高度;Step S13: Obtain the capacitance value of the liquid level measurement electrode, the capacitance value of the liquid reference electrode, and the capacitance value of the environmental reference electrode, and calculate the capacitance value of the liquid level measurement electrode, the capacitance value of the liquid reference electrode, and the capacitance value of the environmental reference electrode , to obtain the second-level measurement result data, wherein the second-level measurement result data is the liquid level height between the sensing area where the current liquid level line is located and the upper sensing area;

本实施例中利用电容转换器将液位测量电极的电容、液体参考电极的电容以及环境参考电极的电容进行数字转换,从而得到液位测量电极的电容值、液体参考电极的电容值以及环境参考电极的电容值;利用感应区距离公式对液位测量电极的电容值、液体参考电极的电容值以及环境参考电极的电容值进行计算,获得第二级测量结果数据。In this embodiment, a capacitance converter is used to digitally convert the capacitance of the liquid level measurement electrode, the capacitance of the liquid reference electrode, and the capacitance of the environmental reference electrode, thereby obtaining the capacitance value of the liquid level measurement electrode, the capacitance value of the liquid reference electrode, and the environmental reference The capacitance value of the electrode; the capacitance value of the liquid level measurement electrode, the capacitance value of the liquid reference electrode and the capacitance value of the environment reference electrode are calculated by using the distance formula of the sensing area to obtain the second-level measurement result data.

步骤S14:对第一级测量结果数据以及第二级测量结果数据进行计算,从而得到液位数据。Step S14: Calculate the first-level measurement result data and the second-level measurement result data to obtain liquid level data.

本实施例中对第一级测量结果数据以及第二级测量结果数据进行相加计算,从而得到液位数据In this embodiment, the first-level measurement result data and the second-level measurement result data are added together to obtain the liquid level data

本发明将液位测量设备部分或全部浸没于待测液体,感应面板对待测液体从下往上检测,从下往上检测比从上往下检测更容易应对液位的变化,能够检测更广泛的液位范围。根据感应面板中感应区产生的感应电容值大小进行数字转换,能够快速、准确以及高敏感度的得出感应区输出状态,从而获得感应区输出状态。根据感应区输出状态通过判别处理得到当前液位线所在的感应区,将当前液位线所在的感应区对应高度作为第一级测量结果数据。获取液位测量电极的电容值、液体参考电极的电容值以及环境参考电极的电容值,对液位测量电极的电容值、液体参考电极的电容值以及环境参考电极的电容值进行计算,获得第二级测量结果数据,利用液位测量电极的电容值、液体参考电极的电容值以及环境参考电极的电容值进行计算可以修正测量结果中的误差,提高测量精度和可靠性,从而更加准确地测量液位高度。对第一级测量结果数据以及第二级测量结果数据进行计算,从而得到液位数据。将第一级测量结果数据和第二级测量结果数据进行计算,可以得到更为准确、可靠的液位数据。In the present invention, part or all of the liquid level measuring equipment is submerged in the liquid to be measured, and the sensing panel detects the liquid to be measured from bottom to top, and detection from bottom to top is easier to deal with changes in liquid level than detection from top to bottom, and can detect more widely liquid level range. Digital conversion is performed according to the magnitude of the sensing capacitance generated by the sensing area in the sensing panel, so that the output state of the sensing area can be quickly, accurately and highly sensitively obtained, thereby obtaining the output state of the sensing area. According to the output state of the sensing area, the sensing area where the current liquid level line is located is obtained through discrimination processing, and the corresponding height of the sensing area where the current liquid level line is located is taken as the first-level measurement result data. Obtain the capacitance value of the liquid level measurement electrode, the capacitance value of the liquid reference electrode and the capacitance value of the environmental reference electrode, calculate the capacitance value of the liquid level measurement electrode, the capacitance value of the liquid reference electrode and the capacitance value of the environmental reference electrode, and obtain the first Secondary measurement result data, using the capacitance value of the liquid level measurement electrode, the capacitance value of the liquid reference electrode and the capacitance value of the environmental reference electrode for calculation can correct the error in the measurement result, improve the measurement accuracy and reliability, and thus measure more accurately Liquid level height. Calculate the first-level measurement result data and the second-level measurement result data to obtain liquid level data. By calculating the first-level measurement result data and the second-level measurement result data, more accurate and reliable liquid level data can be obtained.

可选地,步骤S3具体为:Optionally, step S3 is specifically:

获取历史水文数据以及明渠闸门历史开关数据,利用明渠闸门开关公式对历史水文数据进行计算,从而得到明渠闸门历史水文数据;Obtain historical hydrological data and historical opening and closing data of the open channel gate, and use the open channel gate opening and closing formula to calculate the historical hydrological data, so as to obtain the historical hydrological data of the open channel gate;

本实施例中通过搜寻数据库获取历史水文数据以及明渠闸门历史开关数据,对历史水文数据以及明渠闸门历史开关数据进行数据清洗,保证数据的完整性,利用明渠闸门开关公式对历史水文数据进行计算,从而得到明渠闸门历史水文数据。In this embodiment, the historical hydrological data and the open channel gate historical switch data are obtained by searching the database, the historical hydrological data and the open channel gate historical switch data are cleaned to ensure the integrity of the data, and the historical hydrological data is calculated using the open channel gate switch formula. Thus, the historical hydrological data of the open channel gate can be obtained.

对明渠闸门历史水文数据以及明渠闸门历史开关数据基于时间顺序进行时序合并,从而生成明渠闸门历史数据集。The historical hydrological data of open channel gates and the historical opening and closing data of open channel gates are time-series merged based on chronological order to generate the historical data set of open channel gates.

本实施例中对明渠闸门历史水文数据以及明渠闸门历史开关数据的时间戳进行预处理,统一为同一时间间隔的数据序列,将明渠闸门历史水文数据以及明渠闸门历史开关数据的时间戳进行对齐,从而合并生成明渠闸门历史数据集。In this embodiment, the historical hydrological data of the open channel gates and the time stamps of the historical opening and closing data of the open channel gates are preprocessed, and unified into a data sequence of the same time interval, and the time stamps of the historical hydrological data of the open channel gates and the historical opening and closing data of the open channel gates are aligned. Thereby merging to generate the historical data set of open channel gates.

本发明获取历史水文数据以及明渠闸门历史开关数据,利用明渠闸门开关公式对历史水文数据进行计算,可以有效计算出明渠闸门的高度和宽度的最佳值、明渠闸门的最佳开门时间和关门时间,从而得到明渠闸门历史水文数据。对明渠闸门历史水文数据以及明渠闸门历史开关数据基于时间顺序进行时序合并,能够更好地分析水文条件对明渠闸门开关的影响,能够获取明渠闸门的正常运行范围和存在异常的情况,提高明渠闸门运行的稳定性、准确性以及可靠性,从而生成明渠闸门历史数据集。The invention acquires historical hydrological data and open channel gate historical switch data, uses the open channel gate switch formula to calculate the historical hydrological data, and can effectively calculate the optimal value of the height and width of the open channel gate, and the optimal opening time and closing time of the open channel gate , so as to obtain the historical hydrological data of the open channel gate. The historical hydrological data of the open channel gate and the historical opening and closing data of the open channel gate are merged in time series based on the time sequence, which can better analyze the influence of hydrological conditions on the opening and closing of the open channel gate, obtain the normal operating range and abnormal conditions of the open channel gate, and improve the open channel gate. The stability, accuracy and reliability of the operation to generate a historical dataset of open channel gates.

可选地,步骤S4具体为:Optionally, step S4 is specifically:

利用明渠闸门开关公式对明渠闸门历史数据集进行计算,从而得到明渠闸门开关阈值数据集,其中明渠闸门开关阈值数据集包括明渠闸门全开阈值数据、明渠闸门挡流阈值数据与明渠闸门半开阈值数据;Use the open channel gate switch formula to calculate the open channel gate historical data set, so as to obtain the open channel gate switch threshold data set, in which the open channel gate switch threshold data set includes open channel gate full open threshold data, open channel gate flow blocking threshold data and open channel gate half open threshold data data;

本实施例中利用明渠闸门开关公式对明渠闸门历史数据集进行计算,获得明渠闸门历史开启模式的明渠闸门阈值数据,从而得到明渠闸门开关阈值数据集。In this embodiment, the open channel gate opening and closing formula is used to calculate the open channel gate historical data set, and the open channel gate threshold data of the open channel gate historical opening mode is obtained, thereby obtaining the open channel gate opening and closing threshold data set.

根据明渠闸门开关公式并利用明渠闸门开关阈值数据构建明渠闸门智能开关模型;According to the open channel gate switch formula and using the open channel gate switch threshold data, the open channel gate intelligent switch model is constructed;

将明渠闸门智能开关模型作为输入数据,输入至数据分析模块,实现数据分析模块对实时数据进行监测分析。The open channel gate intelligent switch model is used as input data, which is input to the data analysis module, so that the data analysis module can monitor and analyze real-time data.

本实施例中基于建立好的明渠闸门智能开关模型作为输入数据,输入至数据分析模块,对明渠闸门实时数据进行实时监测分析。In this embodiment, based on the established smart switch model of the open channel gate as input data, it is input to the data analysis module to monitor and analyze the real-time data of the open channel gate in real time.

本发明利用明渠闸门开关公式对明渠闸门历史数据集进行计算,可以得到合适的明渠闸门开关阈值数据集,提高明渠闸门的稳定性和可靠性,避免出现操作失误和设备故障,从而得到明渠闸门开关阈值数据集。根据明渠闸门开关公式并利用明渠闸门开关阈值数据构建明渠闸门智能开关模型,构建明渠闸门智能开关模型能避免传统的明渠闸门开关可能存在的误判、误操作等问题,提高了明渠闸门开关的准确度和稳定性,可以自动实现明渠闸门的开启和关闭,避免了人工干预的成本,从而节约了成本,智能开关模型的自动化操作可以有效降低了操作人员的风险,提高了操作的安全性。将明渠闸门智能开关模型作为输入数据,输入至数据分析模块,实现数据分析模块对实时数据进行监测分析,能够帮助监测发生的故障和隐患,以提高系统的效率和安全性。The present invention uses the open channel gate switch formula to calculate the historical data set of the open channel gate, can obtain a suitable open channel gate switch threshold data set, improves the stability and reliability of the open channel gate, avoids operating errors and equipment failures, and thus obtains the open channel gate switch Threshold dataset. According to the open channel gate switch formula and using the open channel gate switch threshold data to construct the open channel gate intelligent switch model, the construction of the open channel gate intelligent switch model can avoid the problems of misjudgment and misoperation that may exist in the traditional open channel gate switch, and improve the accuracy of the open channel gate switch. The accuracy and stability can automatically realize the opening and closing of the open channel gate, avoiding the cost of manual intervention, thereby saving costs. The automatic operation of the intelligent switch model can effectively reduce the risk of the operator and improve the safety of the operation. The open channel gate intelligent switch model is used as input data to the data analysis module, and the data analysis module can monitor and analyze real-time data, which can help monitor the occurrence of failures and hidden dangers, so as to improve the efficiency and safety of the system.

可选地,步骤S6具体为:Optionally, step S6 is specifically:

步骤S61:根据明渠闸门开关阈值数据对明渠闸门指令数据进行分类计算,从而得到明渠闸门开启模式数据,其中明渠闸门开启模式数据包括明渠闸门全开模式数据、明渠闸门半开模式数据以及明渠闸门挡流模式数据;Step S61: Classify and calculate the open channel gate instruction data according to the open channel gate switch threshold data, so as to obtain the open channel gate opening mode data, wherein the open channel gate opening mode data includes the open channel gate full open mode data, the open channel gate half open mode data and the open channel gate stopper stream mode data;

步骤S62:将明渠闸门开启模式数据发送至明渠闸门控制模块执行明渠闸门运行作业,使明渠闸门根据明渠闸门开启模式数据使用不同的明渠闸门开启模式,其中明渠闸门开启模式包括明渠闸门全开模式、明渠闸门半开模式以及明渠闸门挡流模式;Step S62: Send the open channel gate opening mode data to the open channel gate control module to execute the open channel gate operation, so that the open channel gate uses different open channel gate opening modes according to the open channel gate opening mode data, wherein the open channel gate opening mode includes open channel gate full open mode, Open channel gate half-open mode and open channel gate blocking mode;

步骤S63:获取实时的明渠闸门开启模式,并在明渠闸门开启模式与对应的明渠闸门开启模式数据不符时,改变明渠闸门开启模式,以使明渠闸门开启模式与明渠闸门开启模式数据相匹配。Step S63: Obtain the real-time open channel gate opening mode, and change the open channel gate opening mode when the open channel gate opening mode does not match the corresponding open channel gate opening mode data, so that the open channel gate opening mode matches the open channel gate opening mode data.

作为本发明的一个实施例,参考图3所示,为图1中步骤S6的详细实施步骤流程示意图,在本实施例中步骤S6包括以下步骤:As an embodiment of the present invention, as shown in FIG. 3, it is a schematic flow chart of the detailed implementation steps of step S6 in FIG. 1. In this embodiment, step S6 includes the following steps:

步骤S61:根据明渠闸门开关阈值数据对明渠闸门指令数据进行分类计算,从而得到明渠闸门开启模式数据,其中明渠闸门开启模式数据包括明渠闸门全开模式数据、明渠闸门半开模式数据以及明渠闸门挡流模式数据;Step S61: Classify and calculate the open channel gate instruction data according to the open channel gate switch threshold data, so as to obtain the open channel gate opening mode data, wherein the open channel gate opening mode data includes the open channel gate full open mode data, the open channel gate half open mode data and the open channel gate stopper stream mode data;

本实施例中根据明渠闸门开关阈值数据对明渠闸门指令数据利用优化二级模型进行分类计算,从而得到明渠闸门开启模式数据。In this embodiment, according to the opening and closing threshold data of the open channel gate, the order data of the open channel gate is classified and calculated using the optimized two-level model, so as to obtain the opening mode data of the open channel gate.

步骤S62:将明渠闸门开启模式数据发送至明渠闸门控制模块执行明渠闸门运行作业,使明渠闸门根据明渠闸门开启模式数据使用不同的明渠闸门开启模式,其中明渠闸门开启模式包括明渠闸门全开模式、明渠闸门半开模式以及明渠闸门挡流模式;Step S62: Send the open channel gate opening mode data to the open channel gate control module to execute the open channel gate operation, so that the open channel gate uses different open channel gate opening modes according to the open channel gate opening mode data, wherein the open channel gate opening mode includes open channel gate full open mode, Open channel gate half-open mode and open channel gate blocking mode;

本实施例中将明渠闸门开启模式数据发送至明渠闸门控制模块,明渠闸门控制模块根据明渠闸门开启模式数据对明渠闸门下达开启模式指令,从而明渠闸门执行开启模式。In this embodiment, the open channel gate opening mode data is sent to the open channel gate control module, and the open channel gate control module issues an open mode command to the open channel gate according to the open channel gate opening mode data, so that the open channel gate executes the open mode.

步骤S63:获取实时的明渠闸门开启模式,并在明渠闸门开启模式与对应的明渠闸门开启模式数据不符时,改变明渠闸门开启模式,以使明渠闸门开启模式与明渠闸门开启模式数据相匹配。Step S63: Obtain the real-time open channel gate opening mode, and change the open channel gate opening mode when the open channel gate opening mode does not match the corresponding open channel gate opening mode data, so that the open channel gate opening mode matches the open channel gate opening mode data.

本实施例中通过安装在明渠闸门上的传感器获取实时的明渠闸门开启模式,检测明渠闸门开启模式是否与明渠闸门开启模式数据相符,并在明渠闸门开启模式与对应的明渠闸门开启模式数据不符时,通过明渠闸门控制模块改变明渠闸门开启模式,以使明渠闸门开启模式与明渠闸门开启模式数据相匹配。In this embodiment, the real-time open channel gate opening mode is acquired through the sensor installed on the open channel gate, and whether the open channel gate opening mode is detected to match the open channel gate opening mode data, and when the open channel gate opening mode is inconsistent with the corresponding open channel gate opening mode data , changing the open channel gate opening mode through the open channel gate control module, so that the open channel gate opening mode matches the open channel gate opening mode data.

本发明根据明渠闸门开关阈值数据对明渠闸门指令数据进行分类计算,从而得到明渠闸门开启模式数据,能够得出不同开启模式下的水流情况,进而确定最佳的开启模式,能够提高明渠闸门使用寿命,延长设备的维护周期,减少明渠闸门故障。将明渠闸门开启模式数据发送至明渠闸门控制模块执行明渠闸门运行作业,使明渠闸门根据明渠闸门开启模式数据使用不同的明渠闸门开启模式。获取实时的明渠闸门开启模式,并在明渠闸门开启模式与对应的明渠闸门开启模式数据不符时,改变明渠闸门开启模式,以使明渠闸门开启模式与开启模式数据相匹配,获取实时的明渠闸门开启模式并做出适当的调整,可以确保设备按照合适的模式进行工作,提高设备的稳定性和可靠性,适当的开启模式可以使设备工作更加高效,节约资源和成本,改变明渠闸门开启模式以适应当前工作状态可以最大程度地提高设备的效率。The present invention classifies and calculates open channel gate instruction data according to open channel gate switch threshold data, thereby obtaining open channel gate opening mode data, can obtain water flow conditions under different opening modes, and then determine the best opening mode, and can improve the service life of the open channel gate , prolong the maintenance cycle of equipment, and reduce the failure of open channel gates. The open channel gate opening mode data is sent to the open channel gate control module to execute the open channel gate operation operation, so that the open channel gate uses different open channel gate opening modes according to the open channel gate opening mode data. Obtain the real-time open channel gate opening mode, and change the open channel gate open mode when the open channel gate open mode does not match the corresponding open channel gate open mode data, so that the open channel gate open mode matches the open mode data, and obtain real-time open channel gate open Mode and making appropriate adjustments can ensure that the equipment works in an appropriate mode and improve the stability and reliability of the equipment. The appropriate opening mode can make the equipment work more efficiently, save resources and costs, and change the open channel gate opening mode to adapt to The current working state can maximize the efficiency of the equipment.

可选地,步骤S12具体包括以下步骤:Optionally, step S12 specifically includes the following steps:

从下往上检测感应区输出状态,直至检测出连续两个感应区输出状态为无液体状态,从而得到液位感应区;Detect the output state of the sensing area from bottom to top until it detects that the output state of two consecutive sensing areas is a liquid-free state, thereby obtaining the liquid level sensing area;

本实施例中感应面板从下往上检测感应区输出状态,直至检测出连续两个感应区输出状态为无液体状态,从而得到液位感应区。In this embodiment, the sensing panel detects the output state of the sensing area from bottom to top until it detects that the output states of two consecutive sensing areas are in the liquid-free state, thereby obtaining the liquid level sensing area.

在液位感应区的上方继续往上检测感应区输出状态;若往上检测出感应区输出状态都为无液体状态,则判别当前液位位于液位感应区,并将这液位感应区位于下方的感应区高度作为第一级测量结果数据。Continue to detect the output state of the sensing area above the liquid level sensing area; if it is detected that the output state of the sensing area is no liquid, then it is judged that the current liquid level is located in the liquid level sensing area, and the liquid level sensing area is located in the liquid level sensing area. The height of the sensing area below is used as the first-level measurement result data.

本实施例中在液位感应区的上方继续往上检测感应区输出状态;若往上检测出感应区输出状态都为无液体状态,则判别当前液位位于液位感应区,并将这液位感应区位于下方的感应高度作为第一级测量结果数据。检测也考虑了误导处理,若中间存在一个或多个感应区的输出状态为无液体状态,且该感应区的下方所有感应区和上方连续多个感应区的输出状态均为有液体状态,则判断当前液位线在该感应区上方,并跳过该感应区继续搜索;若中间存在一个或多个感应区的输出状态为有液体状态,且该感应区的下方连续多个感应区和上方连续多个感应区的输出状态均为无液体状态,则判断当前液位线在该感应区下方。In this embodiment, continue to detect the output state of the sensing area above the liquid level sensing area; if it is detected that the output state of the sensing area is no liquid, then it is judged that the current liquid level is located in the liquid level sensing area, and the liquid The sensing height below which the position sensing area is located is used as the first-level measurement result data. The detection also takes into account the misleading treatment. If the output state of one or more sensing areas in the middle is a liquid-free state, and the output states of all the sensing areas below the sensing area and the continuous multiple sensing areas above are in a liquid state, then Judging that the current liquid level line is above the sensing area, and skipping the sensing area to continue searching; if there are one or more sensing areas in the middle, the output status is liquid state, and there are multiple sensing areas below the sensing area and the upper If the output states of multiple consecutive sensing areas are all liquid-free, it is judged that the current liquid level line is below the sensing area.

本发明从下往上检测感应区输出状态,直至检测出连续两个感应区输出状态为无液体状态,通过检测的连续两个感应区输出状态为无液体状态,可以排除单个感应区输出状态的错误,从而提高了可靠性,从而得到液位感应区。在液位感应区的上方继续往上检测感应区输出状态;若往上检测出感应区输出状态都为无液体状态,则判别当前液位位于液位感应区,并将这液位感应区位于下方的感应区高度作为第一级测量结果数据,采用多级测量,将液位感应区位于下方的感应区高度作为第一级测量结果数据,不但可以减小误差,还可以提高测量的精度和准确度,从而更准确地测量液位的高度。The invention detects the output state of the sensing area from bottom to top until it detects that the output state of two consecutive sensing areas is an anhydrous state, and the output state of two consecutive sensing areas passed through detection is an anhydrous state, which can eliminate the output state of a single sensing area errors, thereby improving reliability, resulting in a liquid level sensing area. Continue to detect the output state of the sensing area above the liquid level sensing area; if it is detected that the output state of the sensing area is no liquid, then it is judged that the current liquid level is located in the liquid level sensing area, and the liquid level sensing area is located in the liquid level sensing area. The height of the sensing area below is used as the first-level measurement result data. Using multi-level measurement, the height of the sensing area located below the liquid level sensing area is used as the first-level measurement result data, which can not only reduce the error, but also improve the accuracy and accuracy of the measurement. Accuracy, so as to measure the height of the liquid level more accurately.

可选地,其中步骤S13中的对液位测量电极的电容值、液体参考电极的电容值以及环境参考电极的电容值进行计算具体为:Optionally, the calculation of the capacitance value of the liquid level measurement electrode, the capacitance value of the liquid reference electrode, and the capacitance value of the environment reference electrode in step S13 is specifically:

根据液位测量电极的电容值、液体参考电极的电容值以及环境参考电极的电容值构建感应区距离公式,其中感应区距离公式具体为:According to the capacitance value of the liquid level measurement electrode, the capacitance value of the liquid reference electrode and the capacitance value of the environmental reference electrode, the distance formula of the sensing area is constructed, and the formula of the distance of the sensing area is specifically:

;

其中,为感应区距离,/>为当前液位线的液位测量电极的电容值,/>为没有待测液体时的液位测量电极的电容值,/>为液体参考电极的电容值,/>为环境参考电极的电容值,/>为转换系数;in, is the sensing area distance, /> Measure the capacitance value of the electrode for the liquid level of the current liquid level line, /> Capacitance value of the electrode for level measurement in the absence of liquid to be measured, /> is the capacitance value of the liquid reference electrode, /> is the capacitance value of the environmental reference electrode, /> is the conversion factor;

本发明中的感应区距离公式充分考虑了影响感应区距离的当前液位线的液位测量电极的电容值,没有待测液体时的液位测量电极的电容值/>,液体参考电极的电容值,环境参考电极的电容值/>,形成了/>的函数关系,实现了利用当前液位线的液位测量电极的电容值、没有待测液体时的液位测量电极的电容值、液体参考电极的电容值以及环境参考电极的电容值计算感应区距离,并通过转换系数/>的引入,可以根据待测液体的种类适当调整转换系数,进一步提高转换系数的适用性,该公式考虑到不同液体对电极电容值的影响,适用于各种液体的测量,能够有效提高感应区距离的准确性和真实性。The sensing area distance formula in the present invention fully considers the capacitance value of the liquid level measuring electrode of the current liquid level line that affects the sensing area distance , the capacitance value of the liquid level measuring electrode when there is no liquid to be measured /> , the capacitance value of the liquid reference electrode , the capacitance value of the environmental reference electrode /> , forming a /> The functional relationship of the current liquid level line, the capacitance value of the liquid level measurement electrode, the capacitance value of the liquid level measurement electrode when there is no liquid to be measured, the capacitance value of the liquid reference electrode and the capacitance value of the environmental reference electrode are used to calculate the sensing area. distance, and pass the conversion factor /> The introduction of the conversion coefficient can be properly adjusted according to the type of liquid to be measured, and the applicability of the conversion coefficient can be further improved. This formula takes into account the influence of different liquids on the electrode capacitance value, and is suitable for the measurement of various liquids, which can effectively increase the distance of the sensing area. accuracy and authenticity.

利用感应区距离公式对液位测量电极的电容值、液体参考电极的电容值以及环境参考电极的电容值进行计算,获得感应区距离,并将感应区距离作为第二级测量结果数据。The capacitance value of the liquid level measurement electrode, the capacitance value of the liquid reference electrode and the capacitance value of the environment reference electrode are calculated by using the distance formula of the sensing area to obtain the distance of the sensing area, and the distance of the sensing area is used as the second-level measurement result data.

本发明根据液位测量电极的电容值、液体参考电极的电容值以及环境参考电极的电容值构建感应区距离公式,构建感应区距离公式可以消除电极、液体及环境等因素对电容的影响,减小误差,提高液位测量的精度。利用感应区距离公式对液位测量电极的电容值、液体参考电极的电容值以及环境参考电极的电容值进行计算,获得感应区距离,并将感应区距离作为第二级测量结果数据,使用感应区距离作为第二级测量结果数据,可以避免电容测量中不稳定的因素对测量结果的影响,从而获得更加稳定的测量信号。According to the capacitance value of the liquid level measuring electrode, the capacitance value of the liquid reference electrode and the capacitance value of the environment reference electrode, the invention constructs the distance formula of the sensing area, and the construction of the distance formula of the sensing area can eliminate the influence of factors such as electrodes, liquid, and the environment on the capacitance, and reduce the Small error, improve the accuracy of liquid level measurement. Use the distance formula of the sensing area to calculate the capacitance value of the liquid level measurement electrode, the capacitance value of the liquid reference electrode and the capacitance value of the environmental reference electrode to obtain the distance of the sensing area, and use the distance of the sensing area as the second-level measurement result data. As the second-level measurement result data, the zone distance can avoid the influence of unstable factors in the capacitance measurement on the measurement result, so as to obtain a more stable measurement signal.

可选地,步骤S61中的分类计算为利用优化二级模型进行分类计算,其中优化二级模型的构建方法包括以下步骤:Optionally, the classification calculation in step S61 is to use the optimized secondary model to perform classification calculation, wherein the construction method of the optimized secondary model includes the following steps:

通过预设的划分比例对明渠闸门指令数据进行划分,从而获得训练集和测试集;Divide the open channel gate command data by a preset division ratio to obtain a training set and a test set;

本发明实施例中通过8:2的划分比例对明渠闸门指令数据进行划分,从而获得训练集和测试集。In the embodiment of the present invention, the open channel gate instruction data is divided by a division ratio of 8:2, so as to obtain a training set and a test set.

利用CatBoost算法对训练集以及测试集进行建模,从而得到CatBoost一级模型;Use the CatBoost algorithm to model the training set and test set to obtain the CatBoost first-level model;

利用决策树算法对训练集以及测试集进行建模,从而得到决策树一级模型;Use the decision tree algorithm to model the training set and test set, so as to obtain the decision tree first-level model;

利用CatBoost一级模型以及决策树一级模型对测试集进行预测,从而得到预测结果;Use the CatBoost first-level model and the decision tree first-level model to predict the test set to obtain the prediction results;

利用预测结果通过支持向量机建模算法进行建模,从而构建二级模型,并利用测试集对二级模型进行迭代均方值误差拟合,从而获得优化二级模型。The predicted results are used to build a secondary model through the support vector machine modeling algorithm, and the test set is used to iteratively fit the secondary model with mean square error to obtain an optimized secondary model.

本发明实施例中将预测结果作为输入,通过支持向量机建模算法进行建模,从而构建二级模型,利用测试集对二级模型进行迭代均方误差拟合,也就是在测试集上评估出此时的拟合效果,以此来进行二级模型的优化,从而获得优化二级模型。In the embodiment of the present invention, the prediction result is used as input, and the support vector machine modeling algorithm is used for modeling to construct a secondary model, and the secondary model is used to iteratively mean square error fitting the secondary model, that is, to evaluate on the test set The fitting effect at this time is obtained to optimize the second-level model, so as to obtain the optimized second-level model.

本发明中的优化二级模型,将潮位范围数据通过预设的划分比例进行划分,将明渠闸门指令数据进行划分能够防止过拟合、验证模型的能力以及提高模型的可靠性,从而得到训练集和测试集。使用CatBoost算法对训练集以及测试集进行建模,CatBoost算法能够有效降低过拟合风险、能够自动参数调优、预测准确度高的优势,从而得到CatBoost一级模型。使用决策树算法对训练集以及测试集进行建模,决策树算法能够有效地进行特征选择,可以提高模型精度和效率,能够有效降低噪声数据的影响,从而得到决策树一级模型。利用CatBoost一级模型以及决策树一级模型对测试集进行预测,从而得到预测结果。利用预测结果通过线性回归方法进行建模,从而构建二级模型,使用CatBoost一级模型以及决策树一级模型对测试集进行预测的预测结果作为特征来训练二级向量机模型,与使用单个模型相比,这种集成学习技术可以带来更好的准确性和鲁棒性。利用测试集对二级模型进行迭代均方值误差拟合,从而获得优化二级模型,利用测试集对二级模型进行迭代均方误差拟合可以有效地优化模型的预测性能,提高模型的泛化能力,并评估模型的预测性能。The optimized two-level model in the present invention divides the tide level range data through the preset division ratio, and divides the open channel gate instruction data to prevent over-fitting, verify the ability of the model and improve the reliability of the model, thereby obtaining the training set and the test set. Use the CatBoost algorithm to model the training set and test set. The CatBoost algorithm can effectively reduce the risk of overfitting, can automatically tune parameters, and has the advantages of high prediction accuracy, thus obtaining the CatBoost first-level model. The decision tree algorithm is used to model the training set and the test set. The decision tree algorithm can effectively select features, improve the accuracy and efficiency of the model, and effectively reduce the influence of noise data, thereby obtaining the first-level model of the decision tree. The first-level model of CatBoost and the first-level decision tree model are used to predict the test set, so as to obtain the prediction results. Use the prediction results to model through the linear regression method to build a secondary model, use the CatBoost primary model and the decision tree primary model to predict the prediction results of the test set as features to train the secondary vector machine model, and use a single model Compared with , this ensemble learning technique can bring better accuracy and robustness. Using the test set to perform iterative mean square error fitting on the second-level model to obtain an optimized second-level model, using the test set to perform iterative mean square error fitting on the second-level model can effectively optimize the prediction performance of the model and improve the generality of the model. capacity and evaluate the predictive performance of the model.

可选地,本说明书中还提供一种基于多通道超声波阵列的明渠流量测量系统,包括:Optionally, this specification also provides an open channel flow measurement system based on a multi-channel ultrasonic array, including:

至少一个处理器;以及,at least one processor; and,

与至少一个处理器通信连接的存储器;其中,memory communicatively coupled to at least one processor; wherein,

存储器存储有可被至少一个处理器执行的计算机程序,计算机程序被至少一个处理器执行,以使至少一个处理器能够执行上述任一项的基于多通道超声波阵列的明渠流量测量方法。The memory stores a computer program that can be executed by at least one processor, and the computer program is executed by at least one processor, so that at least one processor can execute any one of the methods for measuring open channel flow based on a multi-channel ultrasonic array described above.

本发明中一种基于多通道超声波阵列的明渠流量测量系统,该系统能够实现本发明任意一种基于多通道超声波阵列的明渠流量测量方法,用于联合各个设备之间的操作与信号传输的媒介,以完成基于多通道超声波阵列的明渠流量测量方法,系统内部结构互相协作,从而完善水利明渠闸门的控制和应用,实现对水利明渠闸门的智能化控制。An open channel flow measurement system based on a multi-channel ultrasonic array in the present invention, the system can realize any open channel flow measurement method based on a multi-channel ultrasonic array in the present invention, and is used as a medium for combining operation and signal transmission between various devices , in order to complete the open channel flow measurement method based on the multi-channel ultrasonic array, the internal structure of the system cooperates with each other, so as to improve the control and application of the water conservancy open channel gate, and realize the intelligent control of the water conservancy open channel gate.

因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本发明的范围由所附权利要求而不是上述说明限定,因此旨在将落在申请文件的等同要件的含义和范围内的所有变化涵括在本发明内。Accordingly, the embodiments should be considered exemplary and not restrictive in any respect, the scope of the invention being defined by the appended claims rather than the foregoing description, and it is therefore intended that the scope of the invention be defined by the appended claims rather than by the foregoing All changes within the meaning and range of equivalents of the elements are embraced in the present invention.

以上所述仅是本发明的具体实施方式,使本领域技术人员能够理解或实现本发明。对这些实施例的多种修改对本领域的技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所发明的原理和新颖特点相一致的最宽的范围。The above descriptions are only specific embodiments of the present invention, so that those skilled in the art can understand or implement the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention will not be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features of the invention herein.

Claims (10)

1. The open channel flow measurement method based on the multichannel ultrasonic array is characterized in that a multichannel ultrasonic flow velocity measurement device is applied, and the multichannel ultrasonic flow velocity measurement device comprises an ultrasonic sensor; the liquid level measuring device comprises a shell, an induction panel, a data transmission module, a power supply battery and a single chip microcomputer, wherein the induction panel, the single chip microcomputer, the data transmission module and the power supply battery are arranged in the shell; the shell is used for protecting equipment; the sensing panel comprises a plurality of sensing areas, a plurality of sensing capacitance conversion circuits, a liquid level measuring electrode, a liquid reference electrode, an environment reference electrode and a capacitance-to-digital converter, and the data transmission module is used for realizing communication between the liquid level measuring equipment and the data server, so that the liquid level measuring equipment transmits measured data to the data server through a wireless network; the power supply battery is used for supplying power to the liquid level measurement equipment; the single chip microcomputer is of a 32-bit processor architecture and is used for collecting, processing and transmitting liquid level data, and analog signals collected by the induction panel are converted into digital signals through a built-in capacitance-digital converter; the open channel flow measurement method based on the multichannel ultrasonic array comprises the following steps:
Step S1: measuring the liquid to be measured by using liquid level measuring equipment so as to obtain liquid level data;
step S2: acquiring open channel gate structure data, acquiring open channel gate layering flow rate data through a multichannel ultrasonic flow rate measuring device, and calculating the open channel gate layering flow rate data and liquid level data so as to acquire open channel flow rate data; constructing an open channel gate switching formula according to the open channel gate structure data, the open channel gate layering flow rate data, the open channel flow rate data and the liquid level data, wherein the open channel gate switching formula specifically comprises:
is an open channel gate threshold value->Is the liquid level value of the front side of the open channel gate, < + >>Is the liquid level value of the back side of the open channel gate, < + >>Is the weight of the open channel gate>For the volume of open channel gate->Is the open channel flow value;
step S3: acquiring historical hydrologic data and open channel gate historical switch data, and calculating the historical hydrologic data and the open channel gate historical switch data so as to obtain an open channel gate historical data set;
step S4: constructing an intelligent open-close model of the open channel gate according to the open channel gate open-close formula and the open channel gate historical data set;
step S5: acquiring real-time liquid level data and real-time open channel gate layering flow rate data, and calculating the real-time liquid level data and the real-time open channel gate layering flow rate data so as to obtain open channel gate instruction data;
Step S6: and calculating according to the open channel gate instruction data, so as to obtain an open channel gate mode, and sending the open channel gate mode to an open channel gate control module to execute open channel gate operation.
2. The method of claim 1, wherein a plurality of sensing areas on the sensing panel are sequentially and equidistantly arranged from bottom to top, the sensing areas are respectively in one-to-one correspondence with a plurality of sensing capacitance conversion circuits, each sensing area is electrically connected with a corresponding sensing capacitance conversion circuit, a liquid level measuring electrode is arranged between every two adjacent sensing areas, a liquid reference electrode is positioned at the bottom of the sensing panel, an environment reference electrode is positioned at the top of the sensing panel and is positioned at a position outside a liquid level measuring range, the liquid level measuring electrode corresponds to a capacitance digital converter, each liquid level measuring electrode is electrically connected with a corresponding capacitance digital converter, the liquid reference electrode and the environment reference electrode are both connected with each capacitance digital converter, and the sensing capacitance conversion circuits and the capacitance digital converters are both connected with the singlechip;
the sensing area is a conductive surface, and whether liquid coverage exists or not can be distinguished according to the magnitude of the generated sensing capacitance value;
the sensing area and the liquid level measuring electrode are not in direct contact with the liquid to be measured when the liquid level is measured, so that isolated measurement is realized;
The number of sensing areas on the sensing panel is determined by the level range.
3. The method according to claim 2, wherein step S1 is specifically:
step S11: after the liquid level measuring equipment is partially or completely immersed in the liquid to be measured, the sensing panel detects the liquid to be measured from bottom to top, and digital conversion is carried out according to the magnitude of a sensing capacitance value generated by a sensing area in the sensing panel, so that an output state of the sensing area is obtained, wherein the output state of the sensing area comprises a liquid state and a non-liquid state;
step S12: obtaining an induction zone where a current liquid level line is located through discrimination processing according to the output state of the induction zone, and taking the corresponding height of the induction zone where the current liquid level line is located as first-stage measurement result data;
step S13: acquiring a capacitance value of a liquid level measurement electrode, a capacitance value of a liquid reference electrode and a capacitance value of an environment reference electrode, and calculating the capacitance value of the liquid level measurement electrode, the capacitance value of the liquid reference electrode and the capacitance value of the environment reference electrode to obtain second-stage measurement result data, wherein the second-stage measurement result data is the liquid level height between a sensing area where a current liquid level line is located and a sensing area above the current liquid level line;
step S14: and calculating the first-stage measurement result data and the second-stage measurement result data so as to obtain liquid level data.
4. The method according to claim 1, wherein step S3 is specifically:
acquiring historical hydrologic data and open channel gate historical switching data, and calculating the historical hydrologic data by using an open channel gate switching formula so as to obtain the open channel gate historical hydrologic data;
the open channel gate historical hydrologic data and the open channel gate historical switch data are time-sequentially combined based on a time sequence, so that an open channel gate historical data set is generated.
5. The method according to claim 1, wherein step S4 is specifically:
calculating an open channel gate historical data set by using an open channel gate switching formula so as to obtain an open channel gate switching threshold data set, wherein the open channel gate switching threshold data set comprises open channel gate full-open threshold data, open channel gate flow blocking threshold data and open channel gate half-open threshold data;
constructing an intelligent open-close model of the open channel gate by utilizing an open channel gate opening and closing threshold data set according to an open channel gate opening and closing formula;
and the intelligent open-close model of the open channel gate is used as input data and is input into a data analysis module, so that the data analysis module monitors and analyzes the real-time data.
6. The method according to claim 5, wherein step S6 is specifically:
Step S61: classifying and calculating the open channel gate instruction data according to the open channel gate switch threshold data set so as to obtain open channel gate mode data, wherein the open channel gate mode data comprise open channel gate full-open mode data, open channel gate half-open mode data and open channel gate flow blocking mode data;
step S62: transmitting the open mode data of the open channel gate to an open channel gate control module to execute open channel gate operation, so that the open channel gate uses different open channel gate open modes according to the open channel gate open mode data, wherein the open channel gate open modes comprise an open channel gate full open mode, an open channel gate half open mode and an open channel gate flow blocking mode;
step S63: acquiring a real-time open mode of the open channel gate, and changing the open channel gate mode when the open channel gate mode is inconsistent with the corresponding open channel gate mode data, so that the open channel gate mode is matched with the open channel gate mode data.
7. A method according to claim 3, wherein step S12 comprises the steps of:
detecting the output states of the sensing areas from bottom to top until detecting that the output states of two consecutive sensing areas are liquid-free states, thereby obtaining liquid level sensing areas;
Continuously detecting the output state of the sensing area upwards above the liquid level sensing area; if the sensing area output states are all liquid-free states, judging that the current liquid level is located in the liquid level sensing area, and taking the height of the sensing area below the liquid level sensing area as first-stage measurement result data.
8. A method according to claim 3, wherein the calculation of the capacitance of the liquid level measuring electrode, the capacitance of the liquid reference electrode and the capacitance of the ambient reference electrode in step S13 is specifically:
constructing an induction area distance formula according to the capacitance value of the liquid level measuring electrode, the capacitance value of the liquid reference electrode and the capacitance value of the environment reference electrode, wherein the induction area distance formula specifically comprises:
wherein ,for the distance of the sensing area>Capacitance value of the level measuring electrode for the current level line, +.>For the capacitance value of the level measuring electrode without the liquid to be measured +.>For the capacitance value of the liquid reference electrode, +.>Is the capacitance value of the ambient reference electrode,is a conversion coefficient;
and calculating the capacitance value of the liquid level measuring electrode, the capacitance value of the liquid reference electrode and the capacitance value of the environment reference electrode by using an induction area distance formula to obtain an induction area distance, and taking the induction area distance as second-stage measuring result data.
9. The method according to claim 6, wherein the classification calculation in step S61 is a classification calculation using an optimized secondary model, wherein the construction method of the optimized secondary model comprises the steps of:
dividing open channel gate instruction data according to a preset dividing proportion, so as to obtain a training set and a testing set;
modeling a training set and a testing set by using a Catboost algorithm, so as to obtain a Catboost primary model;
modeling the training set and the testing set by utilizing a decision tree algorithm, so as to obtain a decision tree primary model;
predicting the test set by using the Catboost primary model and the decision tree primary model, thereby obtaining a prediction result;
modeling is carried out through a support vector machine modeling algorithm by utilizing a prediction result, so that a secondary model is constructed, and iterative mean square error fitting is carried out on the secondary model by utilizing a test set, so that an optimized secondary model is obtained.
10. An open channel flow measurement system based on a multi-channel ultrasonic array, comprising:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the multichannel ultrasound array-based open channel flow measurement method of any one of claims 1 to 9.
CN202310641475.8A 2023-06-01 2023-06-01 A method and system for measuring flow in an open channel based on a multi-channel ultrasonic array Active CN116360330B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310641475.8A CN116360330B (en) 2023-06-01 2023-06-01 A method and system for measuring flow in an open channel based on a multi-channel ultrasonic array

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310641475.8A CN116360330B (en) 2023-06-01 2023-06-01 A method and system for measuring flow in an open channel based on a multi-channel ultrasonic array

Publications (2)

Publication Number Publication Date
CN116360330A CN116360330A (en) 2023-06-30
CN116360330B true CN116360330B (en) 2023-09-01

Family

ID=86910679

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310641475.8A Active CN116360330B (en) 2023-06-01 2023-06-01 A method and system for measuring flow in an open channel based on a multi-channel ultrasonic array

Country Status (1)

Country Link
CN (1) CN116360330B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010097550A (en) * 2000-04-24 2001-11-08 남상용 Ultrasonic flow velocity measuring apparatus
CN101937229A (en) * 2010-09-14 2011-01-05 中国水利水电科学研究院 A remote automatic control system for water delivery channels
CN106843104A (en) * 2017-01-05 2017-06-13 中国电建集团西北勘测设计研究院有限公司 Gate progress control method based on HHT methods
CN108132618A (en) * 2016-12-01 2018-06-08 钛能科技股份有限公司 Using power generation electricity and the ecological flow control device of aerial drainage road combined monitoring
CN113529667A (en) * 2021-07-26 2021-10-22 中水三立数据技术股份有限公司 Automatic control method and system for integrated gate passing flow
CN113820976A (en) * 2021-08-30 2021-12-21 长江勘测规划设计研究有限责任公司 Gate intelligent control method based on artificial intelligence
CN115981221A (en) * 2023-03-21 2023-04-18 北京市农林科学院智能装备技术研究中心 Gradually optimized canal irrigation gate control method and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010097550A (en) * 2000-04-24 2001-11-08 남상용 Ultrasonic flow velocity measuring apparatus
CN101937229A (en) * 2010-09-14 2011-01-05 中国水利水电科学研究院 A remote automatic control system for water delivery channels
CN108132618A (en) * 2016-12-01 2018-06-08 钛能科技股份有限公司 Using power generation electricity and the ecological flow control device of aerial drainage road combined monitoring
CN106843104A (en) * 2017-01-05 2017-06-13 中国电建集团西北勘测设计研究院有限公司 Gate progress control method based on HHT methods
CN113529667A (en) * 2021-07-26 2021-10-22 中水三立数据技术股份有限公司 Automatic control method and system for integrated gate passing flow
CN113820976A (en) * 2021-08-30 2021-12-21 长江勘测规划设计研究有限责任公司 Gate intelligent control method based on artificial intelligence
CN115981221A (en) * 2023-03-21 2023-04-18 北京市农林科学院智能装备技术研究中心 Gradually optimized canal irrigation gate control method and system

Also Published As

Publication number Publication date
CN116360330A (en) 2023-06-30

Similar Documents

Publication Publication Date Title
CN103245881B (en) Power distribution network fault analyzing method and device based on tidal current distribution characteristics
CN110458230A (en) A Method for Discriminating Abnormality of Distribution Transformer Application Data Based on Multi-criteria Fusion
CN107742127A (en) An improved anti-stealing intelligent early warning system and method
CN112213687B (en) Data anomaly detection method and system of gateway electric energy meter based on false anomaly point identification
Yang et al. Research on singular value detection method of concrete dam deformation monitoring
CN113128098B (en) Concrete dam singular value detection method and equipment based on DE-LOF
CN110119758A (en) A kind of electricity consumption data abnormality detection and model training method, device
CN115600044B (en) River section flow calculation method, device, equipment and storage medium
CN110188399B (en) A single measurement point evaluation method for dam safety monitoring based on multi-correlation sequence
CN116992385B (en) Abnormal detection method and system for water meter consumption of Internet of things
Zulfauzi et al. Anomaly detection using K-Means and long-short term memory for predictive maintenance of large-scale solar (LSS) photovoltaic plant
CN109633448A (en) Identify the method, apparatus and terminal device of cell health state
CN117452062A (en) Method for monitoring line loss rate of transformer area in consideration of operation load
CN116861316B (en) An electrical appliance monitoring method and device
CN119337295A (en) A method and system for detecting faults in a power distribution cabinet
CN119579015B (en) Engineering quality early warning method and system based on data mining
CN119885049B (en) Method and system for monitoring operation state of park facility based on multi-mode sensing
CN117992726A (en) A multi-level early warning method, device, equipment and medium for rotating machinery
CN117575344A (en) Intelligent management and control system for coal mine production operation plan
CN116360330B (en) A method and system for measuring flow in an open channel based on a multi-channel ultrasonic array
CN115471361A (en) Method, system and medium for predicting field electric energy metering error of gateway electric energy meter
CN119720028A (en) Electric meter fault prediction method, system and device based on deep learning
CN119720034A (en) A method and system for detecting abnormal data based on data mining
CN118669281A (en) Online state evaluation method, device and equipment of wind motor and storage medium
Sun et al. Design and Analysis of Electricity Anomaly Detection and Diagnosis Models Based on Generative Adversarial Networks

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