Rainfall measurement method, device, computer equipment and storage medium

The MCNN model is trained through a deep learning network, and combined with data from piezoelectric rain gauges and measuring cylinders or tipping bucket rain gauges, it solves the problem of insufficient rainfall measurement accuracy and real-time performance in the existing technology, and achieves high-precision and high real-time rainfall. Measure the effect.

CN114624791BActive Publication Date: 2024-10-18杭州鲁尔物联科技有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210270110.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-18
Publication Date
2024-10-18
Estimated Expiration
2042-03-18

AI Technical Summary

Technical Problem

The precision and accuracy of existing piezoelectric rain gauges are low, and the real-time performance of tipping bucket rain gauges is not high, making it difficult to achieve high precision and high real-time performance of rainfall measurement.

Method used

Using a deep learning network, the vibration signal collected by the piezoelectric rain gauge is used as input, and the data of the measuring cylinder or tipping bucket rain gauge is used as a label to train the MCNN model for rainfall measurement, and the conversion layer, convolution layer and fully connected layer are used for feature Extract and process, calculate loss values ​​to adjust model parameters, and achieve high precision and accuracy of rainfall measurement, as well as high real-time performance.

Benefits of technology

The measurement accuracy of the piezoelectric rain gauge is achieved to reach the same level as the tipping bucket rain gauge, which improves the accuracy and real-time performance of rainfall measurement.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114624791B_ABST
    Figure CN114624791B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a rainfall measurement method, device, computer equipment and storage medium. The method includes: based on the piezoelectric effect, converting the vibration signal generated by raindrops falling on the sensor surface of the piezoelectric rain gauge into an electrical signal; inputting the vibration signal into a rainfall measurement model for rainfall conversion to obtain a measurement result; outputting the measurement result; wherein the rainfall measurement model is obtained by training a deep learning network framework using raindrop vibration signals within a period of time as a sample set and using the data of a measuring cylinder / tipping bucket rain gauge as a label. By implementing the method of the embodiment of the present invention, high precision and accuracy of rainfall measurement can be achieved, and high real-time performance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a rainfall measurement method, and more specifically to a rainfall measurement method, a device, a computer device and a storage medium. Background Art

[0002] There are a large number of piezoelectric rain sensors on the market. Their detection methods are all based on the piezoelectric element converting the vibration signal generated by raindrops into electrical signals, and trying to establish a model to estimate the size of each raindrop by measuring the intensity of the electrical signal. This can further estimate the total amount of rainfall over a period of time and achieve the purpose of rainfall detection.

[0003] However, the precision and accuracy of rainfall measurement using a piezoelectric rain gauge are low, and if a tipping bucket rain gauge is used for rainfall measurement, there is a problem of low real-time performance.

[0004] Therefore, it is necessary to design a new method to achieve high precision and accuracy in rainfall measurement with high real-time performance. Summary of the invention

[0005] The purpose of the present invention is to overcome the defects of the prior art and provide a rainfall measurement method, device, computer equipment and storage medium.

[0006] To achieve the above object, the present invention adopts the following technical scheme: a rainfall measurement method, comprising:

[0007] Based on the piezoelectric effect, the vibration signal generated by raindrops falling on the sensing surface of the piezoelectric rain gauge is converted into an electrical signal;

[0008] Inputting the vibration signal into a rainfall measurement model to convert rainfall to obtain a measurement result;

[0009] outputting the measurement result;

[0010] The rainfall measurement model is obtained by training in a deep learning network framework using raindrop vibration signals within a period of time as a sample set and using the data of a measuring cylinder / tipping bucket rain gauge as a label.

[0011] The further technical solution is: the rainfall measurement model is obtained by training the raindrop vibration signal within a period of time as a sample set and using the data of the measuring cylinder / tipping bucket rain gauge as a label in a deep learning network framework, including:

[0012] Get a vibration signal and get the standard rainfall value measured by the rain gauge / tipping bucket rain gauge as a label;

[0013] Divide a vibration signal to obtain initial data;

[0014] Build deep learning networks;

[0015] Using the initial data to train the deep learning network to obtain a training result;

