Ultrasonic time-difference flow calculation method and system based on multi-objective optimization algorithm

The multi-objective optimization algorithm is used to calibrate the ultrasonic transit-time flow model, which solves the problems of time-consuming, labor-intensive and insufficient adaptability in conventional methods. It achieves accurate calculation and rapid calibration of the average flow rate of the river crossing section, and is suitable for changing river environments.

CN118428108BActive Publication Date: 2024-09-10BUREAU OF HYDROLOGY CHANGJIANG WATER RESOURCES COMMISSION
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410845844.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-09-10
Estimated Expiration
2044-06-27

AI Technical Summary

Technical Problem

Conventional ultrasonic transit time flow calculation method is time-consuming and labor-intensive, difficult to calibrate flow model parameters, and has insufficient adaptability to changing river environments and cannot meet accuracy requirements.

Method used

The ultrasonic transit time flow calculation method based on the multi-objective optimization algorithm is adopted. The optimal solution parameters in the ultrasonic flow model are calibrated through the cuckoo multi-objective optimization algorithm. The ultrasonic transit time flow model is constructed and the local flow of each layer in the river crossing section is input. Actual measured values, and output optimized calculated values ​​of the average flow of the river crossing section.

Benefits of technology

It realizes the real-time and accurate calculation of the average flow of the river cross-section in the hydrological test environment, and quickly determines the parameters of the flow model, avoiding the inefficiency and parameter optimization problems in the traditional method. It can adapt to different flow or water level intervals without repeatedly calibrating parameters. Has broad application potential.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118428108B
    Figure CN118428108B
Patent Text Reader

Abstract

The present application provides an ultrasonic time-difference flow calculation method and system based on a multi-objective optimization algorithm, the method comprising the following steps: constructing an ultrasonic time-difference flow model; using a cuckoo multi-objective optimization algorithm to calibrate the optimal solution parameters in the ultrasonic flow model; inputting the optimal solution parameters into the constructed ultrasonic time-difference flow model to obtain the optimized ultrasonic time-difference flow model; inputting the measured values ​​of the local flow of each layer in the water-passing section of the river into the optimized ultrasonic time-difference flow model, and outputting the optimized calculated value of the average flow of the water-passing section of the river. The present application can accurately calculate the average flow of the water-passing section of the river in real time; can calibrate the flow model parameters more quickly; takes into account multi-objective benefits; does not require repeated calibration of parameters and adjustment of the model structure; and has broad application potential in the fields of digital twin hydrological stations, real-time online hydrological monitoring, and water resources management.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of water conservancy and hydrological instrument measurement, and in particular to an ultrasonic time-difference flow calculation method and system based on a multi-objective optimization algorithm. Background Art

[0002] Although online flow measurement technology has been developed for decades and gradually moved towards production application, its core problems still exist. Affected by climate, hydrology, geology and other factors, the river test environment and flow size change with the seasons. The conventional ultrasonic time difference method flow calculation method is time-consuming and laborious, and the flow model parameters are difficult to calibrate when facing multiple competing accuracy assessment targets (such as systematic errors and random uncertainties). It is not adaptable enough to the changing river environment. Therefore, it is urgent to establish a robust and efficient ultrasonic time difference method flow model parameter calibration method, that is, how to accurately calculate the average flow of the section through the stratified local flow velocity of the water section of the river, so that the calculated flow under the optimal parameter combination and the systematic error and random uncertainty of the measured flow can meet the accuracy requirements, and flexible data analysis and intelligent algorithms are used to cope with the changing environment. Summary of the invention

[0003] The present application provides an ultrasonic time-difference flow calculation method and system based on a multi-objective optimization algorithm, which can solve the technical problems that the conventional ultrasonic time-difference flow calculation method is time-consuming and labor-intensive, the flow model parameters are difficult to calibrate when facing multiple competing precision assessment targets, and the method lacks adaptability to changing river environments.

[0004] In a first aspect, the present application provides an ultrasonic time difference flow calculation method based on a multi-objective optimization algorithm, comprising the following steps:

[0005] Construct ultrasonic time-difference flow model;

[0006] The cuckoo multi-objective optimization algorithm is used to calibrate the optimal solution parameters in the ultrasonic flow model;

[0007] Input the optimal solution parameters into the constructed ultrasonic time difference method flow model to obtain the optimized ultrasonic time difference method flow model;

[0008] Input the measured values ​​of local flow in each layer of the river section into the optimized ultrasonic time difference flow model, and output the optimized calculated value of the average flow in the river section.

[0009] In combination with the first aspect, in one implementation, constructing an ultrasonic time-difference flow model includes:

[0010] Based on the local velocity of each layer obtained by ultrasonic time difference method, the local average velocity of each layer in the water section of the river is deduced;

[0011] According to the local flow of each layer in the river section, the ultrasonic time difference flow model is constructed as shown in the following formula:

[0012]

[0013] In the formula, is the calculated value of the average flow rate of the river section. They are the local flow of each layer in the water-passing section of the river; are the weight coefficients of local flow in each layer of the river flow section, To correct the flow rate, is the local cross-sectional area of ​​each layer of the river channel cross-sectional area, n+1 is the number of layers, is the ultrasonic time difference flow rate of each layer, is the ultrasonic time difference flow rate of each layer.

[0014] In combination with the first aspect, in one embodiment, the local flow velocity of each layer obtained by the ultrasonic time difference method is used to deduce the local average flow velocity of each layer in the water section of the river:

[0015] Obtain the local water-passing cross-sectional area of ​​each layer of the river water-passing cross-sectional area;

[0016] Based on the local velocity of each layer obtained by ultrasonic time difference method, the local average velocity of each layer in the water section of the river is deduced;

[0017] The local flow rate of each layer of the river channel cross-section is calculated based on the obtained local cross-sectional area of ​​each layer of the river channel cross-section and the local average flow velocity of each layer of the river channel cross-section.

[0018] In combination with the first aspect, in one implementation, obtaining the local water-passing cross-sectional area of ​​each layer of the water-passing cross-sectional area of ​​the river includes:

