Method and device for calibrating flow measurement model parameters
The cuckoo optimization algorithm is used to construct a multi-objective function, which solves the problem of parameter calibration of the hydrological element model of the river section under changing river testing conditions, and achieves efficient and accurate flow measurement model parameter calibration and highly adaptable hydrological model application.
Patent Information
- Application Number
- CN202410963059.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-18
AI Technical Summary
River testing conditions vary greatly, it is difficult to calibrate the parameters of the hydrological element calculation model of the river section, the flow measurement accuracy evaluation indicators are competing and difficult to weigh, and the adaptability to the changing environment is insufficient.
The cuckoo optimization algorithm is used to construct a multi-objective function, and the model parameters of the flow measurement model are determined through iterative updates. Combined with the hydrological element information of the river section, predefined initial values and measured data are used for correction, and the penalty function and non-dominated sorting method are applied to achieve high efficiency. Calibrate model parameters.
It achieves efficient and accurate calibration of flow measurement model parameters, avoids the low efficiency in the manual calibration process and the dimensionality disaster problem of the exhaustive optimization algorithm, and has strong adaptability in different hydrological environments, taking into account system errors and Random uncertainty.
Smart Images

Figure CN118504716B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of hydrological measurement, and in particular to a method and device for calibrating flow measurement model parameters. Background Art
[0002] With the urgent need for online river monitoring in fields such as water resources management, flood warning, and environmental protection, real-time and continuous monitoring of key hydrological elements such as river section velocity, water level, and flow through advanced technical means plays a vital role in flood prevention and disaster reduction and scientific research. The core of this technology is to measure the local hydrological element information of the section through advanced sensor equipment, and then establish a model to deduce the cross-sectional average value of the hydrological elements.
[0003] However, affected by various factors such as climate, hydrology, and geology, the testing conditions of rivers have changed significantly, and the seasonal differences in river flow are significant. The calculation model of hydrological elements in river sections faces difficulties such as difficulty in calibrating parameters, time-consuming and labor-intensive to infer the overall elements of the section from local elements, competing and difficult to balance flow measurement accuracy evaluation indicators, and insufficient adaptability to a changing environment. Summary of the invention
[0004] In view of this, the present application provides a method and device for calibrating flow measurement model parameters, which can efficiently and accurately calibrate the model parameters of the flow measurement model.
[0005] In a first aspect, the present application provides a method for calibrating flow measurement model parameters, comprising:
[0006] Establishing a multi-objective function of a cuckoo optimization algorithm, wherein the optimization object of the multi-objective function is the model parameters of the flow measurement model;
[0007] Determining an initial solution represented by the multi-objective function by a predefined initial value of the flow measurement model;
[0008] Determine an optimal solution by iteratively updating the initial solution, so as to determine the calibrated model parameters based on the optimal solution;
[0009] Wherein, the flow measurement model is constructed according to the hydrological elements of the river section.
[0010] Optionally, determining an initial solution embodied by the multi-objective function by using a predefined initial value of the flow measurement model includes:
[0011] Determine the multi-objective function values by the predefined initial values of the flow measurement model;
[0012] The multi-objective function value is corrected using the measured hydrological data to obtain the corrected multi-objective function value.
[0013] Optionally, the multi-objective function is expressed in the following formula:
[0014] ;
[0015] ;
[0016] In the above formula, is the sample size, For the The calculated value of samples; For the The measured value of samples; is the system error; is the random uncertainty with a confidence level of 95%.
[0017] Optionally, during the iterative update of the initial solution, the algebraic sum of the optimization variables in each row of the initial model parameter matrix included in the initial value of the flow measurement model remains unchanged.
[0018] Optionally, during the iterative update of the initial solution, when the value of the optimization variable exceeds a set range, a maximum penalty function is applied to the multi-objective function.
[0019] Optionally, during the iterative update of the initial solution, a non-dominated sorting method is used to sort and classify the new solutions.
[0020] Optionally, determining the optimal solution by iteratively updating the initial solution includes:
[0021] Based on the maximum or minimum value of the multi-objective function, the initial solution is iteratively updated to determine the Pareto solution set;
[0022] Determine the optimal solution from the Pareto solution set.
[0023] In a second aspect, the present application provides a flow measurement model parameter calibration device, comprising:
[0024] Establishing a module for establishing a multi-objective function of a cuckoo optimization algorithm, wherein the optimization object of the multi-objective function is a model parameter of a flow measurement model, and the flow measurement model is constructed according to the hydrological elements of a river section;
[0025] A first determination module is used to determine an initial solution embodied by the multi-objective function from a predefined initial value of the flow measurement model;
[0026] The second determination module is used to determine the optimal solution by iteratively updating the initial solution, so as to determine the calibrated model parameters based on the optimal solution.
[0027] In a third aspect, the present application provides an execution device, including a processor and a memory, wherein the processor is coupled to the memory;
[0028] The memory is used to store programs;
[0029] The processor is used to execute the program in the memory, so that the execution device executes the above method.
[0030] In the method disclosed in the present application, initial values of the model parameters to be calibrated are assigned to form an initial solution, so that a parameter data pool of a fixed size can be established. The initial solution is iteratively updated, which can avoid the inefficiency and difficulty in finding the optimal solution in the manual parameter calibration process, as well as the dimensionality curse problem of the exhaustive optimization algorithm, so that the model parameters of the flow measurement model can be calibrated efficiently and accurately. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] The technical solution and other beneficial effects of the present application will be made apparent by describing in detail the specific implementation methods of the present application in conjunction with the accompanying drawings.
[0032] Figure 1 An operational flow chart of a method for calibrating flow model parameters provided by an exemplary embodiment is shown.
[0033] Figure 2 An operational flow chart of a method for calibrating flow measurement model parameters based on a relatively widely used scenario provided by an exemplary embodiment is shown.
[0034] Figure 3 A schematic diagram of the shape of a river channel test section and the installation of an online flow measurement device provided by an exemplary embodiment is shown.
[0035] 4(a)-(f) show a multi-objective Pareto solution based on a multi-objective cuckoo algorithm under different flow interval scenarios provided by an exemplary embodiment;
[0036] 5(a)-(f) show optimal parameter combinations based on a multi-objective cuckoo algorithm under different flow interval scenarios provided by an exemplary embodiment;
[0037] 6(a)-(f) show the comparison between the flow rate calculated by the online flow measurement optimization model based on the multi-objective cuckoo algorithm and the measured flow rate in different flow interval scenarios provided by an exemplary embodiment.
[0038] Figure 7 A block diagram of a flow measurement model parameter calibration device provided by an exemplary embodiment is shown.
[0039] Figure 8 A block diagram of the execution device provided by an exemplary embodiment is shown. DETAILED DESCRIPTION
[0040] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are described in detail below in conjunction with the accompanying drawings. In the following description, many specific details are set forth to facilitate a full understanding of the present application. However, the present application can be implemented in many other ways different from those described herein, and those skilled in the art can make similar improvements without violating the connotation of the present application, so the present application is not limited by the specific embodiments disclosed below.
[0041] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described here can be implemented in an order other than that illustrated or described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or modules is not necessarily limited to those steps or modules clearly listed, but may include other steps or modules that are not clearly listed or inherent to these processes, methods, products or devices. The naming or numbering of steps in this application does not mean that the steps in the method flow must be executed in the time / logical sequence indicated by the naming or numbering. The process steps that have been named or numbered can change the execution order according to the technical purpose to be achieved, as long as the same or similar technical effects can be achieved. The division of units in this application is a logical division. There may be other division methods when it is implemented in actual applications. For example, multiple units can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection between units can be electrical or other similar forms, which are not limited in this application. In addition, the units or sub-units described as separate components may or may not be physically separated, may or may not be physical units, or may be distributed in multiple circuit units, and some or all of the units may be selected according to actual needs to achieve the purpose of the present application.
[0042] Please refer to Figure 1 ,in Figure 1 A flow chart of a method for calibrating flow model parameters provided by an exemplary embodiment is shown. The method is implemented through steps 101-103.
[0043] In step 101, a multi-objective function of a cuckoo optimization algorithm is established, and the optimization object of the multi-objective function is the model parameters of the flow measurement model.
[0044] It is easy to think that the flow measurement model can be constructed based on the local hydrological element information database of the river section. The general model of the flow measurement model is expressed as follows:
[0045] (1);
[0046] In formula (1): Output results for the model (such as the cross-sectional average value of a hydrological element); is the model parameter group; are model independent variables (such as online monitoring values of certain hydrological elements); The model operation rules.
[0047] It should be noted that hydrological elements can be information such as water flow velocity and water flow depth.
[0048] It is well-known technical knowledge that the cuckoo optimization algorithm is a heuristic optimization algorithm based on the clustering behavior of cuckoos in nature. In the process of cuckoos looking for food, the flock will search and migrate between different food sources according to factors such as the abundance of food and their own energy consumption. The algorithm simulates the three behaviors of foraging, attraction and migration of cuckoo individuals: 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.
[0049] It should be understood that the multi-objective function is the only optimization criterion of the cuckoo optimization algorithm.
[0050] Before the subsequent operation of "determining the initial solution represented by the multi-objective function", the relevant parameters of the multi-objective function are also set. These relevant parameters include but are not limited to the population size, the number of objective functions, the number of optimization variables, the upper and lower limits of the value range of the parameters to be calibrated, etc.
[0051] As a common form of related parameters of multi-objective functions, the population size can be set to 500~1000, and the number of objective functions and optimization variables (i.e., parameters to be calibrated) is unlimited. The more the number, the longer the calculation time.
[0052] As an exemplary embodiment, the multi-objective function is expressed in the following formula:
[0053] (2);
[0054] (3);
[0055] In the above formulas (2) and (3), is the sample size, For the The calculated value of samples; For the The measured value of samples; is the system error; is the random uncertainty with a confidence level of 95%.
[0056] In step 102, an initial solution represented by the multi-objective function is determined by predefined initial values of the flow measurement model.
[0057] In conjunction with the general model of the flow measurement model discussed above, it should be understood that the "initial value of the flow measurement model" here refers to the initial values of the model parameters, the initial values of the independent variables of the flow measurement model, and the initial values of the dependent variables of the flow measurement model.
[0058] The predefined form may be randomly generated by a program or arbitrarily specified by humans.
[0059] As an exemplary embodiment, determining an initial solution embodied by the multi-objective function by using a predefined initial value of the flow measurement model includes:
[0060] Step 1021: Determine the multi-objective function values based on the predefined initial values of the flow measurement model.
[0061] In step 1021, the initial value of the flow measurement model may be in matrix form. Specifically,
[0062] Model parameter group , the j groups of initial model parameter matrices, model independent variable matrices, model calculation result matrices and multi-objective function value matrices randomly generated by the algorithm are expressed as follows:
[0063] (4);
[0064] In formula (4): is the initial model parameter matrix; is the initial model parameter group randomly generated for the jth group.
[0065] (5);
[0066] In formula (5): is the model independent variable matrix; is the mth independent variable.
[0067] (6);
[0068] In formula (6): Compute the result matrix for the model; is the result calculated based on the jth group of initial model parameters.
[0069] Step 1022: Correct the multi-objective function value with measured hydrological data to obtain the multi-objective function value.
[0070] Specifically, this operation can be expressed as follows:
[0071] (7);
[0072] In formula (7): is the multi-objective function value matrix; is the measured value matrix; It is the multi-objective function operation rule.
[0073] In step 103, an optimal solution is determined by iteratively updating the initial solution, so as to determine the calibrated model parameters based on the optimal solution.
[0074] As a more common demonstration form, the number of iterations of iterative updates is set to 1000~2000, and the constraints consider the upper and lower limits of the optimization variables.
[0075] As an illustrative embodiment, during the iterative update of the initial solution, the algebraic sum of the optimization variables in each row of the initial model parameter matrix contained in the initial value of the flow measurement model remains unchanged. Compared with randomly generating a new solution, this method can greatly improve the algorithm operation efficiency.
[0076] Specifically, this process can be expressed by the following formula:
[0077] (8);
[0078] In formula (8): is the initial model parameter matrix; is the updated model parameter matrix; , , is any increment (positive or negative) that is smaller than the optimization variable.
[0079] As an exemplary embodiment, when the value of the optimization variable exceeds the set range, a maximum penalty function is applied to the multi-objective function, which can ensure that the current solution is eliminated during the optimization iteration process.
[0080] This operation can be expressed by the following formula:
[0081] (9);
[0082] In formula (9): is the model parameter matrix after penalty is imposed. From the above formula, we can see that r groups of parameters are eliminated after penalty is imposed; is the updated model parameter matrix.
[0083] As an exemplary embodiment, during the iterative update of the initial solution, a non-dominated sorting method is used to sort and classify the new solutions, thereby taking into account the conflicting multi-objective benefits.
[0084] This operation can be expressed by the following formula:
[0085] (10);
[0086] In formula (10): is the model parameter matrix after non-dominated sorting. From the above formula, we can see that the number of rows and columns of the parameter matrix remains unchanged after non-dominated sorting, but the order of parameter groups is rearranged according to the trade-off relationship of the multi-objective function values; is the model parameter matrix after penalty is applied.
[0087] As an exemplary embodiment, determining the optimal solution by iteratively updating the initial solution includes:
[0088] Step 103A1: based on the maximum or minimum value of the multi-objective function, iteratively update the initial solution to determine the Pareto solution set.
[0089] Specifically, the previous , , Continuously updated with the number of iterations, the Pareto solution set is finally generated
[0090] Step 103A2: Determine the optimal solution from the Pareto solution set.
[0091] In the actual operation of step 103A2, according to actual needs, a screening principle is formulated (such as minimizing another objective when one objective does not exceed a certain range), and the optimal solution is selected from many Pareto solutions. The optimal solution includes the optimal model parameter group, the optimal multi-objective value and the optimal model calculation value.
[0092] The operation of step 103A2 can be expressed by the following formula:
[0093] (11);
[0094] In formula (11): is the optimal parameter matrix; is the model parameter matrix after non-dominated sorting; is the optimal parameter set.
[0095] Without excessive effort, the model parameters after calibration are determined by the optimal solution. As a common practical operation, it can include:
[0096] Step 103B1, based on the online flow measurement model constructed above, the obtained optimal parameter group is substituted to obtain an online flow measurement optimization model;
[0097] The operation of step 103B1 can be expressed by the following formula:
[0098] The online flow measurement optimization model is constructed as follows:
[0099] (12);
[0100] In formula (12): Optimize calculation results for the model (such as optimized calculation values of hydrological elements in river sections); is the optimal parameter group; is the model independent variable (such as the online monitoring value of the hydrological elements of the river section).
[0101] Step 103B2: Verify whether the established online flow measurement optimization model can meet the accuracy requirements. If not, return to re-perform multi-objective optimization calculation to generate a new optimal solution. If yes, proceed to the next step.
[0102] Step 103B3: Output the final 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.
[0103] Combine the following Figure 2 , further explaining the previous flow measurement model parameter calibration method for a more common application scenario.
[0104] The flow measurement model parameter calibration method comprises the following steps:
[0105] S1. The Hanjiang Baihe Hydrological Station is selected as the embodiment object, and the measured hydrological element data of the same period as the online flow measurement data sequence is input. In a specific embodiment, the data is the flow measured by the rotor flow meter of the river section.
[0106] S2. Collecting the hardware and software environment and hydrological test environment information of the model operation, in a specific embodiment, such as Figure 3 As shown in the figure, the Baihe Hydrological Station uses ultrasonic flowmeters to monitor the flow velocity of the river section online. The collected information includes the shape of the river section, the elevation of the riverbed, and the installation elevation of each layer of transducers that emit ultrasonic waves. The ultrasonic time difference method has four layers of sound paths. The four layers of transducers divide the cross-sectional area of the river into five parts, namely The average flow velocities of the acoustic paths where the four-layer transducers are located are , the river bottom velocity coefficient is According to the local cross-sectional area of stratified water flow and the local average flow velocity of stratified water flow, the local flow rate of stratified water flow in the river section is calculated as , , , and .
[0107] S3. Establishing a river section hydrological element information database, in a specific embodiment, includes online monitoring of flow velocity, water level, etc. at each layer of the river section.
[0108] S4. Online flow measurement model is constructed as ,in is the online monitoring value of the stratified local flow in the river section, and is the calculated value of the average flow in the river section.
[0109] S5. The cuckoo multi-objective optimization algorithm is used to calibrate the layered local flow weight coefficient in the online flow measurement model constructed in S4. In a specific embodiment, 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 parameters to be calibrated is -10~20.
[0110] S6. Set a multi-objective function, which can be as described in the previous formulas (2) and (3).
[0111] S7. Optimization variables are model parameter groups , 500 sets of initial model parameter matrices, layered local flow matrices, section average flow matrices, system errors and random uncertainty matrices are randomly generated and expressed as follows:
[0112] ;
[0113] ;
[0114] ;
[0115] ;
[0116] Where: is the initial model parameter matrix; is the hierarchical local traffic matrix; is the cross-sectional average flow matrix; is the matrix of systematic error and random uncertainty; is the matrix of measured cross-sectional flow.
[0117] S8. In a specific embodiment, the number of iterations of the optimization calculation is set to 1000, and the constraint condition considers that the optimization variable takes a value within the range of -10 to 20; when a new solution is generated based on the initial solution, the algebraic sum of the optimization variables in each row of the initial model parameter matrix is ensured to remain unchanged; when the optimization variable value exceeds the set range, a penalty is imposed on the systematic error and random uncertainty (i.e., 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), 10 groups of parameters are eliminated, and 490 groups of parameters remain; the non-dominated sorting method is used to sort and classify the new parameter groups. After the non-dominated sorting, the number of rows and columns of the parameter matrix remains unchanged, but the order of the parameter groups is rearranged according to the trade-off relationship between the multi-objective function values, thereby taking into account the conflicting multi-objective benefits.
[0118] ;
[0119] ;
[0120] ;
[0121] Where: is the initial model parameter matrix; is the updated model parameter matrix; is the model parameter matrix after penalty is imposed; is the model parameter matrix after non-dominated sorting; , , is any increment (positive or negative) that is smaller than the optimization variable.
[0122] S9. In a specific embodiment, in order to verify 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, with the goal of minimizing the systematic error and random uncertainty of the ultrasonic time difference method flow and the measured flow, and after continuous iterative calculation, a Pareto solution set (also called a non-inferior solution set) is generated, as shown in Figure 4 (a)-(f). Each scattered point represents a generated solution. It can be seen from the figure that the systematic error and random uncertainty have a negative correlation (i.e., a competitive relationship), which shows that it is necessary to use a multi-objective optimization algorithm to weigh the systematic error and random uncertainty, so as to find a parameter combination that can take into account the benefits of multiple objectives.
[0123] S10. In a specific embodiment, the optimal solution is selected from a plurality of Pareto solutions according to the screening principle that the random uncertainty is not more than 10% and the system error is minimized. ,in is the optimal parameter matrix, is the optimal parameter group. The systematic error and random uncertainty values corresponding to the optimal solutions under different flow interval scenarios are shown in Figure 4(a)-(f).
[0124] S11. In a specific embodiment, as shown in FIG5(a)-(f), non-inferior parameter combinations and optimal parameter combinations under different flow interval scenarios are obtained. Each thin line in FIG5(a)-(f) corresponds to a scattered point in FIG4 (i.e., the same set of solutions includes flow model parameter combinations, cross-sectional flow processes, and multi-objective function values). The thick lines in FIG5(a)-(f) correspond to the optimal solutions in FIG4. Based on the online flow measurement model constructed in step 4, the optimal parameters are substituted to obtain the online flow measurement optimization model under different flow interval scenarios as follows:
[0125] ;
[0126] ;
[0127] ;
[0128] ;
[0129] ;
[0130] ;
[0131] Where: Optimize the calculated value of the average flow rate of the river section; It is the stratified local flow of the river section.
[0132] S12. In a specific embodiment, as shown in Figure 6(a)-(f), based on the measured data, it is verified whether the ultrasonic time difference method flow optimization model under different flow interval scenarios can meet the flow measurement accuracy requirements. It can be seen from the figure that an online flow measurement model parameter calibration method based on a multi-objective cuckoo algorithm is more effective, and the calculated flow is basically consistent with the measured flow. If the verification effect of this step does not meet the requirements, return to step 5 to re-optimize the calculation to generate a new optimal solution.
[0133] S13. Output the final online flow measurement 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.
[0134] It is worth reminding again that this method has the following technical advantages:
[0135] (1) Compared with traditional model parameter estimation methods, this method is faster, more accurate, and more efficient. Its core is to assign a number of initial values to the parameters to be calibrated (i.e., optimization variables), establish a fixed-size parameter data pool, and use a multi-objective optimization algorithm to iteratively update the data pool in conjunction with a series of constraints, penalty functions, and objective functions. This can avoid the inefficiency of manual parameter calibration and the difficulty in finding the optimal solution, as well as the dimensionality curse of the exhaustive optimization algorithm.
[0136] (2) Under the premise that the cross-sectional shape of the river channel does not change, the online flow measurement model parameters only need to be calibrated once under different hydrological test environments. There is no need to repeatedly calibrate the parameters and adjust the model structure in the later model application stage.
[0137] (3) This method takes into account the competitive relationship between systematic error and random uncertainty, and the obtained optimization solution can better take into account the benefits of multiple objectives.
[0138] (4) This method also has the following advantages: ① Distributed search: The cuckoo optimization algorithm simulates the behavior of a cuckoo colony to achieve a distributed search method that can simultaneously explore multiple possible solutions in the search space; ② Adaptability: The individuals in the algorithm can adaptively adjust the search strategy based on the feedback information during the search process, thereby more effectively discovering the optimal solution; ③ Parallelism: Since the algorithm has the characteristics of distributed search, it can be easily parallelized to improve computational efficiency.
[0139] (5) This method is a stable, efficient and universal method for online flow measurement model parameter calibration. 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 support for the construction of the national water network and the three-line defense construction of rain and water conditions.
[0140] Please refer to Figure 7 , which shows a block diagram of the flow measurement model parameter calibration device provided by the present application. The device 200 includes:
[0141] Establishing module 201, for establishing a multi-objective function of a cuckoo optimization algorithm, wherein the optimization object of the multi-objective function is a model parameter of a flow measurement model;
[0142] A first determination module 202 is used to determine an initial solution represented by the multi-objective function from a predefined initial value of the flow measurement model;
[0143] The second determination module 203 is used to determine the optimal solution by iteratively updating the initial solution, so as to determine the calibrated model parameters based on the optimal solution.
[0144] Since the above methods have been discussed in detail, the specific implementation of the above modules will not be repeated here.
[0145] Next, an execution device provided by an embodiment of the present application is introduced. Figure 8 , Figure 8 This is a schematic diagram of a structure of an execution device provided in an embodiment of the present application. The execution device 300 can be specifically manifested as an autonomous driving vehicle, a mobile phone, a tablet, a laptop computer, a desktop computer, a monitoring data processing device, etc., which is not limited here. Figure 1 The functions of the execution device in the corresponding embodiment. Specifically, the execution device 300 includes: a receiver 301, a transmitter 302, a processor 303 and a memory 304 (wherein the number of the processor 303 in the execution device 300 can be one or more, Figure 8 In the example of FIG. 3 , the processor 303 may include an application processor 3031 and a communication processor 3032. In some embodiments of the present application, the receiver 301, the transmitter 302, the processor 303 and the memory 304 may be connected via a bus or other means.
[0146] The memory 304 may include a read-only memory and a random access memory, and provides instructions and data to the processor 303. A portion of the memory 304 may also include a non-volatile random access memory (NVRAM). The memory 304 stores processor and operation instructions, executable modules or data structures, or subsets thereof, or extended sets thereof, wherein the operation instructions may include various operation instructions for implementing various operations.
[0147] The processor 303 controls the operation of the execution device. In a specific application, the various components of the execution device are coupled together through a bus system, wherein the bus system includes not only a data bus but also a power bus, a control bus, and a status signal bus, etc. However, for the sake of clarity, various buses are referred to as bus systems in the figure.
[0148] The method disclosed in the above embodiment of the present application can be applied to the processor 303, or implemented by the processor 303. The processor 303 can be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 303. The above processor 303 can be a general processor, a digital signal processor (digital signal processing, DSP), a microprocessor or a microcontroller, and can further include an application specific integrated circuit (application specific integrated circuit, ASIC), a field programmable gate array (field-programmable gate array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The processor 303 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 304, and the processor 303 reads the information in the memory 304 and completes the steps of the above method in combination with its hardware.
[0149] The receiver 301 can be used to receive input digital or character information and generate signal input related to the relevant settings and function control of the execution device. The transmitter 302 can be used to output digital or character information through the first interface; the transmitter 302 can also be used to send instructions to the disk group through the first interface to modify the data in the disk group; the transmitter 302 can also include a display device such as a display screen.
[0150] In the embodiment of the present application, the processor 303 is used to execute Figure 1 The specific manner in which the application processor 3031 in the processor 303 performs the above steps is the same as that in the present application. Figure 1 The corresponding method embodiments are based on the same concept, and the technical effects they bring are the same as those in this application. Figure 1 The corresponding method embodiments are the same. For specific contents, please refer to the description in the method embodiments shown above in this application, which will not be repeated here.
[0151] The above is only a preferred specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by any technician familiar with the technical field within the technical scope disclosed in the present application should be covered within the protection scope of the present application.
Claims
1. A method for calibrating flow measurement model parameters. It is characterized in that include: Establishing a multi-objective function of a cuckoo optimization algorithm, wherein the optimization object of the multi-objective function is the model parameters of the flow measurement model; Determining an initial solution represented by the multi-objective function by a predefined initial value of the flow measurement model; Determine an optimal solution by iteratively updating the initial solution, so as to determine the calibrated model parameters based on the optimal solution; Wherein, the flow measurement model is constructed according to the hydrological elements of the river section; The initial solution represented by the multi-objective function is determined by the predefined initial value of the flow measurement model, including: Determine the multi-objective function values by the predefined initial values of the flow measurement model; Correcting the multi-objective function value with measured hydrological data to obtain a corrected multi-objective function value; Determining the optimal solution by iteratively updating the initial solution includes: Based on the maximum or minimum value of the multi-objective function, the initial solution is iteratively updated to determine the Pareto solution set; Determine the optimal solution from the Pareto solution set; The flow measurement model is expressed as follows: ; Where: Output results for the model; is the model parameter group; is the independent variable of the model; is the model operation rule; The multi-objective function values are determined by the predefined initial values of the flow measurement model as follows: Model parameter group , the j groups of initial model parameter matrices, model independent variable matrices, model calculation result matrices and multi-objective function value matrices randomly generated by the algorithm are expressed as follows: ; Where: is the initial model parameter matrix; The initial model parameter group randomly generated for the jth group; ; Where: is the model independent variable matrix; is the mth independent variable; ; Where: Compute the result matrix for the model; is the result calculated based on the jth group of initial model parameters; The multi-objective function value is corrected by using the measured hydrological data to obtain the corrected multi-objective function value, which is expressed by the following formula: ; Where: is the multi-objective function value matrix; is the measured value matrix; It is the multi-objective function operation rule.
2. The method according to claim 1, It is characterized in that The multi-objective function is expressed in the following formula: ; ; In the above formula, is the sample size, For the The calculated value of samples; For the The measured value of samples; is the system error; is the random uncertainty with a confidence level of 95%.
3. The method according to claim 1, It is characterized in that During the iterative update of the initial solution, the algebraic sum of the optimization variables in each row of the initial model parameter matrix included in the initial value of the flow measurement model remains unchanged.
4. The method according to claim 1, It is characterized in that During the iterative update of the initial solution, when the value of the optimization variable exceeds a set range, a maximum penalty function is applied to the multi-objective function.
5. The method according to claim 1, It is characterized in that During the iterative updating of the initial solution, a non-dominated sorting method is used to sort and classify the new solutions.
6. A flow measurement model parameter calibration device, It is characterized in that include: Establishing a module for establishing a multi-objective function of a cuckoo optimization algorithm, wherein the optimization object of the multi-objective function is a model parameter of a flow measurement model, wherein the flow measurement model is constructed according to the hydrological elements of a river section; A first determination module is used to determine an initial solution embodied by the multi-objective function from a predefined initial value of the flow measurement model; A second determination module is used to determine an optimal solution by iteratively updating the initial solution, so as to determine the calibrated model parameters based on the optimal solution; Wherein, the flow measurement model is constructed according to the hydrological elements of the river section; The initial solution represented by the multi-objective function is determined by the predefined initial value of the flow measurement model, including: Determine the multi-objective function values by the predefined initial values of the flow measurement model; Correcting the multi-objective function value with measured hydrological data to obtain a corrected multi-objective function value; Determining the optimal solution by iteratively updating the initial solution includes: Based on the maximum or minimum value of the multi-objective function, the initial solution is iteratively updated to determine the Pareto solution set; Determine the optimal solution from the Pareto solution set; The flow measurement model is expressed as follows: ; Where: Output results for the model; is the model parameter group; is the independent variable of the model; is the model operation rule; The multi-objective function values are determined by the predefined initial values of the flow measurement model as follows: Model parameter group , the j groups of initial model parameter matrices, model independent variable matrices, model calculation result matrices and multi-objective function value matrices randomly generated by the algorithm are expressed as follows: ; Where: is the initial model parameter matrix; The initial model parameter group randomly generated for the jth group; ; Where: is the model independent variable matrix; is the mth independent variable; ; Where: Compute the result matrix for the model; is the result calculated based on the jth group of initial model parameters; The multi-objective function value is corrected by using the measured hydrological data to obtain the corrected multi-objective function value, which is expressed by the following formula: ; Where: is the multi-objective function value matrix; is the measured value matrix; It is the multi-objective function operation rule.
7. A computer-readable storage medium, It is characterized in that The invention comprises a program, which, when being executed on a computer, causes the computer to execute the method according to any one of claims 1 to 5.
8. An execution device, It is characterized in that comprising a processor and a memory, wherein the processor is coupled to the memory; The memory is used to store programs; The processor is configured to execute the program in the memory so that the execution device executes the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Self-calibration method of time difference method flow measurement system based on arcsine vertical flow velocity distribution
CN116337163A
Traffic prediction method and device based on artificial intelligence, equipment and storage medium
CN116684330A
Analysis system and hydrology management for basin rivers
US20190354873A1