[0016] Calculate the loss value between the training result and the standard rainfall value measured by the rain gauge / tipping bucket rain gauge;

[0017] Determine whether the loss value tends to be stable;

[0018] If the loss value tends to be stable, the trained deep learning network is determined as a rainfall measurement model;

[0019] If the loss value does not tend to be stable, the parameters of the deep learning network are adjusted, and the deep learning network is trained using the initial data to obtain a training result.

[0020] Its further technical solution is: the deep learning network is an MCNN model.

[0021] Its further technical solution is: the deep learning network includes an input layer, a conversion layer, a convolutional layer, a fully connected layer and an output layer connected in sequence.

[0022] A further technical solution is: using the initial data to train the deep learning network to obtain a training result, including:

[0023] Extracting original data and multi-frequency data from the initial data using a conversion layer, downsampling the initial data, and extracting decomposition features using VMD to obtain conversion data;

[0024] Convolving, pooling and concatenating the converted data to obtain a processing result;

[0025] Performing secondary convolution on the processing result by using a convolution layer to obtain a convolution result;

[0026] The convolution result is fully connected using a fully connected layer to obtain a training result.

[0027] A further technical solution is: the calculation of the loss value between the training result and the standard rainfall value measured by the rain gauge / tipping bucket rain gauge comprises:

[0028] The MSE loss function is used to calculate the loss value between the training result and the standard rainfall value measured by the rain gauge / tipping bucket rain gauge.

[0029] The present invention also provides a rainfall measuring device, comprising:

[0030] A signal acquisition unit, used for converting the vibration signal generated by raindrops falling on the sensing surface of the piezoelectric rain gauge into an electrical signal based on the piezoelectric effect;

[0031] A measuring unit, used for inputting the vibration signal into a rainfall measurement model for rainfall conversion to obtain a measurement result;

[0032] An output unit is used to output the measurement result.

[0033] Its further technical solution is: also includes:

[0034] The model generation unit is used to train a deep learning network framework by using raindrop vibration signals within a period of time as a sample set and using the data of a measuring cylinder / tipping bucket rain gauge as a label to obtain a rainfall measurement model.

[0035] The present invention further provides a computer device, which includes a memory and a processor. The memory stores a computer program, and the processor implements the above method when executing the computer program.

[0036] The present invention also provides a storage medium, wherein the storage medium stores a computer program, and the computer program implements the above method when executed by a processor.

[0037] The beneficial effect of the present invention compared with the prior art is: the present invention uses a piezoelectric rain gauge to collect the vibration signal obtained when raindrops fall on the piezoelectric rain gauge, and inputs it into a rainfall measurement model as an input signal to measure rainfall, and the rainfall measurement model uses the raindrop vibration signal within a period of time as a sample set and uses the data of a measuring cylinder / tipping bucket rain gauge as a label to train a deep learning network framework, and outputs the measurement results to a terminal, thereby achieving high precision and accuracy in rainfall measurement, and high real-time performance.

[0038] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.

[0040] Figure 1 A schematic diagram of an application scenario of the rainfall measurement method provided by an embodiment of the present invention;

[0041] Figure 2 A schematic diagram of a flow chart of a rainfall measurement method provided by an embodiment of the present invention;

[0042] Figure 3 A schematic diagram of a sub-process of a rainfall measurement method provided by an embodiment of the present invention;

[0043] Figure 4 A schematic diagram of a sub-process of a rainfall measurement method provided by an embodiment of the present invention;

[0044] Figure 5 A schematic diagram of an MCNN model provided by an embodiment of the present invention;

[0045] Figure 6 A schematic block diagram of a rainfall measuring device provided in an embodiment of the present invention;