[0019] Collect information on hydrological testing environment and installation of ultrasonic time-difference flow measurement equipment;

[0020] Measure the water level of the river section;

[0021] According to the hydrological test environment, the installation information of the ultrasonic time difference flow measurement equipment and the water level of the river flow section, the local water flow section area of ​​each layer of the river flow section is obtained.

[0022] In combination with the first aspect, in one implementation, the method of using the cuckoo multi-objective optimization algorithm to calibrate the optimal solution parameters in the ultrasonic flow model includes:

[0023] The cuckoo multi-objective optimization algorithm is used to calibrate the weight coefficient of local flow in each layer of the river section in the ultrasonic time difference flow model, and the main parameters of the multi-objective optimization algorithm are set.

[0024] Establish multi-objective functions of ultrasonic time-difference flow model;

[0025] Determine the optimization variables in the ultrasonic transit-time flow model;

[0026] Set up the optimization calculation method of ultrasonic time difference flow model;

[0027] Based on the established multi-objective function, with the goal of minimizing the systematic error and random uncertainty of the ultrasonic time difference method flow and the measured flow, the established ultrasonic time difference method flow model is iteratively calculated using the set optimization calculation method to generate a Pareto solution set;

[0028] Select the optimal solution parameters from the Pareto solution set.

[0029] In combination with the first aspect, in one implementation, the multi-objective function for establishing the ultrasonic time difference method flow model includes two objectives: system error and random uncertainty, as shown in the following formula:

[0030]

[0031]

[0032] In the formula, is the number of tests, For the The calculated value of the average flow rate of the measured section, For the The measured value of the average flow rate of the section during the measurement. is the system error, The confidence level is 95% random uncertainty.

[0033] In combination with the first aspect, in one implementation, the optimal solution parameters are input into the constructed ultrasonic time difference method flow model to obtain the optimized ultrasonic time difference method flow model. The optimized ultrasonic time difference method flow model is shown in the following formula:

[0034]

[0035] In the formula, is the optimized calculated value of the average flow rate of the river section. are the local flow rates of each layer in the water-passing section of the river, are the optimized rate values ​​of each layered local flow weight coefficient in the optimal layered local flow weight coefficient combination, To correct the flow rate optimization rate value.

[0036] In conjunction with the first aspect, in one implementation, the method further includes the following steps:

[0037] Verify the optimized ultrasonic transit-time flow model;

[0038] If the optimized ultrasonic time-difference flow model does not meet the flow measurement accuracy requirements, then return to re-execute the model optimization operation;

[0039] If the optimized ultrasonic time difference method flow model meets the flow measurement accuracy requirement, the verified optimized ultrasonic time difference method flow model is obtained to perform subsequent flow measurement operations.

[0040] In a second aspect, the present application provides an ultrasonic time difference flow calculation system based on a multi-objective optimization algorithm, comprising:

[0041] Model building module, used to build ultrasonic time-difference flow model;

[0042] An optimal solution parameter acquisition module, which is in communication connection with the model building module and is used to calibrate the optimal solution parameters in the ultrasonic flow model using a cuckoo multi-objective optimization algorithm;

[0043] A model optimization module, which is in communication with the model construction module and the optimal solution parameter acquisition module, and is used to input the optimal solution parameters into the constructed ultrasonic time difference method flow model to obtain the optimized ultrasonic time difference method flow model;

[0044] The average flow calculation module of the river water section is communicated with the model optimization module, and is used to input the measured values ​​of the local flow of each layer of the river water section into the optimized ultrasonic time difference method flow model, and output the optimized calculated value of the average flow of the river water section.

[0045] In conjunction with the second aspect, in one implementation, the optimal solution parameter acquisition module includes:

[0046] A parameter setting unit is used to calibrate the weight coefficient of each layer of local flow in the river water section in the ultrasonic time difference method flow model using the cuckoo multi-objective optimization algorithm, and to set the main parameters of the multi-objective optimization algorithm;

[0047] A multi-objective function establishment unit is used to establish a multi-objective function of an ultrasonic time-difference flow model;

[0048] An optimization variable determination unit, used for determining optimization variables in an ultrasonic time difference method flow model;

[0049] A method setting unit, used to set an optimization calculation method for an ultrasonic time difference method flow model;

[0050] A solution set generating unit is communicatively connected with the parameter setting unit, the multi-objective function establishing unit, the optimization variable determining unit and the method setting unit, and is used to iteratively calculate the established ultrasonic time difference method flow model using the set optimization calculation method based on the established multi-objective function and with the goal of minimizing the systematic error and random uncertainty of the ultrasonic time difference method flow and the measured flow, so as to generate a Pareto solution set;

[0051] The optimal solution screening unit is communicatively connected with the solution set generating unit and is used for screening out the optimal solution parameters from the Pareto solution set.

[0052] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:

[0053] The ultrasonic time difference flow calculation method based on the multi-objective optimization algorithm provided in the present application can accurately calculate the average flow of the water section of the river in real time based on the hydrological test environment, the installation information of the ultrasonic time difference flow measurement equipment and the water layer velocity data;

[0054] Compared with the traditional ultrasonic time difference method of flow estimation, it can calibrate the flow model parameters more quickly, avoiding the inefficiency of manual parameter calibration and the difficulty in finding the optimal solution parameters, as well as the dimensionality curse of the exhaustive optimization algorithm;

[0055] The competitive relationship among multiple evaluation targets of the traffic model is taken into account, which can better balance the benefits of multiple targets;

[0056] Under the premise that the cross-sectional shape of the river does not change, the optimization model and optimization parameters calibrated by different flow or water level intervals can be directly used without repeatedly calibrating parameters and adjusting the model structure;

[0057] It has broad application potential in the fields of digital twin hydrological stations, real-time online hydrological monitoring, water resources management, etc., and can provide reference for the construction of the national water network and the three-line defense construction of rain and water conditions. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] Figure 1 A method flow chart of an ultrasonic time difference flow calculation method based on a multi-objective optimization algorithm provided in an embodiment of the present application;

