CN116189794A - Rammed earth water salt content measurement method - Google Patents

Rammed earth water salt content measurement method Download PDF

Info

Publication number
CN116189794A
CN116189794A CN202310139327.6A CN202310139327A CN116189794A CN 116189794 A CN116189794 A CN 116189794A CN 202310139327 A CN202310139327 A CN 202310139327A CN 116189794 A CN116189794 A CN 116189794A
Authority
CN
China
Prior art keywords
salt content
particle
rammed earth
soil
water
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.)
Pending
Application number
CN202310139327.6A
Other languages
Chinese (zh)
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.)
Nanjing University of Science and Technology
Original Assignee
Nanjing University of Science and Technology
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 Nanjing University of Science and Technology filed Critical Nanjing University of Science and Technology
Priority to CN202310139327.6A priority Critical patent/CN116189794A/en
Publication of CN116189794A publication Critical patent/CN116189794A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16CCOMPUTATIONAL CHEMISTRY; CHEMOINFORMATICS; COMPUTATIONAL MATERIALS SCIENCE
    • G16C20/00Chemoinformatics, i.e. ICT specially adapted for the handling of physicochemical or structural data of chemical particles, elements, compounds or mixtures
    • G16C20/20Identification of molecular entities, parts thereof or of chemical compositions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/004Artificial life, i.e. computing arrangements simulating life
    • G06N3/006Artificial life, i.e. computing arrangements simulating life based on simulated virtual individual or collective life forms, e.g. social simulations or particle swarm optimisation [PSO]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16CCOMPUTATIONAL CHEMISTRY; CHEMOINFORMATICS; COMPUTATIONAL MATERIALS SCIENCE
    • G16C20/00Chemoinformatics, i.e. ICT specially adapted for the handling of physicochemical or structural data of chemical particles, elements, compounds or mixtures
    • G16C20/70Machine learning, data mining or chemometrics

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Computing Systems (AREA)
  • Artificial Intelligence (AREA)
  • Software Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Evolutionary Computation (AREA)
  • Data Mining & Analysis (AREA)
  • Health & Medical Sciences (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Computational Linguistics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Mathematical Physics (AREA)
  • Crystallography & Structural Chemistry (AREA)
  • Chemical & Material Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Biomedical Technology (AREA)
  • Biophysics (AREA)
  • Molecular Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Medical Informatics (AREA)
  • Databases & Information Systems (AREA)
  • Investigating Or Analyzing Materials By The Use Of Electric Means (AREA)

Abstract

The invention discloses a method for measuring the water salt content of rammed earth, which comprises the following steps: initializing a population, compacting the population scale in a water and salt content prediction model, establishing a generalized regression network to predict the water and salt content of the compacted soil, calculating the root mean square error between the actual value and the predicted value of the water content or the salt content as the fitness of particles, updating the state of the particles, executing crossover and mutation operations, judging whether convergence conditions are met, and predicting the water and salt content of the compacted soil. The invention utilizes the generalized regression neural network optimized by the improved GA-PSO algorithm, can indirectly obtain the water content and the salt content of the rammed soil by measuring the capacitance value, the conductivity, the soil temperature and the soil density parameters of the rammed soil, avoids the defects of field sampling and time and labor waste in laboratory detection in laboratory measurement, greatly improves the modeling speed compared with the traditional GA algorithm, avoids the problem of sinking into a local optimal solution compared with the traditional PSO algorithm, and is a method with better comprehensive performance.

Description

一种夯土水盐含量测量方法A method for measuring water-salt content of rammed earth

技术领域Technical Field

本发明属于土壤测量技术领域,具体是一种夯土含水率与含盐量的快速测量方法。The invention belongs to the technical field of soil measurement, and in particular is a method for quickly measuring the moisture content and salt content of rammed soil.

背景技术Background Art

土遗址是一种土质建筑的遗迹,有着很高的历史、文化价值。由于土遗址多处于自然露天环境下,容易受到各种人为、自然因素的破坏。针对土遗址常见的裂缝、掏蚀、坍塌等病害,通常采用物理加固法对土遗址进行加固、修复等保护措施。其中,利用夯筑支顶进行的支顶加固是常用且有效的方法,可以有效地稳定原结构,其采用的建筑材料是经过夯筑工艺制作的与原遗址相近的夯土,因此一体性好,符合土遗址保护加固中保持现状、不破坏外观的原则。为了监测夯筑支顶的加固效果,需要对其含水率、含盐量进行测量。Earthen sites are the remains of earthen buildings with high historical and cultural value. As most earthen sites are located in natural open-air environments, they are easily damaged by various human and natural factors. In view of the common cracks, erosion, collapse and other diseases of earthen sites, physical reinforcement methods are usually used to reinforce and repair earthen sites. Among them, the top reinforcement using rammed earth is a common and effective method that can effectively stabilize the original structure. The building materials used are rammed earth similar to the original site made by ramming technology, so they have good integrity and meet the principle of maintaining the status quo and not destroying the appearance in the protection and reinforcement of earthen sites. In order to monitor the reinforcement effect of the rammed earth top, it is necessary to measure its moisture content and salt content.

目前对夯土的含水率与含盐量的测量方法仍以传统的实验室测量(烘干法与浸泡液测量法)为主,烘干法是一种是根据土样烘干前后质量的变化确定含水率的测量方法,浸泡液测量法原理是将土样配制成浸提液,通过计算电导率来推算土壤含盐量。这两种方法都不能实现参数的快速实时的现场测量。由于夯土作为一种土壤,其许多特性与农耕土壤类似,但也有许多不同之处,例如夯土为保证强度刚度等需要添加生石灰等添加剂、夯土的密度通常符合一定的标准、夯土建筑的测量要求一定的连续性、实时性等。在使用介电特性测量法测量夯土的含水率与含盐量时,需要充分考虑电容值、电导率、土壤温度、土壤密度等参数,达到对含水率与含盐量的准确预测,因此需要建立以上参数对于含水率与含盐量的多元回归算法。At present, the measurement methods for the moisture content and salt content of rammed earth are still mainly based on traditional laboratory measurements (drying method and immersion liquid measurement method). The drying method is a measurement method that determines the moisture content based on the change in mass of the soil sample before and after drying. The principle of the immersion liquid measurement method is to prepare the soil sample into an extract and calculate the soil salt content by calculating the conductivity. Neither of these two methods can achieve fast and real-time on-site measurement of parameters. Since rammed earth is a kind of soil, many of its characteristics are similar to those of agricultural soil, but there are also many differences. For example, rammed earth needs to add additives such as quicklime to ensure strength and stiffness, the density of rammed earth usually meets certain standards, and the measurement of rammed earth buildings requires certain continuity and real-time performance. When using the dielectric property measurement method to measure the moisture content and salt content of rammed earth, it is necessary to fully consider parameters such as capacitance, conductivity, soil temperature, and soil density to achieve accurate prediction of moisture content and salt content. Therefore, it is necessary to establish a multivariate regression algorithm for the above parameters for moisture content and salt content.

发明内容Summary of the invention

本发明的目的在于提供一种夯土含水率与含盐量测量的多元回归算法,以实现夯土含水率与含盐量的快速、准确测量与预测。The object of the present invention is to provide a multivariate regression algorithm for measuring the moisture content and salt content of rammed earth, so as to achieve rapid and accurate measurement and prediction of the moisture content and salt content of rammed earth.

实现本发明目的的技术解决方案为:The technical solution to achieve the purpose of the present invention is:

一种夯土水盐含量测量方法,包括以下步骤:A method for measuring water-salt content of rammed earth comprises the following steps:

步骤1、初始化种群,设定GA-PSO优化的GRNN模型中的种群规模;Step 1: Initialize the population and set the population size in the GRNN model optimized by GA-PSO;

步骤2、建立广义回归网络模型,将夯土的电容值、电导率、土壤温度、土壤密度作为输入参数,夯土的预测含水率与含盐量作为输出参数;Step 2: Establish a generalized regression network model, taking the capacitance, conductivity, soil temperature, and soil density of the rammed earth as input parameters, and the predicted moisture content and salt content of the rammed earth as output parameters;

步骤3、计算每个粒子的适应度:Step 3: Calculate the fitness of each particle:

将夯土含水率或含盐量的实际值与预测值之间的均方根误差作为粒子的适应度;The root mean square error between the actual value and the predicted value of the rammed soil moisture content or salt content is taken as the fitness of the particle;

步骤4、更新粒子的状态:Step 4: Update the state of the particle:

更新粒子群算法中每个粒子的速度与位移;Update the velocity and displacement of each particle in the particle swarm algorithm;

步骤5、执行交叉与变异操作:Step 5: Perform crossover and mutation operations:

对粒子位置与速度的更新引入交叉操作,对粒子位置与速度的更新引入变异操作;Introduce crossover operation to the update of particle position and velocity, and introduce mutation operation to the update of particle position and velocity;

步骤6、判断是否满足收敛条件,如果优化后的广义回归网络模型达到精度要求,则建立广义回归网络,对夯土含水率与含盐量进行预测;若精度未达到要求,则返回步骤2;Step 6: Determine whether the convergence condition is met. If the optimized generalized regression network model meets the accuracy requirement, a generalized regression network is established to predict the moisture content and salt content of the rammed earth. If the accuracy does not meet the requirement, return to step 2.

步骤7、使用优化后的广义回归网络对夯土含水率与含盐量进行预测。Step 7: Use the optimized generalized regression network to predict the moisture content and salt content of rammed earth.

本发明与现有技术相比,其显著优点是:Compared with the prior art, the present invention has the following significant advantages:

(1)通过广义回归神经网络模型,能够实现夯土含水率与含盐量的反演预测。通过测量夯土的电容值、电导率、土壤温度、土壤密度参数,可以间接得到夯土的含水率与含盐量,避免了实验室测量法需要现场取样并在实验室检测费时费力的缺点,可以现场即时得出含水率与含盐量。(1) The generalized regression neural network model can be used to inversely predict the moisture content and salt content of rammed soil. By measuring the capacitance, conductivity, soil temperature, and soil density parameters of the rammed soil, the moisture content and salt content of the rammed soil can be indirectly obtained, avoiding the disadvantages of the laboratory measurement method that requires on-site sampling and time-consuming and laborious laboratory testing, and the moisture content and salt content can be obtained instantly on-site.

(2)利用改进的GA-PSO算法优化的广义回归神经网络,提高了回归模型的精确度,相较于单独的GA算法大大提高了建模的速度,相较于单独的PSO算法避免了陷入局部最优解的问题,是一种综合性能较好的方法。(2) The generalized regression neural network optimized by the improved GA-PSO algorithm improves the accuracy of the regression model. Compared with the single GA algorithm, it greatly improves the modeling speed. Compared with the single PSO algorithm, it avoids the problem of falling into the local optimal solution. It is a method with better comprehensive performance.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1为GA-PSO优化的GRNN算法流程图。Figure 1 is the flow chart of the GRNN algorithm optimized by GA-PSO.

图2为GRNN网络结构图。Figure 2 is a diagram of the GRNN network structure.

图3为PSO算法中粒子为粒子更新示意图。FIG3 is a schematic diagram of particle-to-particle update in the PSO algorithm.

图4是含水率测量数据与预测数据对比图。Figure 4 is a comparison chart of moisture content measurement data and predicted data.

图5是含盐量测量数据与预测数据对比图。Figure 5 is a comparison chart of the measured data and the predicted data of salt content.

具体实施方式DETAILED DESCRIPTION

下面结合附图及具体实施例对本发明做进一步的介绍。The present invention is further described below in conjunction with the accompanying drawings and specific embodiments.

本实施例的一种夯土水盐含量测量方法,包括以下步骤:A method for measuring the water-salt content of rammed earth in this embodiment includes the following steps:

步骤1、初始化种群,设定算法模型中的种群规模。Step 1: Initialize the population and set the population size in the algorithm model.

粒子群算法(PSO)是一种灵感来自于鸟群捕食行为的一种寻优算法,具有收敛速度快、其基本思想是通过群体与个体之间的协作与信息共享来寻找最优解。粒子群算法将每个可行解抽象为一个个粒子点,并延伸到N维空间,这样得到每个个体在N维空间中的位置矢量Di=(d1,d2,...,dN)和飞行速度矢量Vi=(v1,v2,...,vN)。每个粒子都有一个适应度,其值由目标函数决定。粒子根据条件在空间中寻找位置,调整自己的位置矢量以及飞行速度矢量。在这个过程中,每个粒子会产生个体历史最优解p_best并且通过沟通获得种群中的全局最优解g_best,依据p_best与g_best继续调整自己的位置矢量与速度方矢量,最终达到最优解。Particle swarm optimization (PSO) is an optimization algorithm inspired by the predation behavior of bird flocks. It has a fast convergence speed and its basic idea is to find the optimal solution through collaboration and information sharing between groups and individuals. Particle swarm optimization abstracts each feasible solution into a particle point and extends it to N-dimensional space, so that each individual's position vector Di = ( d1 , d2 , ..., dN ) and flight speed vector Vi = ( v1 , v2 , ..., vN ) in N-dimensional space are obtained. Each particle has a fitness, whose value is determined by the objective function. Particles find positions in space according to conditions and adjust their position vectors and flight speed vectors. In this process, each particle will generate an individual historical optimal solution p_best and obtain the global optimal solution g_best in the population through communication. According to p_best and g_best, they continue to adjust their position vectors and speed vectors to finally reach the optimal solution.

步骤2、建立广义回归网络模型对夯土水盐含量进行预测Step 2: Establish a generalized regression network model to predict the water-salt content of rammed earth

广义回归神经网络(general regression neural network,GRNN)是一种建立在数理统计基础上的径向基神经网络,通常用于对非线性函数进行回归逼近,其训练速度快,远小于BP神经网络,并且在小样本的条件下拥有更高的准确度。如图2所示,GRNN网络由四层结构组成,包括输入层、模式层、求和层、输出层。其中输入层神经元数量与训练样本中的向量维数相同,直接将输入向量X输出给模式层。在用夯土水盐含量的预测中,输入层参数设定为夯土的电容值、电导率、土壤温度、土壤密度,输出层为夯土的含水率与含盐量。The generalized regression neural network (GRNN) is a radial basis neural network based on mathematical statistics. It is usually used for regression approximation of nonlinear functions. It has a fast training speed, much smaller than the BP neural network, and has higher accuracy under the condition of small samples. As shown in Figure 2, the GRNN network consists of a four-layer structure, including an input layer, a pattern layer, a summation layer, and an output layer. The number of neurons in the input layer is the same as the vector dimension in the training sample, and the input vector X is directly output to the pattern layer. In the prediction of the water and salt content of rammed soil, the input layer parameters are set to the capacitance, conductivity, soil temperature, and soil density of the rammed soil, and the output layer is the water content and salt content of the rammed soil.

GRNN的理论基础是非线性回归分析,假设x,y为两个随机变量,x0为x的观测值,x,y的联合概率密度为f(x,y),则有:The theoretical basis of GRNN is nonlinear regression analysis. Assuming x and y are two random variables, x0 is the observed value of x, and the joint probability density of x and y is f(x, y), then:

Figure BDA0004087023530000031
Figure BDA0004087023530000031

其中

Figure BDA0004087023530000032
为输入为x0条件下y的预测输出,f(x0,y)为x0与y的联合概率密度。in
Figure BDA0004087023530000032
is the predicted output of y under the condition that the input is x0 , and f( x0 , y) is the joint probability density of x0 and y.

Figure BDA0004087023530000033
表示样本数据集,其中n为样本总数,xi,yi为第i个样本的观察值。对样本数据集应用Parzen非参数估计,可以得到估算概率密度函数:use
Figure BDA0004087023530000033
Represents a sample data set, where n is the total number of samples, and x i , y i are the observed values of the i-th sample. Applying Parzen nonparametric estimation to the sample data set, we can get the estimated probability density function:

Figure BDA0004087023530000034
Figure BDA0004087023530000034

其中p为随机变量x的维数,σ为高斯函数的宽度系数(标准差),也称为光滑因子。Where p is the dimension of the random variable x, and σ is the width coefficient (standard deviation) of the Gaussian function, also known as the smoothing factor.

Figure BDA0004087023530000035
带入式(1),得:Will
Figure BDA0004087023530000035
Substituting into formula (1), we get:

Figure BDA0004087023530000041
Figure BDA0004087023530000041

模式层的神经元数量与训练样数相同,即每个神经元都有一个训练样本对应,在模式层会对测试样本计算其与所有训练样本的Euclid距离,模式层的传递函数为:The number of neurons in the pattern layer is the same as the number of training samples, that is, each neuron has a corresponding training sample. In the pattern layer, the Euclid distance between the test sample and all training samples is calculated. The transfer function of the pattern layer is:

Figure BDA0004087023530000042
Figure BDA0004087023530000042

其中X为网络输入向量,Xi为第i个神经元对应的训练样本;n为训练样本的个数,也是模式层神经元的个数。Where X is the network input vector, Xi is the training sample corresponding to the i-th neuron; n is the number of training samples, which is also the number of neurons in the pattern layer.

求和层中使用两种类型的神经元进行求和,第一种计算直接将模式层输出进行求和,公式为:Two types of neurons are used in the summation layer for summation. The first calculation directly sums the output of the pattern layer. The formula is:

Figure BDA0004087023530000043
Figure BDA0004087023530000043

第二种计算是对模式层输出进行加权求和,将模式层中的第r个神经元与求和层中的第t个分子的连接权值乘以第r个模式层的神经元并求和,公式为:The second calculation is to perform a weighted summation on the output of the pattern layer. The connection weight between the rth neuron in the pattern layer and the tth molecule in the summation layer is multiplied by the neuron in the rth pattern layer and summed. The formula is:

Figure BDA0004087023530000044
Figure BDA0004087023530000044

这两种类型的神经元传递函数分别为:The transfer functions of these two types of neurons are:

Figure BDA0004087023530000045
Figure BDA0004087023530000045

Figure BDA0004087023530000046
Figure BDA0004087023530000046

式中SD为权值为1时的传递函数,SNt为中第t个神经元的传递函数,wrt为模式层中第r个神经元与求合层中第t个神经元中的连接权值,s为模式层加权求和神经元的个数。Where S D is the transfer function when the weight is 1, S Nt is the transfer function of the t-th neuron, wrt is the connection weight between the r-th neuron in the pattern layer and the t-th neuron in the summation layer, and s is the number of weighted summation neurons in the pattern layer.

输出层神经元输出为:The output of the output layer neuron is:

Figure BDA0004087023530000047
Figure BDA0004087023530000047

其中q为输出向量的维数,在夯土水盐含量的预测算法中,q为2。Where q is the dimension of the output vector. In the prediction algorithm of water-salt content of rammed earth, q is 2.

在本次回归模型中,输入层参数为测量模块测得的电容值、电导率、温度以及夯土密度,输出层为含水率与含盐量。由于每个观测值Yi的权重因子为相对应的样本Xi与X之间的Euclid距离平方的指数。因此预测值的准确与否很大程度上取决于光滑因子σ的取值,当σ很大时,-(X-Xr)T(X-Xr)/2σ2趋近于0,因此预测值约等于训练样本因变量的平均值;而σ趋近于0时,exp[-(X-Xr)T(X-Xr)/2σ2],趋近于0,Y与训练样本的距离非常接近,只有当预测点在训练样本中时,预测值会有较好的精度,而当预测点不在训练样本中时,预测效果就会很差,即网络泛化能力差。因此,选取合适的光滑因子对于广义回归神经网络来说很重要,关乎模型的精度和泛化能力。为了选取最适合的光滑因子,传统的经验法准确度低、耗时长,因此采用改进的GA-PSO算法对光滑因子进行优化。In this regression model, the input layer parameters are the capacitance, conductivity, temperature and rammed earth density measured by the measurement module, and the output layer is the moisture content and salt content. Since the weight factor of each observation Yi is the exponent of the square of the Euclid distance between the corresponding sample Xi and X. Therefore, the accuracy of the predicted value depends largely on the value of the smooth factor σ. When σ is very large, -(XX r ) T (XX r )/2σ 2 approaches 0, so the predicted value is approximately equal to the average value of the dependent variable of the training sample; when σ approaches 0, exp[-(XX r ) T (XX r )/2σ 2 ] approaches 0, and the distance between Y and the training sample is very close. Only when the predicted point is in the training sample, the predicted value will have a good accuracy, and when the predicted point is not in the training sample, the prediction effect will be very poor, that is, the network generalization ability is poor. Therefore, selecting a suitable smooth factor is very important for the generalized regression neural network, which is related to the accuracy and generalization ability of the model. In order to select the most suitable smoothing factor, the traditional empirical method has low accuracy and is time-consuming, so the improved GA-PSO algorithm is used to optimize the smoothing factor.

步骤3、计算每个粒子的适应度Step 3: Calculate the fitness of each particle

在预测夯土的含水率或含盐量时,将含水率或含盐量的实际值与预测值之间的均方根误差(Root Mean Square Error,RMSE)作为粒子的适应度,计算每个粒子的适应度。均方根误差的计算方法如下:When predicting the moisture content or salt content of rammed soil, the root mean square error (RMSE) between the actual value of the moisture content or salt content and the predicted value is used as the fitness of the particle, and the fitness of each particle is calculated. The root mean square error is calculated as follows:

Figure BDA0004087023530000051
Figure BDA0004087023530000051

其中

Figure BDA0004087023530000052
为第i个样本的预测值,yi为第i个样本的实际值。in
Figure BDA0004087023530000052
is the predicted value of the ith sample, and yi is the actual value of the ith sample.

步骤4、更新粒子的状态Step 4: Update the state of the particle

粒子群算法中每个粒子的速度与位移分别按如下两式进行:The speed and displacement of each particle in the particle swarm algorithm are calculated according to the following two formulas:

Figure BDA0004087023530000053
Figure BDA0004087023530000053

Figure BDA0004087023530000054
Figure BDA0004087023530000054

式中,i=1,2,…M,M是粒子群中粒子的总数;

Figure BDA0004087023530000055
分别是第i个粒子在第k轮和第k+1轮迭代的速度矢量;
Figure BDA0004087023530000056
是分别是第i个粒子在第k轮和第k+1轮迭代的位置矢量;
Figure BDA0004087023530000057
是第k轮的个体最优解,
Figure BDA0004087023530000058
是第k轮的群体最优解;ω是惯性因子;r1、r2是介于(0,1)之间的随机数;c1、c2是学习因子。Where i = 1, 2, ... M, M is the total number of particles in the particle group;
Figure BDA0004087023530000055
are the velocity vectors of the i-th particle in the k-th and k+1-th iterations respectively;
Figure BDA0004087023530000056
are the position vectors of the i-th particle in the k-th and k+1-th iterations respectively;
Figure BDA0004087023530000057
is the individual optimal solution in round k,
Figure BDA0004087023530000058
is the optimal solution of the group in the kth round; ω is the inertia factor; r 1 and r 2 are random numbers between (0, 1); c 1 and c 2 are learning factors.

步骤5、执行交叉与变异操作Step 5: Perform crossover and mutation operations

改进的GA-PSO算法中的交叉操作与变异操作与遗传算法中的交叉操作与变异操作类似。The crossover operation and mutation operation in the improved GA-PSO algorithm are similar to those in the genetic algorithm.

步骤5.1、执行交叉操作Step 5.1: Perform crossover operation

对粒子位置与速度的更新引入交叉操作,得粒子的位置与速度更新公式为:The update of particle position and velocity introduces cross operation, and the particle position and velocity update formula is:

Figure BDA0004087023530000061
Figure BDA0004087023530000061

Figure BDA0004087023530000062
Figure BDA0004087023530000062

其中,

Figure BDA0004087023530000063
是分别是第j个粒子在第k轮和第k+1轮迭代的位置矢量;
Figure BDA0004087023530000064
分别是第j个粒子在第k轮和第k+1轮迭代的速度矢量;α1、α2为区间(0,1)的随机数。in,
Figure BDA0004087023530000063
are the position vectors of the jth particle in the kth and k+1th iterations respectively;
Figure BDA0004087023530000064
are the velocity vectors of the jth particle in the kth and k+1th iterations respectively; α 1 and α 2 are random numbers in the interval (0, 1).

步骤5.2、执行变异操作:Step 5.2: Perform mutation operation:

变异操作按照一定的概率对个体进行变异,达到优化个体、丰富群体的目的,同时这也是算法不容易陷入局部最优解的重要原因。变异操作按下式进行:The mutation operation mutates individuals according to a certain probability to achieve the purpose of optimizing individuals and enriching the group. This is also an important reason why the algorithm is not easy to fall into the local optimal solution. The mutation operation is performed as follows:

Figure BDA0004087023530000065
Figure BDA0004087023530000065

式中Pm、P′m分别为变异前后的个体,Pmax、Pmin分别为解空间的上下限,β为变异概率,k为当前迭代次数,mg为总迭代次数。Where P m and P′ m are the individuals before and after mutation, P max and P min are the upper and lower limits of the solution space, β is the mutation probability, k is the current iteration number, and mg is the total iteration number.

步骤6、判断是否满足收敛条件Step 6: Determine whether the convergence conditions are met

如果优化后的GRNN模型达到精度要求,则停止;反之则回到步骤2,需要调整参数继续训练。If the optimized GRNN model meets the accuracy requirements, stop; otherwise, return to step 2 and adjust the parameters to continue training.

步骤7、确定最终GRNN模型并进行预测Step 7: Determine the final GRNN model and make predictions

优化后的GRNN模型即可以对夯土的含水率与含盐量进行预测。The optimized GRNN model can predict the moisture content and salt content of rammed earth.

实施例Example

对自制夯土土样进行数据采集,测量其夯土的电容值、电导率、土壤温度、土壤密度,并使用实验室法测量其含水率与含盐量,对实验所采集到数据使用本专利方法进行预测,并对预测结果与实验室法得到的测量结果进行对比。得到的结果如图4与图5,其中图4是含水率测量数据与预测数据对比,图5是含盐量测量数据与预测数据对比。实验表明,本方法所得到的预测值与测量值之间具有很好的相关性,准确率较高。Data collection was performed on the homemade rammed earth samples to measure the capacitance, conductivity, soil temperature, and soil density of the rammed earth. The moisture content and salt content were measured using the laboratory method. The data collected in the experiment were predicted using the patented method, and the predicted results were compared with the measurement results obtained by the laboratory method. The results obtained are shown in Figures 4 and 5, where Figure 4 is a comparison between the moisture content measurement data and the predicted data, and Figure 5 is a comparison between the salt content measurement data and the predicted data. The experiment shows that the predicted value obtained by this method has a good correlation with the measured value, and the accuracy is high.

Claims (5)

1.一种夯土水盐含量测量方法,其特征在于,包括以下步骤:1. A method for measuring the water-salt content of rammed earth, characterized in that it comprises the following steps: 步骤1、初始化种群,设定GA-PSO优化的GRNN模型中的种群规模;Step 1: Initialize the population and set the population size in the GRNN model optimized by GA-PSO; 步骤2、建立广义回归网络模型,将夯土的电容值、电导率、土壤温度、土壤密度作为输入参数,夯土的预测含水率与含盐量作为输出参数;Step 2: Establish a generalized regression network model, taking the capacitance, conductivity, soil temperature, and soil density of the rammed earth as input parameters, and the predicted moisture content and salt content of the rammed earth as output parameters; 步骤3、计算每个粒子的适应度:Step 3: Calculate the fitness of each particle: 将夯土含水率或含盐量的实际值与预测值之间的均方根误差作为粒子的适应度;The root mean square error between the actual value and the predicted value of the rammed soil moisture content or salt content is taken as the fitness of the particle; 步骤4、更新粒子的状态:Step 4: Update the state of the particle: 更新粒子群算法中每个粒子的速度与位移;Update the velocity and displacement of each particle in the particle swarm algorithm; 步骤5、执行交叉与变异操作:Step 5: Perform crossover and mutation operations: 对粒子位置与速度的更新引入交叉操作,对粒子位置与速度的更新引入变异操作;Introduce crossover operation to the update of particle position and velocity, and introduce mutation operation to the update of particle position and velocity; 步骤6、判断是否满足收敛条件,如果优化后的广义回归网络模型达到精度要求,则建立广义回归网络,对夯土含水率与含盐量进行预测;若精度未达到要求,则返回步骤2;Step 6: Determine whether the convergence condition is met. If the optimized generalized regression network model meets the accuracy requirement, a generalized regression network is established to predict the moisture content and salt content of the rammed earth. If the accuracy does not meet the requirement, return to step 2. 步骤7、使用优化后的广义回归网络对夯土含水率与含盐量进行预测。Step 7: Use the optimized generalized regression network to predict the moisture content and salt content of rammed earth. 2.根据权利要求1所述的夯土水盐含量测量方法,其特征在于,执行交叉与变异操作:具体包括:2. The method for measuring the water-salt content of rammed earth according to claim 1 is characterized in that the crossover and mutation operations are performed: specifically comprising: 执行交叉操作更新公式为:The update formula for performing the crossover operation is:
Figure FDA0004087023500000011
Figure FDA0004087023500000011
Figure FDA0004087023500000012
Figure FDA0004087023500000012
其中,
Figure FDA0004087023500000013
是第j个粒子在第k轮迭代的位置矢量;
Figure FDA0004087023500000014
是第j个粒子在第k轮迭代的速度矢量;α1、α2为区间(0,1)的随机数;
in,
Figure FDA0004087023500000013
is the position vector of the jth particle at the kth iteration;
Figure FDA0004087023500000014
is the velocity vector of the jth particle in the kth iteration; α 1 and α 2 are random numbers in the interval (0,1);
执行变异操作更新公式为:The update formula for performing mutation operation is:
Figure FDA0004087023500000015
Figure FDA0004087023500000015
式中Pm、P′m分别为变异前后的个体,Pmax、Pmin分别为解空间的上下限,β为变异概率,mg为总迭代次数。Where P m and P′ m are the individuals before and after mutation, P max and P min are the upper and lower limits of the solution space, β is the mutation probability, and mg is the total number of iterations.
3.根据权利要求1所述的夯土水盐含量测量方法,其特征在于,建立广义回归网络模型包括:3. The method for measuring water and salt content of rammed earth according to claim 1, characterized in that establishing a generalized regression network model comprises: 设定GRNN网络的光滑因子,输入夯土电容值、电导率、土壤温度、土壤密度,设定输出为夯土含水率与含盐量;对输入层、模式层、求和层、输出层进行计算。Set the smoothing factor of the GRNN network, input the rammed earth capacitance, conductivity, soil temperature, and soil density, and set the output to be the rammed earth moisture content and salt content; calculate the input layer, pattern layer, summation layer, and output layer. 4.根据权利要求1所述的夯土水盐含量测量方法,其特征在于,计算每个粒子的适应度,将含水率或含盐量的实际值与预测值之间的均方根误差RMSE计算方法如下:4. The method for measuring the water and salt content of rammed earth according to claim 1 is characterized in that the fitness of each particle is calculated, and the root mean square error RMSE between the actual value and the predicted value of the water content or salt content is calculated as follows:
Figure FDA0004087023500000021
Figure FDA0004087023500000021
其中
Figure FDA0004087023500000022
为第i个样本的预测值,yi为第i个样本的实际值,n为样本总数。
in
Figure FDA0004087023500000022
is the predicted value of the ith sample, yi is the actual value of the ith sample, and n is the total number of samples.
5.根据权利要求1所述的夯土水盐含量测量方法,其特征在于,更新粒子的状态:5. The method for measuring water-salt content of rammed earth according to claim 1, characterized in that the state of the particles is updated: 如下两式进行:The following two formulas are performed:
Figure FDA0004087023500000023
Figure FDA0004087023500000023
Figure FDA0004087023500000024
Figure FDA0004087023500000024
式中,i=1,2,…M,M是粒子群中粒子的总数;
Figure FDA0004087023500000025
是第i个粒子在第k轮迭代的速度矢量;
Figure FDA0004087023500000026
是第i个粒子在第k轮迭代的位置矢量;
Figure FDA0004087023500000027
是第k轮的个体最优解,
Figure FDA0004087023500000028
是第k轮的群体最优解;ω是惯性因子;r1、r2是介于(0,1)之间的随机数;c1、c2是学习因子。
Where i = 1, 2, ... M, M is the total number of particles in the particle group;
Figure FDA0004087023500000025
is the velocity vector of the i-th particle in the k-th iteration;
Figure FDA0004087023500000026
is the position vector of the i-th particle at the k-th iteration;
Figure FDA0004087023500000027
is the individual optimal solution in round k,
Figure FDA0004087023500000028
is the optimal solution of the group in the kth round; ω is the inertia factor; r 1 and r 2 are random numbers between (0,1); c 1 and c 2 are learning factors.
CN202310139327.6A 2023-02-20 2023-02-20 Rammed earth water salt content measurement method Pending CN116189794A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310139327.6A CN116189794A (en) 2023-02-20 2023-02-20 Rammed earth water salt content measurement method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310139327.6A CN116189794A (en) 2023-02-20 2023-02-20 Rammed earth water salt content measurement method

Publications (1)

Publication Number Publication Date
CN116189794A true CN116189794A (en) 2023-05-30

Family

ID=86437922

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310139327.6A Pending CN116189794A (en) 2023-02-20 2023-02-20 Rammed earth water salt content measurement method

Country Status (1)

Country Link
CN (1) CN116189794A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116660323A (en) * 2023-07-24 2023-08-29 四川省科源工程技术测试中心有限责任公司 Agricultural farmland saline-alkali degree sampling detection device and method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116660323A (en) * 2023-07-24 2023-08-29 四川省科源工程技术测试中心有限责任公司 Agricultural farmland saline-alkali degree sampling detection device and method
CN116660323B (en) * 2023-07-24 2023-11-14 四川省科源工程技术测试中心有限责任公司 Agricultural farmland saline-alkali degree sampling detection device and method

Similar Documents

Publication Publication Date Title
CN111639748B (en) Watershed pollutant flux prediction method based on LSTM-BP space-time combination model
CN110084367B (en) Soil moisture content prediction method based on LSTM deep learning model
CN113887635B (en) A kind of watershed similarity classification method and classification device
CN116721537A (en) Urban short-time traffic flow prediction method based on GCN-IPSO-LSTM combination model
Azar et al. Developing the artificial neural network–evolutionary algorithms hybrid models (ANN–EA) to predict the daily evaporation from dam reservoirs
CN114611804B (en) Corn yield prediction method based on TSO-GRNN combined model
WO2022032874A1 (en) Adversarial neural network-based hydrological parameter calibration method for data region
Arya Azar et al. Developing the artificial neural network–evolutionary algorithms hybrid models (ANN–EA) to predict the daily evaporation from dam reservoirs
CN114462718A (en) CNN-GRU wind power prediction method based on time sliding window
WO2022032873A1 (en) Adversarial neural network-based hydrological parameter calibration method for data-lacking region
Xiong et al. Identification of arch dam mechanical parameters based on sensitivity analysis and Hooke–Jeeves algorithm optimization
CN114219131A (en) Watershed runoff prediction method based on LSTM
CN110245370A (en) A multi-objective mechanical parameter inversion method for high concrete face rockfill dams
CN116189794A (en) Rammed earth water salt content measurement method
CN112215495B (en) A calculation method of pollution source contribution degree based on long short-term memory neural network
CN118171571B (en) Geothermal reservoir stratum fracture network characteristic intelligent inversion method, device, equipment and storage medium
CN114357737A (en) A surrogate optimization calibration method for time-varying parameters of large-scale hydrological models
Ranjan et al. ANN and GRNN-based coupled model for flood inundation mapping of the Punpun River Basin
CN117609714A (en) A hybrid model-based evaluation method for water damage level of toothed groyne dams
CN117709488A (en) Dam seepage prediction method based on RUN-XGBoost
CN117034808A (en) Natural gas pipe network pressure estimation method based on graph attention network
Papadimitropoulos et al. Modeling the influence of environmental factors on concrete evaporation rate
CN116429071A (en) An Intelligent Flood Forecasting Method for Nested Watersheds Based on Runoff Modulus
Izadbakhsh et al. Application of hybrid FFNN-Genetic Algorithm for predicting evaporation in storage dam reservoirs.
CN113673015B (en) Intelligent system construction and parameter identification method for beam column end plate connection node optimization design

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