[0046] Figure 7 A schematic block diagram of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0047] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0048] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0049] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0050] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0051] See also Figure 1 and Figure 2 , Figure 1 A schematic diagram of an application scenario of the rainfall measurement method provided in an embodiment of the present invention. Figure 2A schematic flow chart of a rainfall measurement method provided in an embodiment of the present invention. The rainfall measurement method is applied to a server. The server interacts with a piezoelectric rain gauge and a terminal respectively, collects vibration signals obtained when raindrops fall on the piezoelectric rain gauge using a piezoelectric rain gauge, and inputs the vibration signals as input signals into a rainfall measurement model for rainfall measurement. The rainfall measurement model is obtained by using vibration signals over a period of time as a sample set and using a standard deep learning network trained with a measuring cylinder / tipping bucket rain gauge. The measurement results are output to the terminal, and a rainfall signal over a period of time is used as input using a deep learning technique, and a measuring cylinder / tipping bucket rain gauge is used as a standard for benchmarking learning, so that the measurement accuracy of the trained piezoelectric rain gauge reaches the same detection accuracy as the tipping bucket rain gauge. Deep learning can be considered as a tool that automatically establishes an intrinsic association between input signals and output signals through data. Using deep learning can save a lot of modeling processes for rainfall calculation. By collecting data with rich samples, deep learning can be used to complete the derivation of potential relationships, and the potential relationship itself is a mapping of physical relationships in reality, so it is reasonable.

[0052] Figure 2 FIG. 1 is a flow chart of a rainfall measurement method provided by an embodiment of the present invention. Figure 2 As shown, the method includes the following steps S110 to S130.

[0053] S110. Based on the piezoelectric effect, the vibration signal generated by raindrops falling on the sensor surface of the piezoelectric rain gauge is converted into an electrical signal.

[0054] In this embodiment, when raindrops fall on the piezoelectric rain gauge, the piezoelectric sensor on the piezoelectric rain gauge will vibrate, thereby generating a vibration signal. Multiple sensors deployed on the piezoelectric rain gauge can detect the vibration information generated by the signal of the raindrops falling.

[0055] S120, inputting the vibration signal into a rainfall measurement model to convert rainfall to obtain a measurement result.

[0056] In this embodiment, the measurement result refers to a rainfall value, which is generated according to the standard of measuring with a graduated cylinder or a tipping bucket rain gauge.

[0057] Using deep learning technology, rainfall signals over a period of time are used as input, and the measuring cylinder / tipping bucket rain gauge is used as the standard for benchmarking learning, so that the measurement accuracy of the trained piezoelectric rain gauge reaches the same detection accuracy as the tipping bucket rain gauge. Deep learning can be considered as a tool that automatically establishes the intrinsic relationship between input and output signals through data. Using deep learning can save a lot of modeling processes for rainfall calculation. By collecting rich sample data, deep learning can be used to complete the derivation of potential relationships, and the potential relationship itself is a mapping of physical relationships in reality, so it is reasonable.

[0058] The rainfall measurement model is obtained by training in a deep learning network framework using raindrop vibration signals within a period of time as a sample set and using the data of a measuring cylinder / tipping bucket rain gauge as a label.

[0059] In one embodiment, see Figure 3 , the above-mentioned step S120 may include steps S121 to S128.

[0060] S121. Obtain a vibration signal, and simultaneously obtain a standard rainfall value measured by a rain gauge / tipping bucket rain gauge as a label.

[0061] In this embodiment, a vibration signal refers to a vibration signal obtained when raindrops fall on the piezoelectric rain gauge within a period of time, which can be regarded as a sample set.

[0062] Specifically, the sample set is the input signal X=[x 1 ,x 2 ,...,x t ], t represents the timestamp, x t Represents the vibration signal at time t.

[0063] The rainfall value measured by the graduated cylinder / tipping bucket rain gauge is expressed as Y1=[y 1 ,y 2 ,...,y T ], T represents the timestamp, y T Represents the accumulated rainfall at time T and time T-1, obtained by measuring the value using a graduated cylinder or tipping bucket rain gauge.

[0064] S122, dividing a vibration signal to obtain initial data.

[0065] In this embodiment, the initial data refers to the result of converting the sample set into a tensor form (n, t, v), where n represents the sample number, t represents the timestamp of the piezoelectric signal, and v represents the amplitude of the piezoelectric signal.

[0066] Since the frequency of the output results is generally hours, and the sample set is a vibration signal with a data frequency of milliseconds, the sample set needs to be redivided before the experiment so that the data timestamp of the input network of the sample set and the timestamp of the output result are in the same time and space, that is, the data of the input network becomes a tensor form (n, t, v), where n represents the sample number, t represents the timestamp of the piezoelectric signal, and v represents the amplitude of the piezoelectric signal.