[0059] Figure 2 A flow chart of a method for calculating flow using ultrasonic time difference method based on a multi-objective optimization algorithm provided in an embodiment of the present application;

[0060] Figure 3 A schematic diagram of the cross-sectional shape of a river channel test and the installation of an ultrasonic time-difference method equipment provided in an embodiment of the present application;

[0061] Figure 4 (a) is provided in the embodiment of the present application Pareto solution diagram of systematic error and random uncertainty based on multi-objective optimization algorithm in flow interval scenario; Figure 4 (b) is provided in the embodiment of the present application Pareto solution diagram of systematic error and random uncertainty based on multi-objective optimization algorithm in flow interval scenario; Figure 4 (c) is provided in the embodiment of the present application Pareto solution diagram of systematic error and random uncertainty based on multi-objective optimization algorithm in flow interval scenario; Figure 4 (d) is provided in the embodiment of the present application The Pareto solution diagram of the systematic error and random uncertainty based on the multi-objective optimization algorithm under the following flow interval scenario; Figure 4 (e) is provided in the embodiment of the present application Pareto solution diagram of systematic error and random uncertainty based on multi-objective optimization algorithm under the above flow interval scenario; Figure 4 (f) is provided in the embodiment of the present application The Pareto solution diagram of the systematic error and random uncertainty based on the multi-objective optimization algorithm under the following flow interval scenario;

[0062] Figure 5 (a) is provided in the embodiment of the present application Optimal parameter combination diagram based on multi-objective optimization algorithm under flow interval scenario; Figure 5 (b) is provided in the embodiment of the present application Optimal parameter combination diagram based on multi-objective optimization algorithm under flow interval scenario; Figure 5 (c) is provided in the embodiment of the present application Optimal parameter combination diagram based on multi-objective optimization algorithm under flow interval scenario; Figure 5 (d) is provided in the embodiment of the present application The optimal parameter combination diagram based on the multi-objective optimization algorithm under the following traffic interval scenarios; Figure 5 (e) is provided in the embodiment of the present application The optimal parameter combination diagram based on the multi-objective optimization algorithm under the above traffic interval scenario; Figure 5 (f) is provided in the embodiment of the present application The optimal parameter combination diagram based on the multi-objective optimization algorithm under the following traffic interval scenarios;

[0063] Figure 6 (a) is provided in the embodiment of the present application Comparison chart of the flow rate calculated by ultrasonic time difference method based on multi-objective optimization algorithm and the measured flow rate in flow interval scenario; Figure 6 (b) is provided in the embodiment of the present application Comparison chart of the flow rate calculated by ultrasonic time difference method based on multi-objective optimization algorithm and the measured flow rate in flow interval scenario; Figure 6 (c) is provided in the embodiment of the present application Comparison chart of the flow rate calculated by ultrasonic time difference method based on multi-objective optimization algorithm and the measured flow rate in flow interval scenario; Figure 6 (d) is provided in the embodiment of the present application The following is a comparison chart of the flow rate calculated by the ultrasonic time difference method based on the multi-objective optimization algorithm and the measured flow rate in the flow range scenario; Figure 6 (e) is provided in the embodiment of the present application Comparison chart of the flow rate calculated by ultrasonic time difference method based on multi-objective optimization algorithm and the measured flow rate in the above flow interval scenario; Figure 6 (f) is provided in the embodiment of the present application The following is a comparison chart of the flow rate calculated by the ultrasonic time difference method based on the multi-objective optimization algorithm and the measured flow rate in the flow range scenario. DETAILED DESCRIPTION

[0064] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0065] The terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices. The terms "first", "second" and "third" are used to distinguish different objects, etc., and do not represent a sequence, nor do they limit "first", "second" and "third" to different types.

[0066] In the description of the embodiments of the present application, "exemplary", "for example" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary", "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary", "for example" or "for example" is intended to present related concepts in a specific way.

[0067] In the description of the embodiments of the present application, unless otherwise specified, “ / ” means or, for example, A / B can mean A or B; the “and / or” in the text is merely a description of the association relationship of associated objects, indicating that three relationships may exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, “multiple” refers to two or more than two.

[0068] In some processes described in the embodiments of the present application, multiple operations or steps that appear in a specific order are included, but it should be understood that these operations or steps may not be executed in the order in which they appear in the embodiments of the present application or in parallel, and the sequence number of the operation is only used to distinguish the different operations, and the sequence number itself does not represent any execution order. In addition, these processes may include more or fewer operations, and these operations or steps may be executed in sequence or in parallel, and these operations or steps may be combined.

[0069] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0070] First, please refer to Figure 1 The present application provides an ultrasonic time difference flow calculation method based on a multi-objective optimization algorithm, comprising the following steps:

[0071] Step S1, constructing an ultrasonic time difference flow model;

[0072] Step S2, using the cuckoo multi-objective optimization algorithm to calibrate the optimal solution parameters in the ultrasonic flow model;

[0073] Step S3, inputting the optimal solution parameters into the constructed ultrasonic time difference method flow model to obtain the optimized ultrasonic time difference method flow model;

[0074] Step S4, input the measured values ​​of local flow in each layer of the river flow section into the optimized ultrasonic time difference method flow model, and output the optimized calculated value of the average flow in the river flow section.

[0075] The ultrasonic time difference flow calculation method based on the multi-objective optimization algorithm provided in the present application can accurately calculate the average flow of the water section of the river in real time based on the hydrological test environment, the installation information of the ultrasonic time difference flow measurement equipment and the water layer velocity data;

[0076] Compared with the traditional ultrasonic time difference method of flow estimation, it can calibrate the flow model parameters more quickly, avoiding the inefficiency of manual parameter calibration and the difficulty in finding the optimal solution parameters, as well as the dimensionality curse of the exhaustive optimization algorithm;

[0077] The competitive relationship among multiple evaluation targets of the traffic model is taken into account, which can better balance the benefits of multiple targets;

[0078] Under the premise that the cross-sectional shape of the river does not change, the optimization model and optimization parameters calibrated by different flow or water level intervals can be directly used without repeatedly calibrating parameters and adjusting the model structure;

