CN111811617B - A liquid level prediction method based on short-time Fourier transform and convolutional neural network - Google Patents

A liquid level prediction method based on short-time Fourier transform and convolutional neural network Download PDF

Info

Publication number
CN111811617B
CN111811617B CN202010660942.8A CN202010660942A CN111811617B CN 111811617 B CN111811617 B CN 111811617B CN 202010660942 A CN202010660942 A CN 202010660942A CN 111811617 B CN111811617 B CN 111811617B
Authority
CN
China
Prior art keywords
neural network
convolutional neural
layer
liquid level
model
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010660942.8A
Other languages
Chinese (zh)
Other versions
CN111811617A (en
Inventor
姬志永
徐晓滨
冯静
陶志刚
马成荣
侯平智
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Dianzi University
Original Assignee
Hangzhou Dianzi University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Dianzi University filed Critical Hangzhou Dianzi University
Priority to CN202010660942.8A priority Critical patent/CN111811617B/en
Publication of CN111811617A publication Critical patent/CN111811617A/en
Application granted granted Critical
Publication of CN111811617B publication Critical patent/CN111811617B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01FMEASURING VOLUME, VOLUME FLOW, MASS FLOW OR LIQUID LEVEL; METERING BY VOLUME
    • G01F23/00Indicating or measuring liquid level or level of fluent solid material, e.g. indicating in terms of volume or indicating by means of an alarm
    • G01F23/22Indicating or measuring liquid level or level of fluent solid material, e.g. indicating in terms of volume or indicating by means of an alarm by measuring physical variables, other than linear dimensions, pressure or weight, dependent on the level to be measured, e.g. by difference of heat transfer of steam or water
    • G01F23/28Indicating or measuring liquid level or level of fluent solid material, e.g. indicating in terms of volume or indicating by means of an alarm by measuring physical variables, other than linear dimensions, pressure or weight, dependent on the level to be measured, e.g. by difference of heat transfer of steam or water by measuring the variations of parameters of electromagnetic or acoustic waves applied directly to the liquid or fluent solid material
    • G01F23/296Acoustic waves
    • G01F23/2966Acoustic waves making use of acoustical resonance or standing waves

Landscapes

  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Electromagnetism (AREA)
  • Thermal Sciences (AREA)
  • Fluid Mechanics (AREA)
  • General Physics & Mathematics (AREA)
  • Measurement Of Levels Of Liquids Or Fluent Solid Materials (AREA)

Abstract

The invention discloses a non-contact liquid level prediction method based on a convolutional neural network. The method comprises the steps of firstly, obtaining a resonance wave data set required by an experiment through an acoustic resonance liquid level measuring instrument. And secondly, performing short-time Fourier transform on the time domain data set, and converting the one-dimensional time domain waveform signal into a two-dimensional frequency spectrum pattern form to be used as the input of the convolutional neural network. Then, a regression model is constructed based on the convolutional neural network, the mean square error is selected as a loss function, and an Adam function is selected as an optimization algorithm. And finally, inputting the training set into the constructed convolutional neural network model for modeling, and then inputting the test set into the trained convolutional neural network model to obtain the predicted liquid level height. The method realizes the mapping process from the original data to the task target by constructing a convolution neural network regression model; by iterative optimization of model parameters, the generalization capability of the convolutional neural network model and the accuracy of a prediction result are improved.

Description

一种基于短时傅里叶变换和卷积神经网络的液位预测方法A liquid level prediction method based on short-time Fourier transform and convolutional neural network

技术领域technical field

本发明属于深度学习领域,设计了一种基于短时傅里叶变换和卷积神经网络的液位预测方法。The invention belongs to the field of deep learning, and designs a liquid level prediction method based on short-time Fourier transform and convolutional neural network.

背景技术Background technique

液位属于物位的一种,是指密闭容器或者开口容器中液位的高低。测量液位主要是通过检测液位两侧物质的特有性质,或者一些相同的物理参数(例如电阻、电容、压差、声速、光能等)在传播过程中的变化,从而确定液位高度的方法。按测量装置是否与所测液体接触,可分为接触式测量方法和非接触式测量方法。常用的非接触式测量方法有雷达、激光、超声波等测量法Liquid level is a kind of material level, which refers to the level of liquid level in a closed container or an open container. The measurement of the liquid level is mainly by detecting the unique properties of the substances on both sides of the liquid level, or the changes of some of the same physical parameters (such as resistance, capacitance, pressure difference, sound speed, light energy, etc.) during the propagation process, so as to determine the liquid level height. method. According to whether the measuring device is in contact with the measured liquid, it can be divided into contact measurement method and non-contact measurement method. Commonly used non-contact measurement methods include radar, laser, ultrasonic and other measurement methods.

(1)基于超声波反射的液位测量方法:该方向性好、易于操作等特点,成为最常用的方法之一。它的测量原理是向液面发射超声波并接收回波,用声速乘以往返量程的时间计算液面到声波接收装置的距离。但是,在实际的工业应用中,被测液体表面常常会出现泡沫、残渣和沉积物等异物。当超声波遇到这些障碍物时,易发生寄生反射现象,改变传播路径,从而严重影响测量效果,大大降低超声波的测量精度。(1) Liquid level measurement method based on ultrasonic reflection: It has the characteristics of good directionality and easy operation, and has become one of the most commonly used methods. Its measurement principle is to transmit ultrasonic waves to the liquid surface and receive echoes, and multiply the speed of sound by the time of the round-trip range to calculate the distance from the liquid surface to the acoustic wave receiving device. However, in practical industrial applications, foreign objects such as foam, residues and deposits often appear on the surface of the liquid to be tested. When ultrasonic waves encounter these obstacles, parasitic reflections are prone to occur, changing the propagation path, which seriously affects the measurement effect and greatly reduces the measurement accuracy of ultrasonic waves.

(2)基于低频声波波长方法:低频声波波长较长,遇到障碍物时会发生衍射,即声波可以绕开障碍物继续传播,避免了寄生反射。基于低频声波的共振原理,从初始共振频率(Resonance Frequency RF)换算出液位高度,得到了较好的测量效果。但是,该方法的最大量程取决于初始RF,而该频率的最小值受扬声器原理、类型、声源体积和质量等因素的限制,一般仅为20Hz。若在标准声速c=331.45m/s下进行测量,最大量程也只有8.28m。并且,这也对麦克风的灵敏度提出了较高的要求,而一般麦克风可以感应到的最低音频为20Hz左右,这些因素都极大的限制了该方法在长距离测量中的应用。(2) Method based on the wavelength of low-frequency sound waves: the wavelength of low-frequency sound waves is longer, and diffraction will occur when encountering obstacles, that is, sound waves can continue to propagate around obstacles, avoiding parasitic reflections. Based on the resonance principle of low-frequency sound waves, the liquid level height was converted from the initial resonance frequency (Resonance Frequency RF), and a better measurement effect was obtained. However, the maximum range of this method depends on the initial RF, and the minimum value of this frequency is limited by factors such as speaker principle, type, sound source volume and quality, and is generally only 20Hz. If measured at the standard sound speed c=331.45m/s, the maximum range is only 8.28m. Moreover, this also puts forward higher requirements on the sensitivity of the microphone, and the lowest audio frequency that can be sensed by a general microphone is about 20 Hz. These factors greatly limit the application of this method in long-distance measurement.

(3)为了解决低频声波共振测量方法存在的测量距离受限的问题,基于固定频段声波共振的液位测量方法将发射低频声波信号改为固定频段的扫频信号。改进后的方法无需提取基础共振频率点,改用提取一系列的共振频率点,根据相邻共振频率点的差值换算出测量装置与液面之间的距离。基于声共振的液位预测方法在提取等特征提取过程中,删除了大量无关的原始数据,减少了运算量。但是这种人为的设定特征提取只是从信号的一个角度分析数据信息,这种方法可能会取得相对最优的特征,却舍弃了很多原始信息,在嘈杂的环境中,就会出现共振点多选或者遗漏的问题,这样会大大降低液位测量精度。(3) In order to solve the problem of limited measurement distance in the low-frequency acoustic resonance measurement method, the liquid level measurement method based on the fixed-frequency acoustic resonance changes the transmitted low-frequency acoustic signal into a fixed-frequency sweep signal. The improved method does not need to extract the basic resonance frequency points, but instead extracts a series of resonance frequency points, and converts the distance between the measuring device and the liquid surface according to the difference between the adjacent resonance frequency points. The liquid level prediction method based on acoustic resonance deletes a large number of irrelevant original data in the process of feature extraction such as extraction, which reduces the amount of computation. However, this artificially set feature extraction only analyzes the data information from one angle of the signal. This method may obtain relatively optimal features, but discards a lot of original information. In a noisy environment, there will be many resonance points. The problem of selection or omission will greatly reduce the accuracy of liquid level measurement.

近年来深度学习在图像处理、自然语言处理领域得到了广泛的应用,其“端到端”的学习方法是区别去其他算法的最重要的方面,它使整个学习流程并不进行人为的子问题划分,而是完全交给深度学习模型直接学习从原始输入到期望输出的映射,有更大可能获得全局最优解。In recent years, deep learning has been widely used in the fields of image processing and natural language processing. Its "end-to-end" learning method is the most important aspect that distinguishes other algorithms. It makes the whole learning process free from artificial sub-problems. Instead, it is completely handed over to the deep learning model to directly learn the mapping from the original input to the desired output, and it is more likely to obtain the global optimal solution.

发明内容SUMMARY OF THE INVENTION

本发明的目的针对现有技术存在的不足,提出了一种基于短时傅里叶变换和卷积神经网络的液位预测方法。The purpose of the present invention is to propose a liquid level prediction method based on short-time Fourier transform and convolutional neural network in view of the shortcomings of the prior art.

本发明包括以下步骤:The present invention includes the following steps:

步骤(1)获取数据集Step (1) Get the dataset

本发明使用的数据均通过声共振液位测量仪器(简称液位仪)采集得来,该套设备测量系统的扬声器发出1000到2500Hz正弦波,麦克风实时采集传回共振波并将其存储。从已测得液位数据库中选取完整、无扰动的声波数据,对应的测量长度作为数据标签。The data used in the present invention are all collected by an acoustic resonance liquid level measuring instrument (abbreviated as a liquid level instrument). The loudspeaker of the equipment measuring system emits 1000 to 2500 Hz sine waves, and the microphone collects and transmits the resonance waves in real time and stores them. Select the complete and undisturbed acoustic wave data from the measured liquid level database, and use the corresponding measurement length as the data label.

步骤(2)特征提取Step (2) Feature extraction

将采集到的5000组原始信号进行短时傅里叶变换,使得一维时域波形信号转换成二维数据的时频域的频谱图形式;短时傅里叶变换(STFT)的数学公式如下:The collected 5000 groups of original signals are subjected to short-time Fourier transform, so that the one-dimensional time-domain waveform signal is converted into a time-frequency spectrum of two-dimensional data; the mathematical formula of the short-time Fourier transform (STFT) is as follows :

Figure BDA0002578547610000021
Figure BDA0002578547610000021

其中,y(n)为音频信号,g(n)为窗函数,f为频率,t为时间,e、π分别是自然对数底数和圆周率,二者均是常数。Among them, y(n) is the audio signal, g(n) is the window function, f is the frequency, t is the time, e and π are the natural logarithmic base and pi respectively, both of which are constants.

步骤(3)构建卷积神经网络Step (3) Build a Convolutional Neural Network

本发明搭建了一个三层卷积神经网络回归模型;选用Adam作为优化算法,选用均方误差MSE作为损失函数。The present invention builds a three-layer convolutional neural network regression model; selects Adam as the optimization algorithm, and selects the mean square error MSE as the loss function.

所建立的卷积神经网络模型中每一层网络都包含卷积层、池化层、非线性激活层。第一层卷积神经网络卷积层Conv1的卷积核大小为5×5,通道数为6,步长为1,最大值池化层核大小为2,步长为1;第二层卷积神经网络卷积层Conv2的卷积核大小为5×5,步长为1,通道数为16,最大值池化层核大小为2,步长为1;第三层卷积神经网络卷积层Conv3卷积核大小为5×5,步长为1,通道数为120,最大值池化层核大小为2×2,步长为1,全连接层Fc1隐藏节点个数为120;全连接层Fc2隐藏节点个数为84;全连接层Fc3隐藏结点个数为1。Each layer of the network in the established convolutional neural network model includes a convolutional layer, a pooling layer, and a nonlinear activation layer. The convolution kernel size of the first layer of convolutional neural network convolution layer Conv1 is 5 × 5, the number of channels is 6, the stride is 1, the maximum pooling layer kernel size is 2, and the stride is 1; the second layer convolution The convolution kernel size of the convolutional layer Conv2 of the convolutional neural network is 5 × 5, the stride is 1, the number of channels is 16, the kernel size of the maximum pooling layer is 2, and the stride is 1; the third layer convolutional neural network volume The size of the convolution kernel of the convolutional layer Conv3 is 5×5, the stride is 1, the number of channels is 120, the kernel size of the maximum pooling layer is 2×2, the stride is 1, and the number of hidden nodes of the fully connected layer Fc1 is 120; The number of hidden nodes in the fully connected layer Fc2 is 84; the number of hidden nodes in the fully connected layer Fc3 is 1.

步骤(4)卷积神经网络的训练及评估Step (4) Training and Evaluation of Convolutional Neural Networks

将采集到的5000组数据集数据按8:1:1分成训练集、验证集、测试集。首先将训练集数据输入到然后步骤3建立的模型中,然后将测试集输入到已经训练好的卷积神经网络当中,输出预测到的液位高度。The 5000 sets of data collected were divided into training set, validation set and test set according to 8:1:1. First, input the training set data into the model established in step 3, and then input the test set into the trained convolutional neural network to output the predicted liquid level height.

Adam是优化算法是随机梯度下降法的扩展式,它能基于训练数据迭代地更新网络权重。近年来,该算法被广泛应用在深度学习领域,尤其是计算机视觉和自然语言处理等任务当中。因此,选用Adam算法作为本发明的优化算法。Adam is an extension of the optimization algorithm stochastic gradient descent, which iteratively updates the network weights based on training data. In recent years, this algorithm has been widely used in the field of deep learning, especially in tasks such as computer vision and natural language processing. Therefore, Adam algorithm is selected as the optimization algorithm of the present invention.

在机器学习中,损失函数(loss function)是用来估计模型的预测值和真实值的不一致程度,损失函数越小,一般就代表模型的鲁棒性越好,正是损失函数指导模型参数的学习。In machine learning, the loss function is used to estimate the inconsistency between the predicted value of the model and the actual value. The smaller the loss function, the better the robustness of the model. It is the loss function that guides the model parameters. study.

本发明选用均方误差作为损失函数,它是预测值与标签的差值的平方和的均值,其公式如下所示:The present invention selects the mean square error as the loss function, which is the mean value of the sum of squares of the difference between the predicted value and the label, and its formula is as follows:

Figure BDA0002578547610000031
Figure BDA0002578547610000031

其中yi第i个样本的样本标签,

Figure BDA0002578547610000032
是预测值,n表示样本总量。where y i is the sample label of the ith sample,
Figure BDA0002578547610000032
is the predicted value, and n is the total sample size.

根据上述评估结果,优选兼顾预测误差和网络复杂度(参数量和计算量)的卷积神经网络作为最终模型。According to the above evaluation results, a convolutional neural network that takes into account prediction error and network complexity (parameter amount and calculation amount) is preferably used as the final model.

本发明的有益效果:本发明采用固定频段的声共振液位预测方法,可扩大液位测量范围,通过短时傅里叶变换将每一个音频信号转换到二维频域作为卷积神经网络的输入;通过构建卷积神经网络回归模型,实现从原始数据到任务目标的映射过程;通过对模型参数迭代优化,提升卷积神经网络模型的泛化能力和预测结果的准确性。Beneficial effects of the present invention: The present invention adopts the acoustic resonance liquid level prediction method of a fixed frequency band, which can expand the liquid level measurement range, and converts each audio signal into a two-dimensional frequency domain through short-time Fourier transform as a convolutional neural network. Input; by building a convolutional neural network regression model, the mapping process from the original data to the task target is realized; by iterative optimization of the model parameters, the generalization ability of the convolutional neural network model and the accuracy of the prediction results are improved.

附图说明Description of drawings

图1.本发明的流程图;Fig. 1. the flow chart of the present invention;

图2.基于声共振原理的液位预测系统;Figure 2. Liquid level prediction system based on acoustic resonance principle;

图3.麦克风采集到的时域的波形图及时频图;Figure 3. The time-domain waveform and frequency graph collected by the microphone;

图4.训练损失曲线。Figure 4. Training loss curve.

具体实施方式Detailed ways

下面结合附图对本发明进行进一步的说明。The present invention will be further described below with reference to the accompanying drawings.

根据图1所示的算法流程图,并结合实际测量环境以及液位测量实例,详细的介绍该方法的每一个步骤。According to the algorithm flow chart shown in Figure 1, and combined with the actual measurement environment and the example of liquid level measurement, each step of the method is introduced in detail.

步骤1:获取数据Step 1: Get the data

在声共振液位测量装置上构建预测模型数据集,如图2所示,扬声器播放固定频段的正弦波,同时麦克风采集共振波数据,并将数据存贮到处理器内置的内存卡中。实验中,采集标签为0.6m、0.8m、1.0m……10.4m的音频数据,每个标签采集100组数据共5000组作为数据集。针对原始一维时域波形信号可以进行高斯平均滤波、中值滤波等滤波处理,然后进行min-max归一化处理。The prediction model data set is constructed on the acoustic resonance liquid level measurement device. As shown in Figure 2, the speaker plays a sine wave with a fixed frequency band, and the microphone collects the resonance wave data and stores the data in the built-in memory card of the processor. In the experiment, audio data with tags of 0.6m, 0.8m, 1.0m... For the original one-dimensional time domain waveform signal, filtering processing such as Gaussian average filtering and median filtering can be performed, and then min-max normalization processing is performed.

步骤2:特征提取Step 2: Feature Extraction

根据相关领域的先验知识和专家经验,对原始信号做短时傅里叶变换(STFT)处理,将步骤1处理后的一维时域波形信号转换到具有二维结构的时频域的频谱图形式。提取频谱图的均值特征、方差特征、积分特征等能够反映频域信号特性的特征。短时傅里叶变换(STFT)的数学公式如下:According to prior knowledge and expert experience in related fields, the original signal is processed by short-time Fourier transform (STFT), and the one-dimensional time-domain waveform signal processed in step 1 is converted into a time-frequency domain spectrum with a two-dimensional structure Graphical form. The mean value, variance, and integral features of the spectrogram are extracted, which can reflect the characteristics of the frequency domain signal. The mathematical formula for the Short Time Fourier Transform (STFT) is as follows:

Figure BDA0002578547610000041
Figure BDA0002578547610000041

其中,y(n)为音频信号,g(n)为窗函数。f为频率,t为时间,e、π分别是自然对数底数和圆周率,二者均是常数。图3表示麦克风采集的标签为10的时域波形图及经过短时傅里叶变换后的时频图。Among them, y(n) is the audio signal, and g(n) is the window function. f is the frequency, t is the time, e and π are the natural logarithmic base and pi respectively, both of which are constants. Figure 3 shows the time-domain waveform graph with the label 10 collected by the microphone and the time-frequency graph after short-time Fourier transform.

步骤3:构建卷积神经网络模型Step 3: Build the Convolutional Neural Network Model

建立的三层卷积神经网络模型。设计的卷积神经网络结构及其超参数如表1所示。The established three-layer convolutional neural network model. The designed convolutional neural network structure and its hyperparameters are shown in Table 1.

表1:CNN网络结构体系Table 1: CNN network architecture

Figure BDA0002578547610000051
Figure BDA0002578547610000051

其中,“f”表示卷积核,“s”为步长,“p”为填充参数。Among them, "f" represents the convolution kernel, "s" is the stride, and "p" is the padding parameter.

步骤4:卷积神经网络的训练和优化Step 4: Training and Optimization of Convolutional Neural Networks

(1)利用步骤2获取的数据集,在pytorch深度学习框架下对卷积神经网络进行训练及优化,得到可以预测液位高度的卷积神经网络模型。本实施例中,液位的高度为连续值,故构建基于卷积神经网络的回归模型。并采用均方误差(MSE)度预测值与真实值间差异。(1) Using the data set obtained in step 2, the convolutional neural network is trained and optimized under the pytorch deep learning framework, and a convolutional neural network model that can predict the liquid level height is obtained. In this embodiment, the height of the liquid level is a continuous value, so a regression model based on a convolutional neural network is constructed. The mean square error (MSE) was used to measure the difference between the predicted value and the true value.

(2)神经网络对生成的数据集进行训练和测试,深度学习的效果评估主要依赖训练损失曲线和正确率曲线。图4是学习率为0.001、20次迭代的训练损失函数曲线。(2) The neural network trains and tests the generated data set, and the effect evaluation of deep learning mainly depends on the training loss curve and the correct rate curve. Figure 4 is the training loss function curve with a learning rate of 0.001 and 20 iterations.

(3)深度卷积神经网络的评估与改进(3) Evaluation and Improvement of Deep Convolutional Neural Networks

基于分类准确率,对上述深度卷积神经网络模型性能进行评估。Based on the classification accuracy, the performance of the above deep convolutional neural network model is evaluated.

调整模型超参数(卷积层数、卷积核数量、非线性激活函数类型、学习率等),重新训练模型,评估其性能。Adjust the model hyperparameters (number of convolution layers, number of convolution kernels, type of nonlinear activation function, learning rate, etc.), retrain the model, and evaluate its performance.

根据评估结果,选出兼顾准确率和网络复杂度(参数量和计算量)的结构作为最终模型,提升模型表示能力和泛化能力。表2是从训练集中随机选取五组数据并输出预测结果,表3是从测试集中随机选取五组数据并输出预测结果。According to the evaluation results, a structure that takes into account the accuracy and network complexity (parameter amount and calculation amount) is selected as the final model to improve the model representation ability and generalization ability. Table 2 randomly selects five groups of data from the training set and outputs the prediction results, and Table 3 randomly selects five groups of data from the test set and outputs the prediction results.

表2:训练集预测结果Table 2: Training set prediction results

Figure BDA0002578547610000061
Figure BDA0002578547610000061

表3:测试集预测结果Table 3: Test set prediction results

Figure BDA0002578547610000062
Figure BDA0002578547610000062

Claims (1)

1.一种基于短时傅里叶变换和卷积神经网络的液位预测方法,其特征在于下步骤:1. a liquid level prediction method based on short-time Fourier transform and convolutional neural network, is characterized in that following steps: 步骤(1)、获取数据集Step (1), get the dataset 通过声共振液位测量仪器进行数据采集;该液位测量仪器的扬声器发出1000到2500Hz正弦波,麦克风实时采集传回共振波并将其存储;从已测得共振波数据中选取上千组完整、无扰动的共振波,并将其对应的测量长度作为数据标签,从而构建数据集;The data is collected by the acoustic resonance liquid level measuring instrument; the loudspeaker of the liquid level measuring instrument emits 1000 to 2500 Hz sine waves, and the microphone collects and returns the resonance waves in real time and stores them; select thousands of complete sets from the measured resonance wave data , undisturbed resonant waves, and use their corresponding measurement lengths as data labels to construct a data set; 步骤(2)、特征提取Step (2), feature extraction 对数据集所有组共振波信号进行短时傅里叶变换,将一维时域波形信号转换成二维频谱图形式;Perform short-time Fourier transform on all groups of resonant wave signals in the dataset, and convert one-dimensional time-domain waveform signals into two-dimensional spectrogram form; 步骤(3)、构建卷积神经网络Step (3), build a convolutional neural network 搭建一个三层卷积神经网络模型;选用Adam作为优化算法,选用MSE作为目标函数;Build a three-layer convolutional neural network model; select Adam as the optimization algorithm and MSE as the objective function; 所建立的卷积神经网络模型中每一层网络都包含卷积层、池化层、非线性激活层;Each layer of the network in the established convolutional neural network model includes a convolutional layer, a pooling layer, and a nonlinear activation layer; 第一层卷积神经网络卷积层Conv1的卷积核大小为5×5,通道数为6,步长为1,最大值池化层核大小为2,步长为1;The convolution kernel size of the first layer of convolutional neural network convolution layer Conv1 is 5 × 5, the number of channels is 6, the stride size is 1, the maximum pooling layer kernel size is 2, and the stride size is 1; 第二层卷积神经网络卷积层Conv2的卷积核大小为5×5,步长为1,通道数为16,最大值池化层核大小为2,步长为1;The convolution kernel size of the second layer of convolutional neural network convolution layer Conv2 is 5 × 5, the stride is 1, the number of channels is 16, the maximum pooling layer kernel size is 2, and the stride is 1; 第三层卷积神经网络卷积层Conv3卷积核大小为5×5,步长为1,通道数为120,最大值池化层核大小为2×2,步长为1,The third layer of convolutional neural network convolution layer Conv3 convolution kernel size is 5 × 5, the stride is 1, the number of channels is 120, the maximum pooling layer kernel size is 2 × 2, the stride is 1, 全连接层Fc1隐藏节点个数为120;全连接层Fc2隐藏节点个数为84;全连接层Fc3隐藏结点个数为1.The number of hidden nodes in the fully connected layer Fc1 is 120; the number of hidden nodes in the fully connected layer Fc2 is 84; the number of hidden nodes in the fully connected layer Fc3 is 1. 步骤(4)卷积神经网络的训练及评估Step (4) Training and Evaluation of Convolutional Neural Networks 将数据集中所有数据按8:1:1分成训练集、验证集、测试集;将训练集数据输入到步骤3建立的模型中,验证集对在测试集基础上训练的模型进行评估,然后将测试集输入到已经训练好的卷积神经网络当中,输出预测到的液位高度。Divide all the data in the dataset into training set, validation set, and test set according to 8:1:1; input the training set data into the model established in step 3, and the validation set evaluates the model trained on the basis of the test set, and then the The test set is input into the trained convolutional neural network, and the predicted liquid level height is output.
CN202010660942.8A 2020-07-10 2020-07-10 A liquid level prediction method based on short-time Fourier transform and convolutional neural network Active CN111811617B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010660942.8A CN111811617B (en) 2020-07-10 2020-07-10 A liquid level prediction method based on short-time Fourier transform and convolutional neural network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010660942.8A CN111811617B (en) 2020-07-10 2020-07-10 A liquid level prediction method based on short-time Fourier transform and convolutional neural network

Publications (2)

Publication Number Publication Date
CN111811617A CN111811617A (en) 2020-10-23
CN111811617B true CN111811617B (en) 2022-06-14

Family

ID=72842242

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010660942.8A Active CN111811617B (en) 2020-07-10 2020-07-10 A liquid level prediction method based on short-time Fourier transform and convolutional neural network

Country Status (1)

Country Link
CN (1) CN111811617B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112649065B (en) * 2020-12-22 2024-08-20 上海海能信息科技股份有限公司 Method and device for acquiring liquid level value based on metallurgical eddy current liquid level signal
CN112580588B (en) * 2020-12-29 2024-01-12 西北工业大学 Intelligent flutter signal identification method based on empirical mode decomposition
CN113033894B (en) * 2021-03-24 2023-05-02 南方电网数字电网研究院有限公司 Daily electricity quantity prediction method, device, computer equipment and storage medium
CN113361819B (en) * 2021-07-08 2023-04-07 武汉中科牛津波谱技术有限公司 Linear prediction method and device
CN113607097B (en) * 2021-08-06 2023-02-17 浙江大学 Scouring depth monitoring device and method based on acoustic test
CN119509650A (en) * 2025-01-16 2025-02-25 南京颐兰贝生物科技有限责任公司 A method for in vitro diagnostic liquid level detection based on 60GHz on-chip antenna millimeter wave radar

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10650806B2 (en) * 2018-04-23 2020-05-12 Cerence Operating Company System and method for discriminative training of regression deep neural networks
CN109444863A (en) * 2018-10-23 2019-03-08 广西民族大学 A kind of estimation method of the narrowband ultrasonic echo number based on convolutional neural networks
CN110866448A (en) * 2019-10-21 2020-03-06 西北工业大学 Flutter signal analysis method based on convolutional neural network and short-time Fourier transform
CN111220958B (en) * 2019-12-10 2023-05-26 西安宁远电子电工技术有限公司 Radar target Doppler image classification and identification method based on one-dimensional convolutional neural network

Also Published As

Publication number Publication date
CN111811617A (en) 2020-10-23

Similar Documents

Publication Publication Date Title
CN111811617B (en) A liquid level prediction method based on short-time Fourier transform and convolutional neural network
Patton et al. AutoMOS: Learning a non-intrusive assessor of naturalness-of-speech
CN106537136A (en) Virtual multiphase flow metering and sand detection
CN113049684A (en) Ultrasonic lamb wave defect signal identification method based on variational modal decomposition
CN115062670A (en) Pipeline leak detection method and system based on MPA-VMD denoising
Wang et al. Graph-in-graph convolutional network for ultrasonic guided wave-based damage detection and localization
Shen et al. Matched-field geoacoustic inversion based on radial basis function neural network
CN114117912B (en) A sea clutter modeling and suppression method driven by both data and models
Olivieri et al. Near-field acoustic holography analysis with convolutional neural networks
Rai et al. A hybrid physics-assisted machine-learning-based damage detection using Lamb wave
Zhang et al. Attention-based interpretable prototypical network towards small-sample damage identification using ultrasonic guided waves
CN117784250A (en) A method for inversion of seafloor acoustic parameters based on model-independent element learning algorithm
Yoon et al. Deep learning-based high-frequency source depth estimation using a single sensor
CN117309079B (en) Ultrasonic flying time measuring method, device, equipment and medium based on time difference method
Rautela et al. Deep learning frameworks for wave propagation-based damage detection in 1d-waveguides
Olivieri et al. Near field acoustic holography on arbitrary shapes using convolutional neural network
Chen et al. A technique based on nonlinear Hanning-windowed chirplet model and genetic algorithm for parameter estimation of Lamb wave signals
CN115326782A (en) Method for detecting fish brittleness of tilapia mossambica by using Raman spectrum
Shpigler et al. Detection of overlapping ultrasonic echoes with deep neural networks
CN118623236A (en) Pipeline leakage detection method, device, equipment and computer storage medium
CN119395150A (en) Nondestructive testing system and method for differential pressure flowmeter welds based on ultrasonic phased array
CN119295042A (en) Pipeline repair method and system based on defect detection
Feng Condition Classification in Underground Pipes Based on Acoustical Characteristics. Acoustical characteristics are used to classify the structural and operational conditions in underground pipes with advanced signal classification methods
Singh et al. Audio tagging using linear noise modelling layer
CN117540128A (en) A prediction method for normal wave dispersion curve of shallow sea waveguide based on deep learning

Legal Events

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