[0067] S123. Build a deep learning network.

[0068] In this embodiment, if Figure 5 As shown, the deep learning network is an MCNN model.

[0069] Since the original problem is a single time series prediction problem, the feature expression capability of the model is insufficient, so the MCNN (Multiple Convolutional Neural Network) algorithm is used in model selection to enhance the feature expression capability and achieve better prediction results.

[0070] Specifically, the deep learning network includes an input layer, a conversion layer, a convolutional layer, a fully connected layer and an output layer connected in sequence.

[0071] S124. Using the initial data to train the deep learning network to obtain a training result.

[0072] In this embodiment, the training result refers to the obtained rainfall value.

[0073] Specifically, the training result Y = [y 1 ,y 2 ,...,y T ], T represents the timestamp, y T Represents the accumulated rainfall at time T and time T-1, expressed using the standards of a graduated cylinder or tipping bucket rain gauge.

[0074] In one embodiment, see Figure 4 , the above-mentioned step S124 may include steps S1241 to S1244.

[0075] S1241. Use a conversion layer to extract original data and multi-frequency data from the initial data, downsample the initial data, and use VMD to extract decomposition features to obtain conversion data.

[0076] In this embodiment, the conversion data includes four parts: original data, namely, initial data, multi-frequency data, down-sampled data, and features obtained by decomposing the initial data using VMD.

[0077] S1242: Convolve, pool and concatenate the converted data to obtain a processing result.

[0078] In this embodiment, the processing result refers to the result obtained by convolving, pooling and concatenating the converted data.

[0079] S1243. Perform secondary convolution on the processing result using a convolution layer to obtain a convolution result.

[0080] In this embodiment, the convolution result refers to the result obtained by performing a secondary convolution on the processing result.

[0081] S1244. Perform full connection processing on the convolution result using a fully connected layer to obtain a training result.

[0082] In the conversion stage, the initial data is input as X, and three parts of data are extracted. The first part is the initial data, the second part is the multi-frequency data, which means that the initial data is subjected to statistical features such as mean and standard deviation in the form of a moving window, and the third part is the downsampling of the initial data. In this embodiment, in the conversion stage, VMD (Variational mode decomposition) is added as the fourth feature of the conversion stage. VMD is used to specifically decompose the signal to form several subsequences to enhance the characterization ability of the original signal. Then, the output of the conversion stage is convolved, pooled and spliced ​​separately, and the spliced ​​data is convolved again and passed through a fully connected layer to obtain the prediction result.

[0083] S125, calculating the loss value between the training result and the standard rainfall value measured by the rain gauge / tipping bucket rain gauge.

[0084] In this embodiment, the loss value refers to the degree of difference between the training result and the standard rainfall value measured by the rain gauge / tipping bucket rain gauge.

[0085] Specifically, the MSE loss function is used to calculate the loss value between the training result and the standard rainfall value measured by the rain gauge / tipping bucket rain gauge; because it is a regression problem, MSE (mean square error) is used as the optimization target in the selection of the loss function, that is,

[0086] S126, judging whether the loss value tends to be stable;

[0087] S127, if the loss value tends to be stable, determining the trained deep learning network as a rainfall measurement model;

[0088] S128. If the loss value does not tend to be stable, adjust the parameters of the deep learning network and execute step S124.

[0089] When the loss value tends to be stable, that is, it tends to be unchanged, it indicates that the trained deep learning network has converged. At this time, it can be used as a rainfall measurement model to perform rainfall measurement, which has both high precision and high accuracy, as well as high real-time effects. When the loss value does not tend to be stable, that is, it does not tend to be unchanged, it indicates that the trained deep learning network has not converged, and the parameters need to be adjusted again for the next round of training.

[0090] In addition, during the training process, 60% of the initial data is used as training data, 20% of the initial data is used as validation set, and 20% of the initial data is used as test set. Among them, the training data is mainly used to solve the model parameters, the validation set is used to select the optimal hyperparameters (generalization ability, fitting ability), and the test set is used to check the test performance of out-of-sample data.

[0091] S130, outputting the measurement result;