[0079] It has broad application potential in the fields of digital twin hydrological stations, real-time online hydrological monitoring, water resources management, etc., and can provide reference for the construction of the national water network and the three-line defense construction of rain and water conditions.

[0080] In one embodiment, the step S1, constructing an ultrasonic time difference flow model, comprises:

[0081] Step S11, obtaining the local flow of each layer in the water-passing section of the river;

[0082] Step S12: construct an ultrasonic time-difference flow model based on the local flow of each layer in the water-passing section of the river.

[0083] In one embodiment, the step S11 of obtaining the local flow of each layer in the water-passing section of the river includes:

[0084] Step S111, obtaining the local cross-sectional area of ​​each layer of the river channel cross-sectional area, and the local cross-sectional area of ​​each layer is expressed as , where n is the number of transducer layers, indicating that n layers of transducers divide the river channel cross-section into n+1 layers;

[0085] Step S112: Calculate the local average flow velocity of each layer of the river water section based on the local flow velocity of each layer obtained by the ultrasonic time difference method, which specifically refers to the average flow velocity of the water section area sandwiched between every two layers of time difference flow velocity. The n-layer transducer divides the river water section into n+1 parts. The local average flow velocities of the layers of the river water section are respectively , ,……, and ,in is the river bottom velocity (take 0.4-0.8 times of The ultrasonic time difference flow rate of each layer;

[0086] Among them, the ultrasonic time difference flow rate of each layer It can be calculated according to the following formula:

[0087]

[0088] In the formula, is the average flow velocity of the water layer perpendicular to the flow measurement section, is the distance between the two transducers. When the two transducers installed at the same elevation on both sides of the river are working, transducer 1 transmits a sound pulse downstream to transducer 2, and the propagation time of the sound path downstream is measured. , Transducer 2 then transmits a sound pulse upstream to transducer 1, and measures the propagation time of the sound wave upstream. , is the time it takes for the sound wave to propagate against the water between the two transducers; It is the angle between the connecting line of the two transducers and the cross section.

[0089] Step S113, based on the local cross-sectional area of ​​each layer of the river channel cross-sectional area and the local average flow velocity of each layer of the river channel cross-sectional area, the local flow rate of each layer of the river channel cross-sectional area is calculated and obtained as follows: , ,……, and ,in, It is the local water-passing cross-sectional area of ​​each layer of the river water-passing section.

[0090] In one embodiment, the step S111 of obtaining the local water-passing cross-sectional area of ​​each layer of the water-passing cross-section of the river includes:

[0091] Collect hydrological test environment and ultrasonic time difference flow measurement equipment installation information. The hydrological test environment includes the shape of the river water section and the river bottom elevation. The ultrasonic time difference flow measurement equipment installation information includes the installation elevation of each layer transducer emitting ultrasonic waves, ultrasonic emission intensity, the angle between the transducer group and the river water section, and other equipment technical indicators;

[0092] Measure the water level of the river section;

[0093] According to the hydrological test environment, the installation information of the ultrasonic time difference flow measurement equipment and the water level of the river section, the local cross-sectional area of ​​each layer of the river section is obtained. Specifically, according to the water level of the river section, the elevation of the riverbed of the section, the shape of the river section and the installation elevation of each layer transducer, the local cross-sectional area of ​​each layer of the river section with each layer transducer as the boundary is calculated.

[0094] In one embodiment, the step S112, based on the local flow velocity of each layer obtained by ultrasonic time difference method, the local average flow velocity of each layer in the water section of the river is deduced:

[0095] Based on the local flow velocity of each layer obtained by the ultrasonic time difference method, the local average flow velocity of each layer in the water-passing section of the river is deduced, specifically the average flow velocity of the water-passing cross-sectional area between every two layers of time difference flow velocity.

[0096] In one embodiment, the step S12 constructs an ultrasonic time difference flow model according to the local flow of each layer in the water section of the river, as shown in the following formula:

[0097]

[0098]

[0099] In the formula, is the calculated value of the average flow rate of the river section. They are the local flow of each layer in the water-passing section of the river; are the weight coefficients of local flow in each layer of the river flow section, To correct the flow rate, is the local cross-sectional area of ​​each layer of the river cross-sectional area, is the ultrasonic time difference flow rate of each layer.

[0100] In one embodiment, the step S2, using the cuckoo multi-objective optimization algorithm to calibrate the optimal solution parameters in the ultrasonic flow model, comprises:

[0101] Step S21, using the cuckoo multi-objective optimization algorithm to calibrate the weight coefficient of each layer of the local flow of the river section in the ultrasonic time difference method flow model, and setting the main parameters of the multi-objective optimization algorithm, including population size, number of objective functions, number of optimization variables, upper and lower limits of the value range of the number of units to be calibrated, etc.;

[0102] The cuckoo optimization algorithm is a heuristic optimization algorithm based on the clustering behavior of cuckoos in nature. When cuckoos are looking for food, the flock will search and migrate between different food sources based on factors such as the abundance of food and their own energy consumption. The algorithm simulates the three behaviors of cuckoo individuals: foraging, attraction, and migration. Foraging refers to finding the best solution; attraction refers to improving search efficiency by exchanging information between individuals; migration refers to deciding whether to migrate to a new location based on search results and information exchange.

[0103] Step S22, establish a multi-objective function of the ultrasonic time difference method flow model, including two objectives: system error and random uncertainty, as shown in the following formula:

[0104]

[0105]

[0106] In the formula, is the number of tests, For the The calculated value of the average flow rate of the measured section, For the The measured value of the average flow rate of the section during the measurement. is the system error, is the random uncertainty with a confidence level of 95%;

[0107] By establishing the system error minimization objective function and the random uncertainty minimization objective function, the optimal model parameter combination is found.

[0108] Step S23, determining the optimization variables in the ultrasonic time difference flow model, including the weight coefficient of the stratified local flow; randomly generating a number of weight coefficient combinations, and calculating the average flow of the river section; correcting the calculated flow according to the measured flow of the river section during the same period; generating an initialization solution, including model parameters, multi-objective values, corrected flow and section flow;

[0109] Step S24, setting the optimization calculation method of the ultrasonic time difference method flow model, including setting the number of iterations, setting the constraint conditions, constructing the penalty function, updating and iterating the initial solution, non-dominated sorting of the new solution, etc.;

[0110] Step S25, based on the established multi-objective function, with the goal of minimizing the systematic error and random uncertainty of the ultrasonic time difference method flow and the measured flow, the established ultrasonic time difference method flow model is iteratively calculated using the set optimization calculation method to generate a Pareto solution set, which takes into account the competitive relationship between the systematic error and the random uncertainty, can better take into account the multi-objective benefits, and realize the calibration of the flow model parameters facing multiple precision assessment targets with competing relationships;

[0111] Step S26, filter out the optimal solution parameters from the Pareto solution set. Specifically, formulate screening principles according to actual comparison needs, such as minimizing the system error when the random uncertainty does not exceed a certain value, and select the optimal solution parameters from the Pareto solution set containing many Pareto solutions, including the optimal stratified local flow weight coefficient combination and the modified flow optimization rate value, the optimal cross-sectional flow and the optimal target value.

[0112] In one embodiment, step S3, input the optimal solution parameters into the constructed ultrasonic time difference method flow model to obtain the optimized ultrasonic time difference method flow model, as shown in the following formula:

[0113]

[0114] In the formula, is the optimized calculated value of the average flow rate of the river section. are the local flow rates of each layer in the water-passing section of the river, are the optimized rate values ​​of each layered local flow weight coefficient in the optimal layered local flow weight coefficient combination, To correct the flow rate optimization rate value.

[0115] In one embodiment, the following steps are also included:

[0116] Verify the optimized ultrasonic transit-time flow model;

[0117] If the optimized ultrasonic time difference flow model does not meet the flow measurement accuracy requirements, then return to re-execute the model optimization operation, specifically, re-obtain the optimal solution parameters of the model, input them into the constructed ultrasonic time difference flow model, obtain the optimized ultrasonic time difference flow model, and then verify the flow measurement accuracy of the optimized ultrasonic time difference flow model. When the measurement accuracy meets the flow measurement accuracy requirements, the ultrasonic time difference flow model after this round of optimization is the optimized ultrasonic time difference flow model;

[0118] If the optimized ultrasonic time difference method flow model meets the flow measurement accuracy requirement, the verified optimized ultrasonic time difference method flow model is obtained to perform subsequent flow measurement operations.

[0119] The flow measurement is the average flow of the water-passing section of the test river.

[0120] In a specific embodiment, if Figure 2 As shown, the ultrasonic time difference flow calculation method based on the multi-objective optimization algorithm provided in this application includes the following steps:

[0121] Step 1. Select the Hanjiang Baihe Hydrological Station as the embodiment object, and input the actual flow rate measured by the rotor flow meter in the same period as the ultrasonic time difference method flow measurement;

[0122] Step 2. Collect the cross-sectional shape of the river channel, the riverbed elevation, and the installation elevations of each layer of transducers emitting ultrasonic waves at the test section. In a specific embodiment, the ultrasonic time difference method of the Baihe Hydrological Station has a total of four layers of sound paths, and the elevations of each layer of sound paths are 173.9 m, 175.4 m, 177.1 m, and 178.6 m respectively;

[0123] Step 3. While measuring the flow using the ultrasonic time difference method, measure the water level of the river section;

[0124] Step 4. Figure 3 As shown, in a specific embodiment, the four-layer transducer divides the water-passing section of the river into five parts, and the local water-passing section area of ​​each layer is ;

[0125] Step 5. Figure 3 As shown, in a specific embodiment, the average flow velocities of the sound paths where the four-layer transducers are located are ; The riverbed velocity coefficient is 0.6, then the riverbed velocity is ; The local average velocity of the layer is the average of the velocity of two adjacent layers by time difference method, which are , , , and ;

[0126] Step 6. Figure 3 As shown in a specific embodiment, according to the layered local water flow cross-sectional area and the layered local average flow velocity, the layered local flow of each layered section of the river water flow is calculated as follows: , , , and ;

[0127] Step 7. Ultrasonic time-difference flow model is constructed as ;

[0128] Step 8. The cuckoo multi-objective optimization algorithm is used to calibrate the layered local flow weight coefficient in the constructed ultrasonic time difference flow model. The population size of the multi-objective optimization algorithm is set to 500, the number of objective functions is 2, the number of optimization variables is 5, and the value range of the parameter to be calibrated is -10 20;

[0129] Step 9. Establish the multi-objective function as follows:

[0130]

[0131]

[0132] In the formula, is the number of tests, For the The calculated value of the average flow rate of the measured section, For the The measured value of the average flow rate of the section during the measurement. is the system error, is the random uncertainty with a confidence level of 95%;

[0133] Step 10. Optimize the variables , randomly generate 500 sets of weight coefficients, and calculate the average flow rate of the river section, and correct the calculated flow rate according to the measured flow rate of the river section during the same period input in step 1, and then calculate the systematic error and random uncertainty;

[0134] Step 11. The number of iterations of the optimization calculation is set to 1000. The constraint condition considers that the optimization variable value is within the range of -10-20, and the algebraic sum of the optimization variable is guaranteed to remain unchanged when generating a new solution based on the initial solution. When the optimization variable value exceeds the set range, a penalty is imposed on the systematic error and random uncertainty (that is, 100 is added to the objective function value to ensure that the current solution is eliminated during the optimization iteration process, where 100 is a maximum value relative to the systematic error and random uncertainty). The non-dominated sorting method is used to sort and classify the new solutions.

[0135] Step 12. In order to test the applicability of the algorithm disclosed in the present invention, the measured flow data is divided into different flow intervals: 1000-2000 m³ / s, 1000-3000 m³ / s, 1500-3000 m³ / s, below 1500 m³ / s, above 2400 m³ / s and below 3000 m³ / s. The goal is to minimize the systematic error and random uncertainty of the ultrasonic time difference method flow and the measured flow. After continuous iterative calculation, a Pareto solution set (also called a non-inferior solution set) is generated, such as Figure 4 As shown, Figure 4 (a) is a Pareto solution diagram of system error and random uncertainty based on a multi-objective optimization algorithm in the 1000-2000m flow and flow interval scenarios provided in an embodiment of the present application; Figure 4 (b) is a Pareto solution diagram of system error and random uncertainty based on a multi-objective optimization algorithm in the 1000-3000m target optimal flow interval scenario provided in an embodiment of the present application; Figure 4 (c) is a Pareto solution diagram of system error and random uncertainty based on a multi-objective optimization algorithm in the 1500-3000m target optimal flow interval scenario provided in an embodiment of the present application; Figure 4 (d) is a Pareto solution diagram of system error and random uncertainty based on a multi-objective optimization algorithm in a flow range scenario below 1 / s provided in an embodiment of the present application; Figure 4 (e) is a Pareto solution diagram of system error and random uncertainty based on a multi-objective optimization algorithm in the above flow interval scenario of the 2400m example provided in the embodiment of the present application; Figure 4 (f) is a Pareto solution diagram of system error and random uncertainty based on a multi-objective optimization algorithm in the following flow interval scenario for the 3000m example provided in the embodiment of the present application; each scattered point represents a generated solution. It can be seen from the figure that the system error and random uncertainty have a negative correlation (i.e., a competitive relationship), indicating that it is necessary to use a multi-objective optimization algorithm to weigh the system error and random uncertainty, so as to find a parameter combination that can take into account the benefits of multiple objectives;

[0136] Step 13. According to the screening principle of keeping the random uncertainty as low as possible and minimizing the system error, select the optimal solution from many Pareto solutions. The system error and random uncertainty values ​​corresponding to the optimal solution in different flow interval scenarios are as follows: Figure 4 As shown;

[0137] Step 14. Figure 5 As shown, Figure 5 (a) is an optimal parameter combination diagram based on a multi-objective optimization algorithm in a flow interval scenario of 1000-2000m provided in an embodiment of the present application; Figure 5 (b) is an optimal parameter combination diagram based on a multi-objective optimization algorithm in the 1000-3000m target optimal flow interval scenario provided in an embodiment of the present application; Figure 5 (c) is an optimal parameter combination diagram based on a multi-objective optimization algorithm in the 1500-3000m target optimal flow interval scenario provided in an embodiment of the present application; Figure 5 (d) is an optimal parameter combination diagram based on a multi-objective optimization algorithm in the following flow interval scenario for the 1500m example provided in the embodiment of the present application; Figure 5 (e) is an optimal parameter combination diagram based on a multi-objective optimization algorithm in the above flow interval scenario of the 2400m example provided in the embodiment of the present application; Figure 5 (f) is an optimal parameter combination diagram based on a multi-objective optimization algorithm under the following flow interval scenarios for the 3000m example provided in the embodiment of the present application; non-inferior parameter combinations and optimal parameter combinations under different flow interval scenarios are obtained. Figure 5 Each gray line corresponds to Figure 4 A scatter point of (i.e., the same set of solutions includes the combination of flow model parameters, cross-sectional flow process, and multi-objective function values), Figure 5 The black line corresponds to Figure 4 Based on the ultrasonic time difference method flow model constructed in step 7, the optimal parameters are substituted to obtain the ultrasonic time difference method flow optimization model under different flow interval scenarios as follows:

[0138]

[0139]

[0140]

[0141]

[0142]

[0143]

[0144] In the formula, is the optimized calculated value of the average flow rate of the river section. It is the local flow of each layer in each water section of each river;

[0145] Step 15. Figure 6 As shown, Figure 6 (a) is a comparison diagram of the flow rate calculated by the ultrasonic time difference method based on the multi-objective optimization algorithm and the measured flow rate in the 1000-2000m layer local flow interval scenario provided in the embodiment of the present application; Figure 6 (b) is a comparison diagram of the flow rate calculated by the ultrasonic time difference method based on the multi-objective optimization algorithm and the measured flow rate in the 1000-3000m target optimal flow interval scenario provided in the embodiment of the present application; Figure 6 (c) is a comparison chart of the flow rate calculated by the ultrasonic time difference method based on the multi-objective optimization algorithm and the measured flow rate in the 1500-3000m target optimal flow interval scenario provided in the embodiment of the present application; Figure 6 (d) is a comparison chart of the flow rate calculated by the ultrasonic time difference method and the measured flow rate in the flow interval scenario below the 1500m standard provided in the embodiment of the present application based on the multi-objective optimization algorithm; Figure 6 (e) is a comparison chart of the flow rate calculated by the ultrasonic time difference method based on the multi-objective optimization algorithm and the measured flow rate in the above flow interval scenario of 2400m provided in the embodiment of the present application; Figure 6 (f) is a comparison chart of the flow rate calculated by the ultrasonic time difference method based on the multi-objective optimization algorithm and the measured flow rate in the 3000m example provided in the embodiment of the present application. According to the measured data, it is verified whether the flow optimization model of the ultrasonic time difference method in different flow interval scenarios can meet the flow measurement accuracy requirements. It can be seen from the figure that the ultrasonic time difference method flow calculation method based on the multi-objective optimization algorithm has a high accuracy, and the calculated flow rate is basically consistent with the measured flow rate. If the verification effect of this step does not meet the requirements, return to step 8 to re-perform the multi-objective optimization calculation to generate a new optimal solution;

[0146] Step 16. Output the final ultrasonic time-difference flow optimization model. Under different hydrological test environments, the corresponding optimization model and optimization parameters can be directly used to calculate the cross-sectional flow without re-calibrating the parameters and adjusting the model structure.

[0147] It can be seen from the above that the ultrasonic time difference flow calculation method based on the multi-objective optimization algorithm provided in this application can accurately calculate the average flow of the river section in real time based on the hydrological test environment, the ultrasonic time difference flow measurement equipment installation information and the water layer flow velocity data.

[0148] In a second aspect, the present application provides an ultrasonic time difference flow calculation system based on a multi-objective optimization algorithm, comprising:

[0149] Model building module, used to build ultrasonic time-difference flow model;

[0150] An optimal solution parameter acquisition module, which is in communication connection with the model building module and is used to calibrate the optimal solution parameters in the ultrasonic flow model using a cuckoo multi-objective optimization algorithm;

[0151] A model optimization module, which is in communication with the model construction module and the optimal solution parameter acquisition module, and is used to input the optimal solution parameters into the constructed ultrasonic time difference method flow model to obtain the optimized ultrasonic time difference method flow model;

[0152] The average flow calculation module of the river water section is communicated with the model optimization module, and is used to input the measured values ​​of the local flow of each layer of the river water section into the optimized ultrasonic time difference method flow model, and output the optimized calculated value of the average flow of the river water section.

[0153] In one embodiment, the optimal solution parameter acquisition module includes:

[0154] A parameter setting unit is used to calibrate the weight coefficient of each layer of local flow in the river water section in the ultrasonic time difference method flow model using the cuckoo multi-objective optimization algorithm, and to set the main parameters of the multi-objective optimization algorithm;

[0155] A multi-objective function establishment unit is used to establish a multi-objective function of an ultrasonic time-difference flow model;

[0156] An optimization variable determination unit, used for determining optimization variables in an ultrasonic time difference method flow model;

[0157] A method setting unit, used to set an optimization calculation method for an ultrasonic time difference method flow model;

[0158] A solution set generating unit is communicatively connected with the parameter setting unit, the multi-objective function establishing unit, the optimization variable determining unit and the method setting unit, and is used to iteratively calculate the established ultrasonic time difference method flow model using the set optimization calculation method based on the established multi-objective function and with the goal of minimizing the systematic error and random uncertainty of the ultrasonic time difference method flow and the measured flow, so as to generate a Pareto solution set;

[0159] The optimal solution screening unit is communicatively connected with the solution set generating unit and is used for screening out the optimal solution parameters from the Pareto solution set.

[0160] Among them, the functional implementation of each module in the above-mentioned ultrasonic time difference method flow calculation device based on multi-objective optimization algorithm corresponds to the various steps in the above-mentioned ultrasonic time difference method flow calculation method based on multi-objective optimization algorithm embodiment, and its functions and implementation processes will not be repeated here one by one.

[0161] On the third aspect, the embodiments of the present application provide an ultrasonic time difference flow calculation device based on a multi-objective optimization algorithm. The ultrasonic time difference flow calculation device based on the multi-objective optimization algorithm can be a personal computer (PC), a laptop computer, a server, or other device with data processing capabilities.

[0162] In an embodiment of the present application, an ultrasonic time-difference flow calculation device based on a multi-objective optimization algorithm may include a processor, a memory, a communication interface, and a communication bus.

[0163] The communication bus may be of any type and is used to interconnect the processor, the memory, and the communication interface.

[0164] The communication interface includes an input / output (I / O) interface, a physical interface, and a logical interface, etc., which are used to realize the interconnection of devices inside the ultrasonic time difference method flow calculation device based on the multi-objective optimization algorithm, and an interface used to realize the interconnection between the ultrasonic time difference method flow calculation device based on the multi-objective optimization algorithm and other devices (such as other computing devices or user devices). The physical interface can be an Ethernet interface, an optical fiber interface, an ATM interface, etc.; the user device can be a display (Display), a keyboard (Keyboard), etc.

[0165] The memory can be various types of storage media, such as random access memory (RAM), read-only memory (ROM), non-volatile RAM (NVRAM), flash memory, optical storage, hard disk, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), etc.