[0092] The measurement results are output to the terminal for users to view.

[0093] This embodiment uses an AI algorithm to complete the calibration of rainfall, and the data label directly uses the tipping bucket rain gauge or rain gauge that the industry considers to be the standard answer. After the training is completed, the problem of low accuracy of the piezoelectric rain gauge can be compensated, and the disadvantage of low real-time performance of the tipping bucket rain gauge can be compensated. The conversion from piezoelectric signal to rainfall value is directly completed, and the complex modeling process in the middle is handed over to deep learning to complete.

[0094] The above-mentioned rainfall measurement method uses a piezoelectric rain gauge to collect the vibration signal obtained when raindrops fall on the piezoelectric rain gauge, and inputs it into the rainfall measurement model as an input signal to measure rainfall. The rainfall measurement model uses the raindrop vibration signal over a period of time as a sample set and uses the data of the measuring cylinder / tipping bucket rain gauge as a label to train a deep learning network framework, and outputs the measurement results to the terminal, thereby achieving high precision and accuracy in rainfall measurement, and high real-time performance.

[0095] Figure 6 is a schematic block diagram of a rainfall measurement device 300 provided in an embodiment of the present invention. Figure 6 As shown, corresponding to the above rainfall measurement method, the present invention also provides a rainfall measurement device 300. The rainfall measurement device 300 includes a unit for executing the above rainfall measurement method, and the device can be configured in a server. Figure 6 The rainfall measuring device 300 includes a signal acquiring unit 301 , a measuring unit 302 and an output unit 303 .

[0096] The signal acquisition unit 301 is used to convert the vibration signal generated by raindrops falling on the sensor surface of the piezoelectric rain gauge into an electrical signal based on the piezoelectric effect; the measurement unit 302 is used to input the vibration signal into a rainfall measurement model for rainfall conversion to obtain a measurement result; the output unit 303 is used to output the measurement result.

[0097] In one embodiment, the rainfall measuring device 300 further includes a model generating unit for training a deep learning network framework using raindrop vibration signals within a period of time as a sample set and using data from a measuring cylinder / tipping bucket rain gauge as labels to obtain a rainfall measurement model.

[0098] In one embodiment, the model generation unit includes a sample set acquisition subunit, a division subunit, a network construction subunit, a training subunit, a calculation subunit, a judgment subunit, a determination subunit and an adjustment subunit.

[0099] A sample set acquisition subunit is used to acquire a vibration signal and simultaneously acquire a standard rainfall value measured by a rain gauge / tipping bucket rain gauge as a label; a division subunit is used to divide a vibration signal to obtain initial data; a network construction subunit is used to construct a deep learning network; a training subunit is used to train the deep learning network using the initial data to obtain a training result; a calculation subunit is used to calculate a loss value between the training result and the standard rainfall value measured by the rain gauge / tipping bucket rain gauge; a judgment subunit is used to judge whether the loss value tends to be stable; a determination subunit is used to determine the trained deep learning network as a rainfall measurement model if the loss value tends to be stable; an adjustment subunit is used to adjust the parameters of the deep learning network if the loss value does not tend to be stable, and execute the training of the deep learning network using the initial data to obtain a training result.

[0100] In one embodiment, the training subunit includes a conversion module, a processing module, a secondary convolution module and a fully connected module.

[0101] A conversion module is used to extract original data and multi-frequency data from the initial data using a conversion layer, downsample the initial data, and extract decomposition features using VMD to obtain conversion data; a processing module is used to convolve, pool and splice the conversion data to obtain a processing result; a secondary convolution module is used to perform secondary convolution on the processing result using a convolution layer to obtain a convolution result; a fully connected module is used to perform fully connected processing on the convolution result using a fully connected layer to obtain a training result.

[0102] In one embodiment, the calculation subunit is used to calculate the loss value between the training result and the standard rainfall value measured by the rain gauge / tipping bucket rain gauge by using the MSE loss function.

[0103] It should be noted that those skilled in the art can clearly understand that the specific implementation process of the above-mentioned rainfall measuring device 300 and each unit can refer to the corresponding description in the aforementioned method embodiment, and for the convenience and brevity of description, it will not be repeated here.

[0104] The above-mentioned rainfall measuring device 300 can be implemented in the form of a computer program, which can be used in Figure 7 Runs on the computer device shown.

[0105] See also Figure 7 , Figure 7 5 is a schematic block diagram of a computer device provided in an embodiment of the present application. The computer device 500 may be a server, wherein the server may be an independent server or a server cluster composed of multiple servers.

[0106] See also Figure 7 The computer device 500 includes a processor 502 , a memory and a network interface 505 connected via a system bus 501 , wherein the memory may include a non-volatile storage medium 503 and an internal memory 504 .

[0107] The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. The computer program 5032 includes program instructions, and when the program instructions are executed, the processor 502 may execute a rainfall measurement method.

[0108] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500 .

[0109] The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute a rainfall measurement method.

[0110] The network interface 505 is used to communicate with other devices over the network. Figure 7 The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device 500 to which the solution of the present application is applied. The specific computer device 500 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0111] The processor 502 is used to run the computer program 5032 stored in the memory to implement the following steps:

[0112] Based on the piezoelectric effect, the vibration signal generated by raindrops falling on the sensor surface of the piezoelectric rain gauge is converted into an electrical signal; the vibration signal is input into a rainfall measurement model for rainfall conversion to obtain a measurement result; and the measurement result is output;

[0113] The rainfall measurement model is obtained by training in a deep learning network framework using raindrop vibration signals within a period of time as a sample set and using the data of a measuring cylinder / tipping bucket rain gauge as a label.

[0114] In one embodiment, when the processor 502 implements the step of training the rainfall measurement model using raindrop vibration signals within a period of time as a sample set and using the data of a measuring cylinder / tipping bucket rain gauge as a label in a deep learning network framework, the processor 502 specifically implements the following steps:

[0115] A vibration signal is obtained and a standard rainfall value measured by a rain gauge / tipping bucket rain gauge is obtained as a label; a vibration signal is divided to obtain initial data; a deep learning network is constructed; the deep learning network is trained using the initial data to obtain a training result; a loss value between the training result and the standard rainfall value measured by the rain gauge / tipping bucket rain gauge is calculated; whether the loss value tends to be stable; if the loss value tends to be stable, the trained deep learning network is determined as a rainfall measurement model; if the loss value does not tend to be stable, the parameters of the deep learning network are adjusted, and the deep learning network is trained using the initial data to obtain a training result.

[0116] Wherein, the deep learning network is an MCNN model.

[0117] The deep learning network includes an input layer, a conversion layer, a convolutional layer, a fully connected layer and an output layer connected in sequence.

[0118] In one embodiment, when the processor 502 implements the step of training the deep learning network using the initial data to obtain a training result, the processor 502 specifically implements the following steps:

[0119] A conversion layer is used to extract original data and multi-frequency data from the initial data, and the initial data is downsampled, and VMD is used to extract decomposition features to obtain conversion data; the conversion data is convolved, pooled and spliced ​​to obtain a processing result; the processing result is convolved twice using a convolution layer to obtain a convolution result; the convolution result is fully connected using a fully connected layer to obtain a training result.

[0120] In one embodiment, when the processor 502 implements the step of calculating the loss value between the training result and the standard rainfall value measured by the rain gauge / tipping bucket rain gauge, the processor 502 specifically implements the following steps:

[0121] The MSE loss function is used to calculate the loss value between the training result and the standard rainfall value measured by the rain gauge / tipping bucket rain gauge.

[0122] It should be understood that in the embodiment of the present application, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0123] It can be understood by those skilled in the art that all or part of the processes in the method for implementing the above embodiment can be completed by instructing the relevant hardware through a computer program. The computer program includes program instructions, and the computer program can be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the process steps of the embodiment of the above method.

[0124] Therefore, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program, wherein when the computer program is executed by a processor, the processor executes the following steps:

[0125] Based on the piezoelectric effect, the vibration signal generated by raindrops falling on the sensor surface of the piezoelectric rain gauge is converted into an electrical signal; the vibration signal is input into a rainfall measurement model for rainfall conversion to obtain a measurement result; and the measurement result is output;