[0166] The processor may be a general-purpose processor, which may call the ultrasonic time difference method flow calculation program based on the multi-objective optimization algorithm stored in the memory, and execute the ultrasonic time difference method flow calculation method based on the multi-objective optimization algorithm provided in the embodiment of the present application. For example, the general-purpose processor may be a central processing unit (CPU). The method executed when the ultrasonic time difference method flow calculation program based on the multi-objective optimization algorithm is called may refer to the various embodiments of the ultrasonic time difference method flow calculation method based on the multi-objective optimization algorithm of the present application, which will not be repeated here.

[0167] In a fourth aspect, an embodiment of the present application also provides a readable storage medium.

[0168] The readable storage medium of the present application stores an ultrasonic time difference method flow calculation program based on a multi-objective optimization algorithm, wherein when the ultrasonic time difference method flow calculation program based on a multi-objective optimization algorithm is executed by a processor, the steps of the ultrasonic time difference method flow calculation method based on a multi-objective optimization algorithm as described above are implemented.

[0169] Among them, the method implemented when the ultrasonic time difference method flow calculation program based on the multi-objective optimization algorithm is executed can refer to the various embodiments of the ultrasonic time difference method flow calculation method based on the multi-objective optimization algorithm of this application, and will not be repeated here.

[0170] It should be noted that the serial numbers of the above-mentioned embodiments of the present application are only for description and do not represent the advantages or disadvantages of the embodiments.