[0126] The rainfall measurement model is obtained by training in a deep learning network framework using raindrop vibration signals within a period of time as a sample set and using the data of a measuring cylinder / tipping bucket rain gauge as a label.

[0127] In one embodiment, when the processor executes the computer program to implement the step of obtaining the rainfall measurement model by training a deep learning network framework using raindrop vibration signals within a period of time as a sample set and using data of a measuring cylinder / tipping bucket rain gauge as a label, the processor specifically implements the following steps:

[0128] A vibration signal is obtained and a standard rainfall value measured by a rain gauge / tipping bucket rain gauge is obtained as a label; a vibration signal is divided to obtain initial data; a deep learning network is constructed; the deep learning network is trained using the initial data to obtain a training result; a loss value between the training result and the standard rainfall value measured by the rain gauge / tipping bucket rain gauge is calculated; whether the loss value tends to be stable; if the loss value tends to be stable, the trained deep learning network is determined as a rainfall measurement model; if the loss value does not tend to be stable, the parameters of the deep learning network are adjusted, and the deep learning network is trained using the initial data to obtain a training result.

[0129] Wherein, the deep learning network is an MCNN model.

[0130] The deep learning network includes an input layer, a conversion layer, a convolutional layer, a fully connected layer and an output layer connected in sequence.

[0131] In one embodiment, when the processor executes the computer program to implement the step of training the deep learning network using the initial data to obtain a training result, the processor specifically implements the following steps:

[0132] A conversion layer is used to extract original data and multi-frequency data from the initial data, and the initial data is downsampled, and VMD is used to extract decomposition features to obtain conversion data; the conversion data is convolved, pooled and spliced ​​to obtain a processing result; the processing result is convolved twice using a convolution layer to obtain a convolution result; the convolution result is fully connected using a fully connected layer to obtain a training result.

[0133] In one embodiment, when the processor executes the computer program to implement the step of calculating the loss value between the training result and the standard rainfall value measured by the rain gauge / tipping bucket rain gauge, the processor specifically implements the following steps:

[0134] The MSE loss function is used to calculate the loss value between the training result and the standard rainfall value measured by the rain gauge / tipping bucket rain gauge.

[0135] The storage medium may be a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk, etc., which are computer-readable storage media that can store program codes.

[0136] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0137] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of each unit is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.

[0138] The steps in the method of the embodiment of the present invention can be adjusted in order, combined and deleted according to actual needs. The units in the device of the embodiment of the present invention can be combined, divided and deleted according to actual needs. In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0139] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, terminal, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention.

[0140] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A method for measuring rainfall, characterized in that: include: Based on the piezoelectric effect, the vibration signal generated by raindrops falling on the sensing surface of the piezoelectric rain gauge is converted into an electrical signal; Inputting the vibration signal into a rainfall measurement model for rainfall conversion to obtain a measurement result; outputting the measurement result; The rainfall measurement model is obtained by training in a deep learning network framework using raindrop vibration signals within a period of time as a sample set and using the data of a measuring cylinder / tipping bucket rain gauge as a label; The rainfall measurement model is trained in a deep learning network framework using raindrop vibration signals over a period of time as a sample set and using cylinder / tipping bucket rain gauge data as labels, including: Get a vibration signal and get the standard rainfall value measured by the rain gauge / tipping bucket rain gauge as a label; the sample set is the input signal X = [x1, x2, ..., x t ], t represents the timestamp, x t represents the vibration signal at time t; the rainfall value measured by the cylinder / tipping bucket rain gauge is expressed as Y1=[y1,y2,...,y T ], T represents the timestamp, y T Represents the accumulated rainfall at time T and time T-1, obtained by measuring the value using a graduated cylinder or tipping bucket rain gauge; A vibration signal is divided to obtain initial data; initial data refers to the result of converting the sample set into a tensor form (n, t, v), where n represents the sample number, t represents the timestamp of the piezoelectric signal, and v represents the amplitude of the piezoelectric signal; Build deep learning networks; The deep learning network is trained using the initial data to obtain a training result; the training result Y = [y1, y2, ..., y T ], T represents the timestamp, y T Represents the accumulated rainfall at time T and time T-1, expressed using the standards of a graduated cylinder or tipping bucket rain gauge; Calculate the loss value between the training result and the standard rainfall value measured by the rain gauge / tipping bucket rain gauge; use the MSE loss function to calculate the loss value between the training result and the standard rainfall value measured by the rain gauge / tipping bucket rain gauge; Determine whether the loss value tends to be stable; If the loss value tends to be stable, the trained deep learning network is determined as a rainfall measurement model; If the loss value does not tend to be stable, the parameters of the deep learning network are adjusted, and the deep learning network is trained using the initial data to obtain a training result.