[0171] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, CD) as described above, and includes a number of instructions for a terminal device to execute the methods described in each embodiment of the present application.

[0172] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. An ultrasonic time difference flow calculation method based on a multi-objective optimization algorithm, characterized in that: The following steps are involved: Construct an ultrasonic time-difference flow model, including: Obtain the local flow of each layer in the water-passing section of the river; According to the local flow of each layer in the river section, the ultrasonic time difference flow model is constructed as shown in the following formula: In the formula, is the calculated value of the average flow rate of the river section. are the local flow rates of each layer in the water-passing section of the river, are the weight coefficients of local flow in each layer of the river flow section, To correct the flow rate, is the local cross-sectional area of ​​each layer of the river channel cross-sectional area, n+1 is the number of layers, The ultrasonic time difference flow rate of each layer; The cuckoo multi-objective optimization algorithm is used to calibrate the optimal solution parameters in the ultrasonic flow model, including: The cuckoo multi-objective optimization algorithm is used to calibrate the weight coefficient of local flow in each layer of the river section in the ultrasonic time difference flow model, and the main parameters of the multi-objective optimization algorithm are set. Establish multi-objective functions of ultrasonic time-difference flow model; Determine the optimization variables in the ultrasonic transit-time flow model; Set up the optimization calculation method of ultrasonic time difference flow model; Based on the established multi-objective function, with the goal of minimizing the systematic error and random uncertainty of the ultrasonic time difference method flow and the measured flow, the established ultrasonic time difference method flow model is iteratively calculated using the set optimization calculation method to generate a Pareto solution set; Select the optimal solution parameters from the Pareto solution set; Input the optimal solution parameters into the constructed ultrasonic time difference method flow model to obtain the optimized ultrasonic time difference method flow model as shown in the following formula: In the formula, is the optimized calculated value of the average flow rate of the river section. are the local flow rates of each layer in the water-passing section of the river, are the optimized rate values ​​of each layered local flow weight coefficient in the optimal layered local flow weight coefficient combination, To modify the flow optimization rate setting; Input the measured values ​​of local flow in each layer of the river section into the optimized ultrasonic time difference flow model, and output the optimized calculated value of the average flow in the river section.