2. The rainfall measurement method according to claim 1, characterized in that: The deep learning network is an MCNN model.

3. The rainfall measurement method according to claim 1, characterized in that: The deep learning network includes an input layer, a conversion layer, a convolutional layer, a fully connected layer and an output layer connected in sequence.

4. The rainfall measurement method according to claim 1, characterized in that: The using the initial data to train the deep learning network to obtain a training result includes: Extracting original data and multi-frequency data from the initial data using a conversion layer, downsampling the initial data, and extracting decomposition features using VMD to obtain conversion data; Convolving, pooling and concatenating the converted data to obtain a processing result; Performing secondary convolution on the processing result by using a convolution layer to obtain a convolution result; The convolution result is fully connected using a fully connected layer to obtain a training result.

5. A rainfall measuring device, characterized in that: include: A signal acquisition unit, used for converting the vibration signal generated by raindrops falling on the sensing surface of the piezoelectric rain gauge into an electrical signal vibration signal based on the piezoelectric effect; A measuring unit, used for inputting the vibration signal into a rainfall measurement model for rainfall conversion to obtain a measurement result; An output unit, used for outputting the measurement result; Also includes: A model generation unit, used to train a deep learning network framework by using raindrop vibration signals within a period of time as a sample set and using data of a measuring cylinder / tipping bucket rain gauge as a label to obtain a rainfall measurement model; The model generation unit includes a sample set acquisition subunit, a division subunit, a network construction subunit, a training subunit, a calculation subunit, a judgment subunit, a determination subunit and an adjustment subunit; the sample set acquisition subunit is used to obtain a vibration signal and obtain the standard rainfall value measured by the rain gauge / tipping bucket rain gauge as a label; the division subunit is used to divide a vibration signal to obtain initial data; the sample set is the input signal X=[x1,x2,...,x t ], t represents the timestamp, x t represents the vibration signal at time t; the rainfall value measured by the cylinder / tipping bucket rain gauge is expressed as Y1=[y1,y2,...,y T ], T represents the timestamp, y T represents the accumulated rainfall at time T and time T-1, which is obtained by measuring the value of a measuring cylinder or a tipping bucket rain gauge; the initial data refers to the result obtained by converting the sample set into a tensor form (n, t, v), where n represents the sample number, t represents the timestamp of the piezoelectric signal, and v represents the amplitude of the piezoelectric signal; the network construction subunit is used to construct a deep learning network; the training subunit is used to train the deep learning network using the initial data to obtain a training result; the training result Y = [y1, y2, ..., y T ], T represents the timestamp, y T Represents the accumulated rainfall at time T and time T-1, and is embodied by the standard of a measuring cylinder or a tipping bucket rain gauge; a calculating subunit is used to calculate the loss value between the training result and the standard rainfall value measured by the rain gauge / tipping bucket rain gauge; an MSE loss function is used to calculate the loss value between the training result and the standard rainfall value measured by the rain gauge / tipping bucket rain gauge; a judging subunit is used to judge whether the loss value tends to be stable; a determining subunit is used to determine the trained deep learning network as a rainfall measurement model if the loss value tends to be stable; an adjusting subunit is used to adjust the parameters of the deep learning network if the loss value does not tend to be stable, and execute the training of the deep learning network using the initial data to obtain the training result.

6. A computer device, characterized in that: The computer device comprises a memory and a processor, the memory stores a computer program, and the processor implements the method according to any one of claims 1 to 4 when executing the computer program.

7. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.

Citation Information

Patent Citations

  • System for realizing dam slope protection based on convolutional neural network

    CN112990108A