2. The ultrasonic time difference flow calculation method based on multi-objective optimization algorithm as claimed in claim 1, characterized in that: The method of obtaining the local flow of each layer of the river flow section includes: Obtain the local water-passing cross-sectional area of ​​each layer of the river water-passing cross-sectional area; Based on the local velocity of each layer obtained by ultrasonic time difference method, the local average velocity of each layer in the water section of the river is deduced; The local flow rate of each layer of the river channel cross-section is calculated based on the obtained local cross-sectional area of ​​each layer of the river channel cross-section and the local average flow velocity of each layer of the river channel cross-section.

3. The ultrasonic time difference flow calculation method based on multi-objective optimization algorithm as claimed in claim 2, characterized in that: The method of obtaining the local cross-sectional area of ​​each layer of the river cross-sectional area includes: Collect information on hydrological testing environment and installation of ultrasonic time-difference flow measurement equipment; Measure the water level of the river section; According to the hydrological test environment, the installation information of the ultrasonic time difference flow measurement equipment and the water level of the river flow section, the local water flow section area of ​​each layer of the river flow section is obtained.

4. The ultrasonic time difference flow calculation method based on multi-objective optimization algorithm as claimed in claim 1, characterized in that: The multi-objective function for establishing the ultrasonic time difference method flow model includes two objectives: system error and random uncertainty, as shown in the following formula: In the formula, is the number of tests, For the The calculated value of the average flow rate of the measured section, For the The measured value of the average flow rate of the section during the measurement. is the system error, The confidence level is 95% random uncertainty.

5. The ultrasonic time difference flow calculation method based on multi-objective optimization algorithm as claimed in claim 1, characterized in that: The following steps are also included: Verify the optimized ultrasonic transit-time flow model; If the optimized ultrasonic time-difference flow model does not meet the flow measurement accuracy requirements, then return to re-execute the model optimization operation; If the optimized ultrasonic time difference method flow model meets the flow measurement accuracy requirement, the verified optimized ultrasonic time difference method flow model is obtained to perform subsequent flow measurement operations.

6. An ultrasonic time difference flow calculation system based on a multi-objective optimization algorithm, characterized in that: include: Model building module, used to build ultrasonic time-difference flow model; The optimal solution parameter acquisition module is connected to the model building module for calibrating the optimal solution parameters in the ultrasonic flow model using the cuckoo multi-objective optimization algorithm, including: The cuckoo multi-objective optimization algorithm is used to calibrate the weight coefficient of local flow in each layer of the river section in the ultrasonic time difference flow model, and the main parameters of the multi-objective optimization algorithm are set. Establish multi-objective functions of ultrasonic time-difference flow model; Determine the optimization variables in the ultrasonic transit-time flow model; Set up the optimization calculation method of ultrasonic time difference flow model; Based on the established multi-objective function, with the goal of minimizing the systematic error and random uncertainty of the ultrasonic time difference method flow and the measured flow, the established ultrasonic time difference method flow model is iteratively calculated using the set optimization calculation method to generate a Pareto solution set; Select the optimal solution parameters from the Pareto solution set; The model optimization module is in communication with the model construction module and the optimal solution parameter acquisition module, and is used to input the optimal solution parameters into the constructed ultrasonic time difference method flow model to obtain the optimized ultrasonic time difference method flow model as shown in the following formula: In the formula, is the optimized calculated value of the average flow rate of the river section. are the local flow rates of each layer in the water-passing section of the river, are the optimized rate values ​​of each layered local flow weight coefficient in the optimal layered local flow weight coefficient combination, To modify the flow optimization rate setting; The average flow calculation module of the river water section is communicated with the model optimization module, and is used to input the measured values ​​of the local flow of each layer of the river water section into the optimized ultrasonic time difference method flow model, and output the optimized calculated value of the average flow of the river water section.

7. The ultrasonic time difference flow calculation system based on multi-objective optimization algorithm as claimed in claim 6, characterized in that: The optimal solution parameter acquisition module includes: A parameter setting unit is used to calibrate the weight coefficient of each layer of local flow in the river water section in the ultrasonic time difference method flow model using the cuckoo multi-objective optimization algorithm, and to set the main parameters of the multi-objective optimization algorithm; A multi-objective function establishment unit is used to establish a multi-objective function of an ultrasonic time-difference flow model; An optimization variable determination unit, used for determining optimization variables in an ultrasonic time difference method flow model; A method setting unit, used to set an optimization calculation method for an ultrasonic time difference method flow model; A solution set generating unit is communicatively connected with the parameter setting unit, the multi-objective function establishing unit, the optimization variable determining unit and the method setting unit, and is used to iteratively calculate the established ultrasonic time difference method flow model using the set optimization calculation method based on the established multi-objective function and with the goal of minimizing the systematic error and random uncertainty of the ultrasonic time difference method flow and the measured flow, so as to generate a Pareto solution set; The optimal solution screening unit is communicatively connected with the solution set generating unit and is used for screening out the optimal solution parameters from the Pareto solution set.