CN113625560A - Loss rate control method and device for corn harvester, storage medium and equipment - Google Patents

Loss rate control method and device for corn harvester, storage medium and equipment Download PDF

Info

Publication number
CN113625560A
CN113625560A CN202110861876.5A CN202110861876A CN113625560A CN 113625560 A CN113625560 A CN 113625560A CN 202110861876 A CN202110861876 A CN 202110861876A CN 113625560 A CN113625560 A CN 113625560A
Authority
CN
China
Prior art keywords
corn harvester
fuzzy
layer
value
loss rate
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
CN202110861876.5A
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.)
Chinese Academy of Agricultural Mechanization Sciences
Original Assignee
Chinese Academy of Agricultural Mechanization Sciences
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 Chinese Academy of Agricultural Mechanization Sciences filed Critical Chinese Academy of Agricultural Mechanization Sciences
Priority to CN202110861876.5A priority Critical patent/CN113625560A/en
Publication of CN113625560A publication Critical patent/CN113625560A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B13/00Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion
    • G05B13/02Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion electric
    • G05B13/04Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion electric involving the use of models or simulators
    • G05B13/042Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion electric involving the use of models or simulators in which a parameter or coefficient is automatically adjusted to optimise the performance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/043Architecture, e.g. interconnection topology based on fuzzy logic, fuzzy membership or fuzzy inference, e.g. adaptive neuro-fuzzy inference systems [ANFIS]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • 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
    • G06N3/084Backpropagation, e.g. using gradient descent

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • Artificial Intelligence (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Computing Systems (AREA)
  • Biomedical Technology (AREA)
  • Biophysics (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Molecular Biology (AREA)
  • Automation & Control Theory (AREA)
  • Computational Mathematics (AREA)
  • Fuzzy Systems (AREA)
  • Mathematical Analysis (AREA)
  • Pure & Applied Mathematics (AREA)
  • Mathematical Optimization (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Medical Informatics (AREA)
  • Feedback Control In General (AREA)

Abstract

一种玉米收获机损失率控制方法、装置、存储介质与设备,该玉米收获机损失率控制方法包括如下步骤:构建双输入单输出的模糊神经网络控制器,所述模糊神经网络控制器包括前件网络和后件网络;采用遗传算法‑粒子群算法进行离线学习,通过对系统在先运行数据的学习确定所述模糊神经网络控制器中需要学习的权值和隶属度函数中心和宽度;采用BP算法进行在线学习,建立控制器的连接权值,实时检测玉米收获机籽粒回收装置的转速,结合在线学习实时调整控制器中的可调参数,使控制器适应玉米收获机籽粒回收装置的机械性能变化,并跟踪玉米收获率设定值。本发明还提供了相应的玉米收获机损失率控制方法装置、存储介质与设备。

Figure 202110861876

A method, device, storage medium and equipment for controlling the loss rate of a corn harvester. The method for controlling the loss rate of a corn harvester includes the following steps: constructing a dual-input and single-output fuzzy neural network controller, wherein the fuzzy neural network controller includes the following steps: It uses genetic algorithm-particle swarm algorithm for offline learning, and determines the weights and the center and width of the membership function that need to be learned in the fuzzy neural network controller by learning the previous operating data of the system; using The BP algorithm conducts online learning, establishes the connection weight of the controller, detects the rotation speed of the corn harvester grain recovery device in real time, and adjusts the adjustable parameters in the controller in real time in combination with the online learning, so that the controller can adapt to the machinery of the corn harvester grain recovery device. Performance changes and track corn yield setpoints. The invention also provides a corresponding method, device, storage medium and equipment for controlling the loss rate of a corn harvester.

Figure 202110861876

Description

玉米收获机损失率控制方法、装置、存储介质与设备Method, device, storage medium and equipment for controlling loss rate of corn harvester

技术领域technical field

本发明涉及玉米收获机籽粒减损控制技术,特别是一种基于模糊神经网络算法的玉米收获机损失率控制方法、装置、存储介质及终端计算机设备。The invention relates to a corn harvester grain loss control technology, in particular to a corn harvester loss rate control method, device, storage medium and terminal computer equipment based on a fuzzy neural network algorithm.

背景技术Background technique

玉米收获机系统是一个复杂的控制对象,具有非线性、大时滞、强耦合以及时变的特性,且受到很多不确定性因素干扰,如自然环境变化、机械磨损、电机转速或人为因素等,这些因素均会造成玉米收获的损失。其中电机转速可通过算法进行优化,从而减少玉米收获损失。The corn harvester system is a complex control object with nonlinear, large time delay, strong coupling and time-varying characteristics, and is disturbed by many uncertain factors, such as changes in natural environment, mechanical wear, motor speed or human factors, etc. , these factors will cause the loss of corn harvest. The motor speed can be optimized by algorithm, thereby reducing the loss of corn harvest.

智能控制具有自学习和自适应能力,对线性与非线性系统都有较好的控制效果,能很好解决玉米收获机这种复杂系统的控制。其中,神经网络和模糊控制是智能控制两个重要的分支。其中,神经网络是模仿生物神经网络结构和功能的一种运算模型,由大量神经元联结而成,是一种非线性动力学系统。神经网络具备非线性逼近能力、学习能力、自适应能力和容错能力。但是,神经网络不适合表达基于规则的知识。模糊控制以模糊逻辑与推理模拟人类思维并进行知识处理,它是基于语言型控制规则的控制,对动态特性不易掌握或变化显著的控制对象很适用。但是,由于模糊性的增加会丢掉部分信息,且难以进行学习并建立完善的控制规则,缺乏自适应能力。而基于模糊神经网络因其原理简单、适用性强、鲁棒性强而被广泛应用。但是,基于模糊神经网络在控制非线性、时变、耦合以及参数和机构不确定的复杂过程时,表现较差。Intelligent control has the ability of self-learning and self-adaptation, has good control effect on linear and nonlinear systems, and can well solve the control of complex systems such as corn harvesters. Among them, neural network and fuzzy control are two important branches of intelligent control. Among them, the neural network is an operation model that imitates the structure and function of the biological neural network. It is composed of a large number of neurons and is a nonlinear dynamic system. Neural network has nonlinear approximation ability, learning ability, adaptive ability and fault tolerance ability. However, neural networks are not suitable for expressing rule-based knowledge. Fuzzy control simulates human thinking and processes knowledge with fuzzy logic and reasoning. It is based on language-based control rules, and is very suitable for control objects whose dynamic characteristics are difficult to grasp or change significantly. However, due to the increase of ambiguity, part of the information will be lost, and it is difficult to learn and establish perfect control rules, and it lacks self-adaptive ability. The fuzzy neural network is widely used because of its simple principle, strong applicability and strong robustness. However, the performance of fuzzy neural network-based control is poor in controlling complex processes with nonlinear, time-varying, coupling, and uncertain parameters and mechanisms.

发明内容SUMMARY OF THE INVENTION

本发明所要解决的技术问题是针对现有技术的上述问题,提供一种基于模糊神经网络算法的玉米收获机损失率控制方法、装置、存储介质及终端设备,对玉米收获机籽粒回收系统进行实时控制以减少玉米收获损失。The technical problem to be solved by the present invention is aimed at the above-mentioned problems in the prior art, and provides a method, device, storage medium and terminal equipment for controlling the loss rate of a corn harvester based on a fuzzy neural network algorithm. Control to reduce corn harvest losses.

为了实现上述目的,本发明提供了一种玉米收获机损失率控制方法,其中,包括如下步骤:In order to achieve the above purpose, the present invention provides a method for controlling the loss rate of a corn harvester, which comprises the following steps:

S100、构建双输入单输出的模糊神经网络控制器,所述模糊神经网络控制器包括前件网络和后件网络;S100, constructing a dual-input and single-output fuzzy neural network controller, where the fuzzy neural network controller includes an antecedent network and a consequent network;

S200、采用遗传算法-粒子群算法进行离线学习,通过对系统在先运行数据的学习初步确定所述模糊神经网络控制器中需要学习的权值和隶属度函数中心和宽度;以及S200, adopting the genetic algorithm-particle swarm algorithm for offline learning, and preliminarily determining the weights and the center and width of the membership function to be learned in the fuzzy neural network controller by learning the previous operating data of the system; and

S300、采用BP算法进行在线学习,建立所述模糊神经网络控制器的连接权值,实时检测玉米收获机籽粒回收装置的转速,结合在线学习实时调整所述模糊神经网络控制器中的可调参数,使所述模糊神经网络控制器适应所述玉米收获机籽粒回收装置的机械性能变化,并跟踪玉米收获率设定值。S300, using the BP algorithm to perform online learning, establishing the connection weights of the fuzzy neural network controller, detecting the rotation speed of the grain recovery device of the corn harvester in real time, and adjusting the adjustable parameters in the fuzzy neural network controller in real time in combination with the online learning , so that the fuzzy neural network controller adapts to the mechanical performance changes of the corn harvester grain recovery device, and tracks the corn harvest rate set value.

上述的玉米收获机损失率控制方法,其中,所述前件网络为四层网络结构,包括:The above-mentioned method for controlling the loss rate of a corn harvester, wherein the antecedent network is a four-layer network structure, comprising:

输入层,取输入玉米收获机的有功功率偏差和有功功率偏差变化率分别为y1,y2,所述输入层的节点数N1=2,表达式如下:In the input layer, the active power deviation and the active power deviation change rate of the input corn harvester are taken as y 1 and y 2 respectively, and the number of nodes in the input layer is N 1 =2, and the expression is as follows:

Figure BDA0003186018490000021
Figure BDA0003186018490000021

其中,e为跟踪误差,

Figure BDA0003186018490000022
为性能参数变量跟踪误差变化率,c为机械性能变化值,y为机械性能实际检测值。where e is the tracking error,
Figure BDA0003186018490000022
is the change rate of the tracking error of the performance parameter variable, c is the change value of the mechanical property, and y is the actual detection value of the mechanical property.

模糊化层,将输入变量y1、y2分别划分为7个模糊子集{NB,NM,NS,O,PS,PM,PB},作为所述模糊化层的节点,每个节点代表一个语言变量值;它们的隶属度函数均采用高斯型函数,各语言变量的隶属度函数分别为:Fuzzy layer, the input variables y 1 , y 2 are divided into 7 fuzzy subsets {NB, NM, NS, O, PS, PM, PB}, as the nodes of the fuzzy layer, each node represents a The values of linguistic variables; their membership functions are all Gaussian functions, and the membership functions of each linguistic variable are:

Figure BDA0003186018490000023
Figure BDA0003186018490000023

其中,

Figure BDA0003186018490000024
为第一层的输入在相应语言变量值的模糊论域的隶属度函数,yi为输入玉米收获机的有功功率偏差,cij和σij(i=1,2,…,n,j=1,2,…mi)分别为隶属度函数的中心和宽度,n为输入变量个数,mi为输入变量xi的模糊分割数,n=2,m1=m2=7;所述模糊化层的节点数N2=m1+m2=14;in,
Figure BDA0003186018490000024
is the membership function of the input of the first layer in the fuzzy universe of the corresponding linguistic variable value, y i is the active power deviation of the input corn harvester, c ij and σ ij (i=1, 2,...,n,j= 1,2 , _ _ The number of nodes in the fuzzification layer N 2 =m 1 +m 2 =14;

模糊规则计算层,用于匹配模糊规则的前件,计算每条所述模糊规则的适应度:The fuzzy rule calculation layer is used to match the antecedents of the fuzzy rules, and calculate the fitness of each fuzzy rule:

Figure BDA0003186018490000031
Figure BDA0003186018490000031

其中,αm为模糊推理操作的计算结果,

Figure BDA0003186018490000032
为隶属度值,
Figure BDA0003186018490000033
为下一节点隶属度值,j1=j2=1,2,…,7;m=m1×m2=7×7=49,所述模糊规则计算层的节点数N3=49;Among them, α m is the calculation result of the fuzzy inference operation,
Figure BDA0003186018490000032
is the membership value,
Figure BDA0003186018490000033
is the membership degree value of the next node, j 1 =j 2 =1,2,...,7; m=m 1 ×m 2 =7×7=49, the number of nodes in the fuzzy rule calculation layer N 3 =49;

第四层归一化层,用于实现归一化操作;The fourth layer of normalization layer is used to realize the normalization operation;

Figure BDA0003186018490000034
Figure BDA0003186018490000034

其中,

Figure BDA0003186018490000035
为加权系数,αi为加权系数累加,所述归一化层的节点数N4=N3=49。in,
Figure BDA0003186018490000035
is the weighting coefficient, α i is the weighting coefficient accumulation, and the number of nodes in the normalization layer is N 4 =N 3 =49.

上述的玉米收获机损失率控制方法,其中,所述后件网络为三层网络结构,包括:The above-mentioned method for controlling the loss rate of a corn harvester, wherein the latter network is a three-layer network structure, including:

第一层,用于将输入变量传递给下一层,所述第一层共有3个节点,第一个节点的输入值为x0=1,用于提供模糊规则后件中的常数项;第二和第三个节点分别输入x1,x2The first layer is used to pass the input variable to the next layer, the first layer has 3 nodes in total, and the input value of the first node is x 0 =1, which is used to provide the constant term in the consequent of the fuzzy rule; The second and third nodes respectively input x 1 , x 2 ;

第二层,用于计算每一条规则后件,共有49个节点,每个节点代表一条规则:The second layer is used to calculate the consequent of each rule. There are 49 nodes in total, and each node represents a rule:

Figure BDA0003186018490000036
Figure BDA0003186018490000036

其中,ym为第m条规则的后件网络,

Figure BDA0003186018490000037
为连接权值,k=0,1,2,m=1,2,3,…,49,x1为对应节点的规则,x2为第二节点对应规则;where y m is the consequent network of the mth rule,
Figure BDA0003186018490000037
is the connection weight, k=0, 1, 2, m=1, 2, 3,..., 49, x 1 is the rule corresponding to the node, and x 2 is the corresponding rule of the second node;

第三层,用于计算控制器输出y:The third layer, used to calculate the controller output y:

Figure BDA0003186018490000038
Figure BDA0003186018490000038

其中,αm为加权系数即各模糊规则的归一化适应度,ym为各规则后件的加权和,所述前件网络的输出为所述后件网络的连接权值。Among them, α m is the weighting coefficient, that is, the normalized fitness of each fuzzy rule, y m is the weighted sum of the consequent components of each rule, and the output of the antecedent network is the connection weight of the consequent network.

上述的玉米收获机损失率控制方法,其中,步骤S200中的离线学习包括以下步骤:The above-mentioned method for controlling the loss rate of a corn harvester, wherein the offline learning in step S200 includes the following steps:

S201、进行种群参数初始化,所述种群参数为各个粒子的初始位置;S201, initialize a population parameter, where the population parameter is the initial position of each particle;

S202、计算粒子适应度F:F=abs(y-c),其中,y为预测输出,c为期望输出;S202. Calculate the particle fitness F: F=abs(y-c), where y is the predicted output, and c is the expected output;

S203、寻找个体极值和群体极值,找出各个粒子的个体最小适应度值和全局最小适应度值;S203, find the individual extreme value and the group extreme value, and find out the individual minimum fitness value and the global minimum fitness value of each particle;

S204、采用如下公式计算粒子的速度更新和位置更新:S204, the following formulas are used to calculate the speed update and position update of the particle:

Figure BDA0003186018490000041
Figure BDA0003186018490000041

Figure BDA0003186018490000042
Figure BDA0003186018490000042

其中,ω为惯性权重;d=1,2,…,D;i=1,2,…,n;k为当前迭代次数;Vid为粒子的速度,Pid为期望输出,Xid为实际输出;c1和c2是加速度因子,为非负常数;r1和r2为分布于[0,1]的随机数;Among them, ω is the inertia weight; d=1, 2, ..., D; i=1, 2, ..., n; k is the current number of iterations; V id is the speed of the particle, P id is the expected output, and X id is the actual Output; c 1 and c 2 are acceleration factors, which are non-negative constants; r 1 and r 2 are random numbers distributed in [0, 1];

S205、根据步骤S202中的公式计算速度和位置更新后的粒子适应度;S205, according to the formula in step S202, calculate the particle fitness after speed and position update;

S206、根据步骤S204中的公式更新个体极值和群体极值;S206, update the individual extreme value and the group extreme value according to the formula in step S204;

S207、采用如下公式计算当前个体与个体极值交叉,若适应度值减小,则接受:S207, the following formula is used to calculate the intersection of the current individual and the individual extreme value, if the fitness value decreases, accept:

xij=xij(1-b)+Pijb,式中,xij为随机选择的个体极值,Pij为随机选择的群体极值,b为[0,1]间的随机数;x ij = x ij (1-b)+P ij b, in the formula, x ij is a randomly selected individual extreme value, P ij is a randomly selected group extreme value, and b is a random number between [0, 1];

S208、采用如下公式计算当前个体与群体极值交叉,若适应度值减小,则接受:S208, the following formula is used to calculate the intersection of the current individual and the group extreme value, and if the fitness value decreases, accept:

xij=xij(1-b)+Pgj,式中,xij为随机选择的个体极值,Pgj为随机选择的群体极值,b为[0,1]间的随机数;x ij = x ij (1-b)+P gj , where x ij is a randomly selected individual extreme value, P gj is a randomly selected group extreme value, and b is a random number between [0, 1];

S209、采用如下公式计算当前个体自身进行变异,若适应度值减小,则接受:S209, the following formula is used to calculate the variation of the current individual itself, and if the fitness value decreases, accept:

Figure BDA0003186018490000043
Figure BDA0003186018490000043

式中,xij为随机选择的个体极值,xmax为xij的上界;xmin为xij的下界;f(g)=r2(1-g/Gmax)2;r2为一随机数;g是当前迭代数;Gmax是最大进化次数;r为[0,1]的随机数;In the formula, x ij is a randomly selected individual extreme value, x max is the upper bound of x ij ; x min is the lower bound of x ij ; f(g)=r 2 (1-g/G max ) 2 ; r 2 is A random number; g is the current iteration number; G max is the maximum number of evolutions; r is a random number of [0, 1];

S210、满足最大进化代数则结束,否则返回步骤S204。S210. End if the maximum evolutionary algebra is satisfied, otherwise return to step S204.

上述的玉米收获机损失率控制方法,其中,需要学习的所述可调参数包括连接权值和隶属函数的中心值cij和宽度σij The above-mentioned control method for the loss rate of a corn harvester, wherein the adjustable parameters that need to be learned include the connection weights and the central value c ij and the width σ ij of the membership function

上述的玉米收获机损失率控制方法,其中,所述连接权值的学习算法为:The above-mentioned control method for the loss rate of a corn harvester, wherein, the learning algorithm of the connection weight is:

Figure BDA0003186018490000051
Figure BDA0003186018490000051

所述隶属函数的中心值cij的学习算法为:The learning algorithm of the central value c ij of the membership function is:

cij(τ+1)=cij(τ)+Δcij(τ+1)+υ(cij(τ)-cij(τ-1));c ij (τ+1)=c ij (τ)+Δc ij (τ+1)+υ(c ij (τ)-c ij (τ-1));

所述宽度σij的学习算法为:The learning algorithm of the width σ ij is:

σij(τ+1)=σij(τ)+Δσij(τ+1)+υ(σij(τ)-σij(τ-1));σ ij (τ+1)=σ ij (τ)+Δσ ij (τ+1)+υ(σ ij (τ)-σ ij (τ-1));

式中,i=1,2,j=1,2,3,…,7,T表示时刻,T+1表示下一时刻,T-1表示前一时刻,u为动量因子,

Figure BDA0003186018490000052
Figure BDA0003186018490000053
E为误差代价函数,η为学习速率。In the formula, i=1, 2, j=1, 2, 3,..., 7, T represents the moment, T+1 represents the next moment, T-1 represents the previous moment, u is the momentum factor,
Figure BDA0003186018490000052
Figure BDA0003186018490000053
E is the error cost function, and η is the learning rate.

上述的玉米收获机损失率控制方法,其中,所述误差代价函数E为:

Figure BDA0003186018490000054
The above-mentioned control method for the loss rate of corn harvester, wherein, the error cost function E is:
Figure BDA0003186018490000054

式中,c为期望输出,y为实际输出。In the formula, c is the expected output and y is the actual output.

为了更好地实现上述目的,本发明还提供了一种玉米收获机损失率控制装置,其中,包括模糊神经网络控制器,所述模糊神经网络控制器包括前件网络和后件网络,并采用上述的玉米收获机损失率控制方法,通过对玉米收获机籽粒回收装置的转速优化控制,实现降低玉米收获损失率。In order to better achieve the above purpose, the present invention also provides a loss rate control device for a corn harvester, which includes a fuzzy neural network controller, the fuzzy neural network controller includes an antecedent network and a consequent network, and adopts a fuzzy neural network controller. The above method for controlling the loss rate of the corn harvester can reduce the loss rate of the corn harvest by optimally controlling the rotational speed of the corn harvester grain recovery device.

为了更好地实现上述目的,本发明还提供了一种存储介质,其中,所述存储介质存储有计算机程序,所述计算机程序被设置为运行时执行上述的玉米收获机损失率控制方法。In order to better achieve the above object, the present invention also provides a storage medium, wherein the storage medium stores a computer program, and the computer program is configured to execute the above-mentioned method for controlling the loss rate of a corn harvester when running.

为了更好地实现上述目的,本发明还提供了一种电子设备,其中,包括:In order to better achieve the above purpose, the present invention also provides an electronic device, which includes:

处理器;以及processor; and

存储器,用于存储所述处理器的可执行指令;a memory for storing executable instructions for the processor;

其中,所述处理器配置为经由执行所述可执行指令来执行上述的玉米收获机损失率控制方法。Wherein, the processor is configured to execute the above-mentioned corn harvester loss rate control method by executing the executable instructions.

本发明的技术效果在于:The technical effect of the present invention is:

本发明基于模糊神经网络算法,把神经网络的学习与计算功能融入模糊系统,将模糊系统类人的IF-Then规则嵌入神经网络,在保持模糊控制系统较强的知识表达能力的同时又提高其自适应能力,并具有自学习能力,通过对玉米播种机的籽粒回收装置的电机转速控制的神经网络算法的优化,实现了降低玉米收获损失率。Based on the fuzzy neural network algorithm, the invention integrates the learning and computing functions of the neural network into the fuzzy system, and embeds the human-like IF-Then rules of the fuzzy system into the neural network, so as to maintain the strong knowledge expression ability of the fuzzy control system and improve its It has self-adaptive ability and self-learning ability. Through the optimization of the neural network algorithm for controlling the motor speed of the grain recovery device of the corn planter, the loss rate of corn harvesting is reduced.

以下结合附图和具体实施例对本发明进行详细描述,但不作为对本发明的限定。The present invention is described in detail below with reference to the accompanying drawings and specific embodiments, but is not intended to limit the present invention.

附图说明Description of drawings

图1为本发明一实施例的玉米收获机损失率控制方法原理图;1 is a schematic diagram of a method for controlling the loss rate of a corn harvester according to an embodiment of the present invention;

图2为本发明一实施例的模糊神经网络结构示意图;2 is a schematic structural diagram of a fuzzy neural network according to an embodiment of the present invention;

图3为本发明一实施例的GA-PSO离线学习算法流程图。FIG. 3 is a flowchart of a GA-PSO offline learning algorithm according to an embodiment of the present invention.

具体实施方式Detailed ways

下面结合附图对本发明的结构原理和工作原理作具体的描述:Below in conjunction with accompanying drawing, structure principle and working principle of the present invention are described in detail:

现在将参考附图更全面地描述示例实施方式。然而,示例实施方式能够以多种形式实施,且不应被理解为限于在此阐述的范例;相反,提供这些实施方式使得本发明将更加全面和完整,并将示例实施方式的构思全面地传达给本领域的技术人员。所描述的特征、结构或特性可以以任何合适的方式结合在一个或更多实施方式中。在下面的描述中,提供许多具体细节从而给出对本发明的实施方式的充分理解。然而,本领域技术人员将意识到,可以实践本发明的技术方案而省略所述特定细节中的一个或更多,或者可以采用其它的方法、组元、装置、步骤等。在其它情况下,不详细示出或描述公知技术方案以避免喧宾夺主而使得本发明的各方面变得模糊。Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments, however, can be embodied in various forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided in order to give a thorough understanding of the embodiments of the present invention. However, those skilled in the art will appreciate that the technical solutions of the present invention may be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. may be employed. In other instances, well-known solutions have not been shown or described in detail to avoid obscuring aspects of the present invention.

此外,附图仅为本发明的示意性图解,并非一定是按比例绘制。图中相同的附图标记表示相同或类似的部分,因而将省略对它们的重复描述。附图中所示的一些方框图是功能实体,不一定必须与物理或逻辑上独立的实体相对应。可以采用软件形式来实现这些功能实体,或在一个或多个硬件模块或集成电路中实现这些功能实体,或在不同网络和/或处理器装置和/或微控制器装置中实现这些功能实体。Furthermore, the drawings are merely schematic illustrations of the invention and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repeated descriptions will be omitted. Some of the block diagrams shown in the figures are functional entities that do not necessarily necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.

参见图1,图1为本发明一实施例的玉米收获机损失率控制方法原理图。如图1所示,本发明的玉米收获机损失率控制方法,基于模糊神经网络,构件一个双输入单输出的模糊神经网络控制器,通过实时检测籽粒回收装置的转速跟踪输出与标准转速的设定值,结合在线学习机制实时调整控制器中可调参数,使之适应籽粒回收装置变化并跟踪标准转速的设定值。模糊神经网络控制器为双输入单输出的二维结构,取e和

Figure BDA0003186018490000071
分别为输入的跟踪误差和跟踪误差变化率,u(t)表示输出控制量,此处du/dt表示后移算子的功能,亦即求取u(t-1),上一时刻的控制量。FNN表示模糊神经网络控制器。K表示模糊神经网络控制器的比例系数,该参数根据运行结果不断调整。Referring to FIG. 1, FIG. 1 is a schematic diagram of a method for controlling the loss rate of a corn harvester according to an embodiment of the present invention. As shown in Figure 1, the corn harvester loss rate control method of the present invention is based on a fuzzy neural network, and a fuzzy neural network controller with dual input and single output is constructed to detect the speed tracking output of the grain recovery device in real time and the setting of the standard speed. The fixed value, combined with the online learning mechanism, adjust the adjustable parameters in the controller in real time, so that it can adapt to the change of the grain recovery device and track the set value of the standard speed. The fuzzy neural network controller is a two-dimensional structure with two inputs and one output, taking e and
Figure BDA0003186018490000071
are the input tracking error and tracking error rate of change, respectively, u(t) represents the output control amount, where du/dt represents the function of the backshift operator, that is, to obtain u(t-1), the control at the previous moment quantity. FNN stands for Fuzzy Neural Network Controller. K represents the proportional coefficient of the fuzzy neural network controller, and this parameter is continuously adjusted according to the running results.

模糊神经网络控制器的学习阶段分为离线学习与在线学习阶段。离线学习阶段是通过对以前系统运行数据的学习来初步确定该模糊神经网络中需要学习的权值和隶属度函数中心和宽度。这些确定值并不十分精确,然后将这个参数结构初步确定的控制器通过在线学习阶段的BP算法来精确调整,使控制性能更优。离线学习采用改进粒子群算法,即遗传算法-粒子群算法,在线学习为BP算法。BP算法过度依赖网络初始值,不佳的初始值可能导致效果很差或根本不收敛。此外,BP算法全局搜索能力较差,极易陷入局部极小。将PSO(粒子群优化算法,Particle Swarm Optimization)与BP算法结合,既能保证学习全局收敛性,又可克服梯度法对初始值的依赖和局部收敛问题,还克服了单纯粒子群算法造成的随机性、概率性问题。The learning stage of fuzzy neural network controller is divided into offline learning and online learning stage. The offline learning stage is to preliminarily determine the center and width of the weights and membership functions that need to be learned in the fuzzy neural network by learning the previous system operating data. These determined values are not very precise, and then the controller whose parameter structure is preliminarily determined is precisely adjusted by the BP algorithm in the online learning stage, so that the control performance is better. Offline learning adopts improved particle swarm algorithm, namely genetic algorithm-particle swarm algorithm, and online learning is BP algorithm. The BP algorithm is overly dependent on the initial value of the network, and a poor initial value may lead to poor performance or no convergence at all. In addition, the global search ability of BP algorithm is poor, and it is easy to fall into local minima. The combination of PSO (Particle Swarm Optimization) and BP algorithm can not only ensure the global convergence of learning, but also overcome the dependence of the gradient method on the initial value and local convergence problems, and also overcome the randomness caused by the simple particle swarm algorithm. question of probability and probability.

具体可包括如下步骤:Specifically, the following steps may be included:

步骤S100、构建双输入单输出的模糊神经网络控制器,所述模糊神经网络控制器包括前件网络和后件网络;Step S100, constructing a dual-input single-output fuzzy neural network controller, where the fuzzy neural network controller includes an antecedent network and a consequent network;

步骤S200、采用遗传算法-粒子群算法进行离线学习,通过对系统在先运行数据的学习初步确定所述模糊神经网络控制器中需要学习的权值和隶属度函数中心和宽度,其中系统在先运行数据例如可设定电动机调速模型,驱动系统输入量等,并设定电动机初始速度;以及Step S200, adopting the genetic algorithm-particle swarm algorithm for offline learning, and preliminarily determining the weights and the center and width of the membership function to be learned in the fuzzy neural network controller by learning the previous operating data of the system, wherein the system is first For example, the operating data can set the speed regulation model of the motor, the input quantity of the drive system, etc., and set the initial speed of the motor; and

步骤S300、采用BP算法进行在线学习,建立所述模糊神经网络控制器的连接权值,实时检测玉米收获机籽粒回收装置的转速,结合在线学习实时调整所述模糊神经网络控制器中的可调参数,使所述模糊神经网络控制器适应所述玉米收获机籽粒回收装置的机械性能变化,并跟踪玉米收获率设定值。Step S300, using the BP algorithm for online learning, establishing the connection weights of the fuzzy neural network controller, detecting the rotating speed of the corn harvester grain recovery device in real time, and adjusting the adjustable parameters in the fuzzy neural network controller in real time in combination with the online learning. parameters, so that the fuzzy neural network controller adapts to the mechanical performance changes of the corn harvester grain recovery device, and tracks the corn harvest rate set value.

参见图2,图2为本发明一实施例的模糊神经网络结构示意图。本实施例的模糊神经网络由前件网络和后件网络构成,前件网络用来匹配模糊规则的前件,后件网络用来产生模糊规则的后件。所述前件网络为四层网络结构,包括:Referring to FIG. 2, FIG. 2 is a schematic structural diagram of a fuzzy neural network according to an embodiment of the present invention. The fuzzy neural network in this embodiment is composed of an antecedent network and a consequent network. The antecedent network is used to match the antecedents of the fuzzy rule, and the consequent network is used to generate the consequent of the fuzzy rules. The antecedent network is a four-layer network structure, including:

第一层:输入层,取输入玉米收获机的有功功率偏差和有功功率偏差变化率分别为y1,y2,所述输入层的节点数N1=2,表达式如下:The first layer: the input layer, the active power deviation and the active power deviation change rate of the input corn harvester are taken as y 1 and y 2 respectively, and the number of nodes in the input layer is N 1 =2, and the expression is as follows:

Figure BDA0003186018490000081
Figure BDA0003186018490000081

其中,e为跟踪误差,

Figure BDA0003186018490000082
为性能参数变量跟踪误差变化率,c为机械性能变化值,y为机械性能实际检测值;where e is the tracking error,
Figure BDA0003186018490000082
is the change rate of the tracking error of the performance parameter variable, c is the change value of the mechanical property, and y is the actual detection value of the mechanical property;

模糊化层,将输入变量y1、y2分别划分为7个模糊子集{NB,NM,NS,O,PS,PM,PB},作为所述模糊化层的节点,每个节点代表一个语言变量值;它们的隶属度函数均采用高斯型函数,各语言变量的隶属度函数分别为:Fuzzy layer, the input variables y 1 , y 2 are divided into 7 fuzzy subsets {NB, NM, NS, O, PS, PM, PB}, as the nodes of the fuzzy layer, each node represents a The values of linguistic variables; their membership functions are all Gaussian functions, and the membership functions of each linguistic variable are:

Figure BDA0003186018490000083
Figure BDA0003186018490000083

其中,

Figure BDA0003186018490000084
为第一层的输入在相应语言变量值的模糊论域的隶属度函数,yi为输入玉米收获机的有功功率偏差,cij和σij(i=1,2,…,n,j=1,2,…mi)分别为隶属度函数的中心和宽度,n为输入变量个数,mi为输入变量xi的模糊分割数,n=2,m1=m2=7;所述模糊化层的节点数N2=m1+m2=14;in,
Figure BDA0003186018490000084
is the membership function of the input of the first layer in the fuzzy universe of the corresponding linguistic variable value, y i is the active power deviation of the input corn harvester, c ij and σ ij (i=1, 2,...,n,j= 1,2 , _ _ The number of nodes in the fuzzification layer N 2 =m 1 +m 2 =14;

第三层:模糊规则计算层,该层用于匹配模糊规则的前件,计算每条所述模糊规则的适应度,由于有y1,y2两个输入,故模糊推理操作便是将两个模糊化后的输入量进行连乘运算,采用的模糊算子为连乘算子:The third layer: the fuzzy rule calculation layer, which is used to match the antecedents of the fuzzy rules and calculate the fitness of each fuzzy rule. Since there are two inputs y 1 and y 2 , the fuzzy inference operation is to combine the two A continuous multiplication operation is performed on the fuzzified input quantities, and the fuzzy operator used is the continuous multiplication operator:

Figure BDA0003186018490000085
Figure BDA0003186018490000085

其中,αm为模糊推理操作的计算结果,

Figure BDA0003186018490000086
为隶属度值,
Figure BDA0003186018490000087
为下一节点隶属度值,j1=j2=1,2,…,7;,m=m1×m2=7×7=49,所述模糊规则计算层的节点数N3=49;Among them, α m is the calculation result of the fuzzy inference operation,
Figure BDA0003186018490000086
is the membership value,
Figure BDA0003186018490000087
is the membership value of the next node, j 1 =j 2 =1,2,...,7; m=m 1 ×m 2 =7×7=49, the number of nodes in the fuzzy rule calculation layer N 3 =49 ;

第四层:归一化层,用于实现归一化操作;The fourth layer: the normalization layer, which is used to realize the normalization operation;

Figure BDA0003186018490000091
Figure BDA0003186018490000091

其中,

Figure BDA0003186018490000092
为加权系数,αi为加权系数累加,所述归一化层的节点数N4=N3=49,该层节点数与第三层节点数相同。in,
Figure BDA0003186018490000092
is the weighting coefficient, α i is the weighting coefficient accumulation, the number of nodes in the normalization layer is N 4 =N 3 =49, and the number of nodes in this layer is the same as the number of nodes in the third layer.

本实施例的所述后件网络为三层网络结构,包括:The postware network in this embodiment is a three-layer network structure, including:

第一层,输入层,用于将输入变量传递给下一层即第二层,所述第一层共有3个节点,输入层中第一个节点的输入值为x0=1,它的作用用于提供模糊规则后件中的常数项;第二和第三个节点分别输入x1,x2The first layer, the input layer, is used to pass the input variable to the next layer, that is, the second layer. The first layer has 3 nodes in total. The input value of the first node in the input layer is x 0 =1, and its The function is used to provide the constant term in the consequent of the fuzzy rule; the second and third nodes respectively input x 1 , x 2 ;

第二层,用于计算每一条规则后件,共有49个节点,每个节点代表一条规则:The second layer is used to calculate the consequent of each rule. There are 49 nodes in total, and each node represents a rule:

Figure BDA0003186018490000093
Figure BDA0003186018490000093

其中,ym为第m条规则的后件网络输出,

Figure BDA0003186018490000095
为连接权值,k=0,1,2,m=1,2,3,…,49,x1为对应节点的规则,x2为第二节点对应规则;where y m is the consequent network output of the mth rule,
Figure BDA0003186018490000095
is the connection weight, k=0, 1, 2, m=1, 2, 3,..., 49, x 1 is the rule corresponding to the node, and x 2 is the corresponding rule of the second node;

第三层,用于计算控制器输出y:The third layer, used to calculate the controller output y:

Figure BDA0003186018490000094
Figure BDA0003186018490000094

其中,αm为加权系数即各模糊规则的归一化适应度,ym为各规则后件的加权和,模糊神经网络输出y是各个模糊规则后件的加权,加权系数是各个模糊规则归一化后的使用度,也即所述前件网络的输出为所述后件网络的连接权值。Among them, α m is the weighting coefficient, that is, the normalized fitness of each fuzzy rule, y m is the weighted sum of each rule consequent, the fuzzy neural network output y is the weight of each fuzzy rule consequent, and the weighting coefficient is the normalization of each fuzzy rule. The normalized usage degree, that is, the output of the antecedent network is the connection weight of the consequent network.

T-S模糊神经网络学习算法的离线学习阶段:离线学习阶段是为了给在线学习时提供一个优良的网络初值,因为在线学习算法——BP算法非常依赖初始值的选取,初值较优训练效果更好。离线学习采用改进的粒子群算法,即GA-PSO算法。The offline learning stage of the T-S fuzzy neural network learning algorithm: the offline learning stage is to provide an excellent initial value of the network for online learning, because the online learning algorithm - BP algorithm is very dependent on the selection of the initial value, and the initial value is better than the optimal training effect. it is good. Offline learning adopts an improved particle swarm algorithm, namely GA-PSO algorithm.

粒子群算法是一种群智能优化算法,最早由Kennedy和Eberhart于1995年提出。它源于对鸟类捕食行为的研究,鸟类捕食时,每只鸟找到食物的方法就是搜寻当前距离食物最近的鸟的周边区域。Particle swarm optimization is a swarm intelligence optimization algorithm, first proposed by Kennedy and Eberhart in 1995. It stems from the study of bird predation behavior. When birds prey, the way each bird finds food is to search the surrounding area of the bird that is currently closest to the food.

标准粒子群算法首先在可行解空间中随机初始化一群粒子,每个粒子都代表极值优化问题的一个潜在最优解,用位置、速度和适应度值三项指标表示该粒子特征,适应度值由适应度函数计算得到,其值的好坏表示粒子的优劣。粒子在解空间中运动,通过跟踪个体极值Pbest和群体极值Gbest更新个体位置,个体极值Pbest表示个体所经历位置中适应度值最优的位置,群体极值Gbest表示种群所有粒子搜索到的适应度值最优的位置。The standard particle swarm algorithm first randomly initializes a group of particles in the feasible solution space. Each particle represents a potential optimal solution of the extreme value optimization problem. The three indicators of position, speed and fitness value are used to represent the characteristics of the particle. It is calculated by the fitness function, and the quality of its value indicates the quality of the particle. The particle moves in the solution space, and the individual position is updated by tracking the individual extremum Pbest and the group extremum Gbest. The individual extremum Pbest represents the position with the best fitness value among the positions experienced by the individual, and the group extremum Gbest represents that all particles of the population have searched for it. The position where the fitness value is optimal.

假设在一个D维的搜索空间中,由n个粒子组成的种群Xi=(x1,x2…xn),其中第i个粒子表示为一个D维的向量Xi=(xi1,xi2...xiD)T,代表第i个粒子在D维搜索空间中的位置,也代表问题的一个潜在解。第i个粒子的速度为Vi=(vi1,vi2...viD)T,其个体极值Pi=(p1,p2...pn)T,种群全局极值Pg=(pg1,pg2...pgn)TSuppose that in a D-dimensional search space, a population Xi = ( x 1 , x 2 . x i2 ... x iD ) T , which represents the position of the i-th particle in the D-dimensional search space, and also represents a potential solution to the problem. The velocity of the i-th particle is V i =(v i1 , v i2 ...v iD ) T , its individual extreme value P i =(p 1 , p 2 ... p n ) T , the population global extreme value P g = (p g1 , p g2 . . . p gn ) T .

标准粒子群算法的速度和位置更新公式如下:The velocity and position update formulas of the standard particle swarm algorithm are as follows:

Figure BDA0003186018490000101
Figure BDA0003186018490000101

Figure BDA0003186018490000102
Figure BDA0003186018490000102

式中,ω为惯性权重;d=1,2,…,D;i=1,2,…,n;k是当前迭代次数;Vid为粒子的速度,Pid为期望输出,Xid为实际输出;c1和c2是加速度因子,为非负常数;r1和r2为分布于[0,1]的随机数。In the formula, ω is the inertia weight; d=1, 2,..., D; i=1, 2,...,n; k is the current iteration number; V id is the speed of the particle, P id is the expected output, and X id is Actual output; c 1 and c 2 are acceleration factors, which are non-negative constants; r 1 and r 2 are random numbers distributed in [0, 1].

本发明采用的适应度函数为预测输出和期望输出之间的误差绝对值作为个体适应度值F,计算公式为:The fitness function adopted in the present invention is the absolute value of the error between the predicted output and the expected output as the individual fitness value F, and the calculation formula is:

F=abs(y-c); (9)F=abs(y-c); (9)

其中,y为预测输出,c为期望输出。where y is the predicted output and c is the expected output.

标准粒子群算法通过追随个体极值和群体极值完成极值寻优,虽然操作简单,能快速收敛,但是随迭代次数的递增,在种群收敛集中的同时,各粒子也越来越相似,可能在局部最优解附近无法跳出。混合粒子群算法摒弃标准粒子群算法中的通过跟踪极值来更新粒子位置的方法,而是引入了遗传算法中的交叉和变异操作,通过粒子同个体极值和群体极值的交叉以及粒子自身变异的方式来搜索最优解。The standard particle swarm algorithm completes extremum optimization by following the individual extremum and the group extremum. Although the operation is simple and it can converge quickly, as the number of iterations increases, while the population converges and concentrates, the particles become more and more similar. It is impossible to jump out near the local optimal solution. The hybrid particle swarm algorithm abandons the method of updating the particle position by tracking the extreme value in the standard particle swarm algorithm, but introduces the crossover and mutation operations in the genetic algorithm. mutation to search for the optimal solution.

交叉操作采用实数交叉法,随机选择第i个个体极值和群体极值与第i个个体的交叉位j,然后进行交叉,方法如下:The crossover operation adopts the real number crossover method, and randomly selects the ith individual extremum and the crossover position j of the ith individual extremum and the ith individual, and then performs the crossover. The method is as follows:

xij=xij(1-b)+Pijb; (10)x ij = x ij (1-b)+P ij b; (10)

xij=xij(1-b)+Pgj; (11)x ij =x ij (1-b)+P gj ; (11)

式中,xij为随机选择的个体极值,Pij为随机选择的群体极值,b为[0,1]间的随机数。In the formula, x ij is a randomly selected individual extreme value, P ij is a randomly selected group extreme value, and b is a random number between [0, 1].

粒子自身变异操作先随机选取第i个个体变异位置j,然后进行变异,方法如下:The particle self-mutation operation first randomly selects the i-th individual mutation position j, and then mutates, the method is as follows:

Figure BDA0003186018490000111
Figure BDA0003186018490000111

式中,xmax为xii的上界;xmin为xij的下界;f(g)=r2(1-g/Gmax)2;r2为一个随机数;g是当前迭代数;Gmax是最大进化次数;r为[0,1]的随机数。In the formula, x max is the upper bound of x ii ; x min is the lower bound of x ij ; f(g)=r 2 (1-g/G max ) 2 ; r 2 is a random number; g is the current iteration number; G max is the maximum number of evolutions; r is a random number in [0, 1].

参见图3,图3为本发明一实施例的GA-PSO离线学习算法流程图。本实施例中,步骤S200中的离线学习包括以下步骤:Referring to FIG. 3 , FIG. 3 is a flowchart of a GA-PSO offline learning algorithm according to an embodiment of the present invention. In this embodiment, the offline learning in step S200 includes the following steps:

步骤S201、进行种群参数初始化,所述种群参数为各个粒子的初始位置;Step S201, initializing a population parameter, where the population parameter is the initial position of each particle;

步骤S202、计算粒子适应度F:F=abs(y-c),其中,y为预测输出,c为期望输出;Step S202, calculating the particle fitness F: F=abs(y-c), where y is the predicted output, and c is the expected output;

步骤S203、寻找个体极值和群体极值,找出各个粒子的个体最小适应度值和全局最小适应度值;Step S203, searching for the individual extreme value and the group extreme value, and finding out the individual minimum fitness value and the global minimum fitness value of each particle;

步骤S204、采用如下公式计算粒子的速度更新和位置更新:Step S204, using the following formula to calculate the speed update and position update of the particle:

Figure BDA0003186018490000112
Figure BDA0003186018490000112

Figure BDA0003186018490000121
Figure BDA0003186018490000121

其中,ω为惯性权重;d=1,2,…,D;i=1,2,…,n;k为当前迭代次数;Vid为粒子的速度;c1和c2是加速度因子,为非负常数;r1和r2为分布于[0,1]的随机数;Among them, ω is the inertia weight; d=1, 2,..., D; i=1, 2,...,n; k is the current iteration number; V id is the velocity of the particle; c 1 and c 2 are the acceleration factors, which are Non-negative constant; r 1 and r 2 are random numbers distributed in [0, 1];

步骤S205、根据步骤S202中的公式计算速度和位置更新后的粒子适应度;Step S205, calculate the particle fitness after speed and position update according to the formula in step S202;

步骤S206、根据步骤S204中的公式更新个体极值和群体极值;Step S206, update the individual extreme value and the group extreme value according to the formula in step S204;

步骤S207、采用如下公式计算当前个体与个体极值交叉,若适应度值减小,则接受:In step S207, the following formula is used to calculate the intersection of the current individual and the individual extreme value, and if the fitness value decreases, accept:

xij=xij(1-b)+Pijb,式中,b为[0,1]间的随机数;x ij =x ij (1-b)+P ij b, where b is a random number between [0, 1];

步骤S208、采用如下公式计算当前个体与群体极值交叉,若适应度值减小,则接受:In step S208, the following formula is used to calculate the intersection of the current individual and the group extreme value, and if the fitness value decreases, accept:

xij=xij(1-b)+Pgj,式中,xij为随机选择的个体极值,Pgj为随机选择的群体极值,b为[0,1]间的随机数;x ij = x ij (1-b)+P gj , where x ij is a randomly selected individual extreme value, P gj is a randomly selected group extreme value, and b is a random number between [0, 1];

步骤S209、采用如下公式计算当前个体自身进行变异,若适应度值减小,则接受:Step S209, the following formula is used to calculate the variation of the current individual itself, and if the fitness value decreases, accept:

Figure BDA0003186018490000122
Figure BDA0003186018490000122

式中,xij为随机选择的个体极值,xmax为xii的上界;xmin为xij的下界;f(g)=r2(1-g/Gmax)2;r2为一随机数;g是当前迭代数;Gmax是最大进化次数;r为[0,1]的随机数;In the formula, x ij is a randomly selected individual extreme value, x max is the upper bound of x ii ; x min is the lower bound of x ij ; f(g)=r 2 (1-g/G max ) 2 ; r 2 is A random number; g is the current iteration number; G max is the maximum number of evolutions; r is a random number of [0, 1];

步骤S210、满足最大进化代数则结束,否则返回步骤S204。In step S210, if the maximum evolutionary algebra is satisfied, the process ends; otherwise, the process returns to step S204.

其中,需要学习的所述可调参数包括连接权值和隶属函数的中心值cij和宽度σijWherein, the adjustable parameters that need to be learned include the connection weight and the central value c ij and the width σ ij of the membership function.

所述连接权值的学习算法为:The learning algorithm of the connection weight is:

Figure BDA0003186018490000123
Figure BDA0003186018490000123

所述隶属函数的中心值cij的学习算法为:The learning algorithm of the central value c ij of the membership function is:

cij(τ+1)=cij(τ)+Δcij(τ+1)+υ(cij(τ)-cij(τ-1));c ij (τ+1)=c ij (τ)+Δc ij (τ+1)+υ(c ij (τ)-c ij (τ-1));

所述宽度σij的学习算法为:The learning algorithm of the width σ ij is:

σij(τ+1)=σij(τ)+Δσij(τ+1)+υ(σij(τ)-σij(τ-1));σ ij (τ+1)=σ ij (τ)+Δσ ij (τ+1)+υ(σ ij (τ)-σ ij (τ-1));

式中,i=1,2,j=1,2,3,…,7,T表示时刻,T+1表示下一时刻,T-1表示前一时刻,u为动量因子,

Figure BDA0003186018490000131
Figure BDA0003186018490000132
E为误差代价函数,η为学习速率。In the formula, i=1, 2, j=1, 2, 3,..., 7, T represents the moment, T+1 represents the next moment, T-1 represents the previous moment, u is the momentum factor,
Figure BDA0003186018490000131
Figure BDA0003186018490000132
E is the error cost function, and η is the learning rate.

所述误差代价函数E为:

Figure BDA0003186018490000133
式中,c为期望输出,y为实际输出。The error cost function E is:
Figure BDA0003186018490000133
In the formula, c is the expected output and y is the actual output.

T-S模糊神经网络学习算法的在线学习阶段:在线学习采用BP算法。Online learning stage of T-S fuzzy neural network learning algorithm: BP algorithm is used for online learning.

由于各输入变量的模糊分割数预先确定,故需学习的参数主要是后件网络的连接权值和高斯型隶属度函数的中心值cij及宽度σijSince the number of fuzzy divisions of each input variable is predetermined, the parameters to be learned are mainly the connection weights of the posterior network and the center value c ij and the width σ ij of the Gaussian membership function.

定义误差代价函数E为:

Figure BDA0003186018490000134
Define the error cost function E as:
Figure BDA0003186018490000134

式中,c为期望输出,y为实际输出。In the formula, c is the expected output and y is the actual output.

关于连接权值

Figure BDA0003186018490000135
的学习算法:About connection weights
Figure BDA0003186018490000135
The learning algorithm of:

在控制器的学习阶段,离线学习结果不令人满意,因此采用在线学习阶段的BP算法,进一步提高模糊神经网络中需要的权值和隶属度函数中心及宽度。输入分量的隶属函数采用高斯型函数,需要学习的参数为连接权值和隶属函数的中心值cij和宽度σijIn the learning stage of the controller, the offline learning results are unsatisfactory, so the BP algorithm in the online learning stage is used to further improve the center and width of the weights and membership functions required in the fuzzy neural network. The membership function of the input component adopts a Gaussian function, and the parameters to be learned are the connection weight and the central value c ij and the width σ ij of the membership function.

Figure BDA0003186018490000136
Figure BDA0003186018490000136

Figure BDA0003186018490000137
Figure BDA0003186018490000137

其中,τ表示时刻,τ+1表示下一时刻,τ-1表示前一时刻。Among them, τ represents the time, τ+1 represents the next time, and τ-1 represents the previous time.

然后探讨中心值cij和宽度σij的学习算法。此时连接权值

Figure BDA0003186018490000138
已知。Then, the learning algorithm of the center value c ij and the width σ ij is discussed. At this point the connection weight
Figure BDA0003186018490000138
A known.

Figure BDA0003186018490000139
Figure BDA0003186018490000139

Figure BDA0003186018490000141
Figure BDA0003186018490000141

Figure BDA0003186018490000142
Figure BDA0003186018490000142

Figure BDA0003186018490000143
Figure BDA0003186018490000143

以上各式中,η>0,为学习速率。In the above formulas, η>0 is the learning rate.

标准BP算法收敛速度较慢、目标函数存在局部极小问题。如今已有多种方法可对以上问题进行改进,比较常用的方法有两种:当引入动量项时,BP算法可以找到更优解;当引进自适应学习速率后,BP算法可适当缩短训练时间。故本文将两者结合,此时,连接权值

Figure BDA0003186018490000144
中心值cij和宽度σij的学习算法分别为:The standard BP algorithm has a slow convergence speed, and the objective function has a local minimum problem. Nowadays, there are many methods to improve the above problems. There are two commonly used methods: when the momentum term is introduced, the BP algorithm can find a better solution; when the adaptive learning rate is introduced, the BP algorithm can appropriately shorten the training time . Therefore, this paper combines the two. At this time, the connection weights are
Figure BDA0003186018490000144
The learning algorithms for the center value c ij and the width σ ij are:

Figure BDA0003186018490000145
Figure BDA0003186018490000145

cij(τ+1)=cij(τ)+Δcij(τ+1)+υ(cij(τ)-cij(τ-1)); (20)c ij (τ+1)=c ij (τ)+Δc ij (τ+1)+υ(c ij (τ)-c ij (τ-1)); (20)

σij(τ+1)=σij(τ)+Δσij(τ+1)+υ(σij(τ)-σij(τ-1)); (21)σ ij (τ+1)=σ ij (τ)+Δσ ij (τ+1)+υ(σ ij (τ)-σ ij (τ-1)); (21)

式中,i=1,2,j=1,2,3,…,7,T表示时刻,T+1表示下一时刻,T-1表示前一时刻,u为动量因子,

Figure BDA0003186018490000146
E为误差代价函数,η为学习速率。In the formula, i=1, 2, j=1, 2, 3,..., 7, T represents the moment, T+1 represents the next moment, T-1 represents the previous moment, u is the momentum factor,
Figure BDA0003186018490000146
E is the error cost function, and η is the learning rate.

尽管在附图中以特定顺序描述了本发明中方法的各个步骤,但是,这并非要求或者暗示必须按照该特定顺序来执行这些步骤,或是必须执行全部所示的步骤才能实现期望的结果。附加的或备选的,可以省略某些步骤,将多个步骤合并为一个步骤执行,以及/或者将一个步骤分解为多个步骤执行等。Although the various steps of the methods of the present invention are depicted in the figures in a particular order, it is not required or implied that the steps must be performed in the particular order or that all illustrated steps must be performed to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps may be combined into one step for execution, and/or one step may be decomposed into multiple steps for execution, and the like.

此外,本发明还提供了玉米收获机损失率控制装置,包括模糊神经网络控制器,本实施例的双输入单输出的模糊神经网络控制器的结构可根据模糊规则及其物理意义确定。所述模糊神经网络控制器包括前件网络和后件网络,并采用上述的玉米收获机损失率控制方法,通过对玉米收获机籽粒回收装置的转速优化控制,实现降低玉米收获损失率。应当注意,该装置用于动作执行,其可由若干模块或者单元实现其功能。实际上,根据本发明的实施方式,两个或更多模块或者单元的特征和功能可以在一个模块或者单元中具体化。反之,一个模块或者单元的特征和功能可以进一步划分为由多个模块或者单元来具体化。In addition, the present invention also provides a corn harvester loss rate control device, including a fuzzy neural network controller. The structure of the dual-input and single-output fuzzy neural network controller in this embodiment can be determined according to fuzzy rules and their physical meanings. The fuzzy neural network controller includes an antecedent network and a consequent network, and adopts the above-mentioned control method for the loss rate of the corn harvester to reduce the loss rate of corn harvesting by optimally controlling the rotational speed of the corn harvester grain recovery device. It should be noted that this means is used for the execution of actions, which may realize its functions by several modules or units. Indeed, according to embodiments of the present invention, the features and functions of two or more modules or units may be embodied in one module or unit. Conversely, the features and functions of one module or unit can be further divided into multiple modules or units to be embodied.

相应地,基于同一发明构思,本发明还提供了一种存储介质,所述存储介质存储有计算机程序,所述计算机程序被设置为运行时执行上述的玉米收获机损失率控制方法。通过以上的实施方式的描述,本领域的技术人员易于理解,这里描述的示例实施方式可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此,根据本发明实施方式的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(例如可以是CD-ROM,U盘,移动硬盘等)中或网络上,包括若干指令以使得一台计算设备(可以是个人计算机、服务器、移动终端或者网络设备等)执行根据本发明实施方式的方法。Correspondingly, based on the same inventive concept, the present invention also provides a storage medium storing a computer program, and the computer program is configured to execute the above-mentioned method for controlling the loss rate of a corn harvester when running. From the description of the above embodiments, those skilled in the art can easily understand that the exemplary embodiments described herein may be implemented by software, or may be implemented by software combined with necessary hardware. Therefore, the technical solution according to the embodiment of the present invention can be embodied in the form of a software product, and the software product can be stored in a non-volatile storage medium (for example, it can be a CD-ROM, a U disk, a mobile hard disk, etc.) or a network Above, several instructions are included to cause a computing device (which may be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to an embodiment of the present invention.

在一些可能的实施方式中,本发明的各个方面还可以实现为一种程序产品的形式,其包括程序代码,当所述程序产品在终端设备上运行时,所述程序代码用于使所述终端设备执行本说明书上述“示例性方法”部分中描述的根据本发明各种示例性实施方式的步骤。可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-OnlyMemory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储计算机程序的介质。In some possible implementations, aspects of the present invention can also be implemented in the form of a program product comprising program code for enabling the program product to run on a terminal device The terminal device performs the steps according to various exemplary embodiments of the present invention described in the "Example Method" section above in this specification. Optionally, in this embodiment, the above-mentioned storage medium may include, but is not limited to: a USB flash drive, a read-only memory (Read-Only Memory, referred to as ROM for short), a random access memory (Random Access Memory, referred to as RAM for short), mobile Various media that can store computer programs, such as hard disks, magnetic disks, or optical disks.

根据本发明的实施方式的用于实现上述方法的程序产品,其可以采用便携式紧凑盘只读存储器(CD-ROM)并包括程序代码,并可以在终端设备,例如个人电脑上运行。然而,本发明的程序产品不限于此,在本文件中,可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。A program product for implementing the above method according to an embodiment of the present invention may adopt a portable compact disc read only memory (CD-ROM) and include program codes, and may run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto, and in this document, a readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

所述程序产品可以采用一个或多个可读介质的任意组合。可读介质可以是可读信号介质或者可读存储介质。可读存储介质例如可以为但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples (non-exhaustive list) of readable storage media include: electrical connections with one or more wires, portable disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了可读程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。可读信号介质还可以是可读存储介质以外的任何可读介质,该可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。A computer readable signal medium may include a propagated data signal in baseband or as part of a carrier wave with readable program code embodied thereon. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A readable signal medium can also be any readable medium, other than a readable storage medium, that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.

可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于无线、有线、光缆、RF等等,或者上述的任意合适的组合。Program code embodied on a readable medium may be transmitted using any suitable medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

可以以一种或多种程序设计语言的任意组合来编写用于执行本发明操作的程序代码,所述程序设计语言包括面向对象的程序设计语言,诸如Java、C++等,还包括常规的过程式程序设计语言,诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、作为一个独立的软件包执行、部分在用户计算设备上部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。在涉及远程计算设备的情形中,远程计算设备可以通过任意种类的网络,包括局域网(LAN)或广域网(WAN),连接到用户计算设备,或者,可以连接到外部计算设备(例如利用因特网服务提供商来通过因特网连接)。Program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages, such as Java, C++, etc., as well as conventional procedural A programming language, such as the "C" language or similar programming language. The program code may execute entirely on the user computing device, partly on the user device, as a stand-alone software package, partly on the user computing device and partly on a remote computing device, or entirely on the remote computing device or server execute on. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (eg, using an Internet service provider business via an Internet connection).

相应地,基于同一发明构思,本发明还提供了一种电子设备,包括:处理器;以及存储器,用于存储所述处理器的可执行指令;其中,所述处理器配置为经由执行所述可执行指令来执行上述的玉米收获机损失率控制方法。Correspondingly, based on the same inventive concept, the present invention also provides an electronic device, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the Instructions are executable to perform the corn harvester loss rate control method described above.

所属技术领域的技术人员能够理解,本发明的各个方面可以实现为系统、方法或程序产品。因此,本发明的各个方面可以具体实现为以下形式,即:完全的硬件实施方式、完全的软件实施方式(包括固件、微代码等),或硬件和软件方面结合的实施方式,这里可以统称为“电路”、“模块”或“系统”。本实施方式的电子设备以通用计算设备的形式表现。电子设备的组件可以包括但不限于:上述至少一个处理器、上述至少一个存储器、连接不同系统组件(包括存储器和处理器)的总线。存储器用于存储所述处理器的可执行指令;所述处理器配置为经由执行所述可执行指令来执行上述玉米收获机损失率控制方法。其中,所述存储器存储有程序代码,所述程序代码可以被所述处理器执行,使得所述处理器执行本说明书上述“示例性方法”部分中描述的根据本发明各种示例性实施方式的步骤。As will be appreciated by one skilled in the art, various aspects of the present invention may be implemented as a system, method or program product. Therefore, various aspects of the present invention can be embodied in the following forms: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software aspects, which may be collectively referred to herein as implementations "circuit", "module" or "system". The electronic device of this embodiment is represented as a general-purpose computing device. The components of the electronic device may include, but are not limited to: the above-mentioned at least one processor, the above-mentioned at least one memory, and a bus connecting different system components (including the memory and the processor). The memory is used to store executable instructions of the processor; the processor is configured to perform the above-described corn harvester loss rate control method by executing the executable instructions. Wherein, the memory stores program codes that can be executed by the processor to cause the processor to perform the various exemplary embodiments of the present invention described in the "Exemplary Methods" section above in this specification. step.

存储器可以包括易失性存储单元形式的可读介质,例如随机存取存储单元(RAM)和/或高速缓存存储单元,还可以进一步包括只读存储单元(ROM)。The memory may include readable media in the form of volatile storage units, such as random access storage units (RAM) and/or cache storage units, and may further include read only storage units (ROM).

存储器还可以包括具有一组(至少一个)程序模块的程序/实用工具,这样的程序模块包括但不限于:操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。The memory may also include a program/utility having a set (at least one) of program modules including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of these examples One or some combination may include an implementation of a network environment.

总线可以为表示几类总线结构中的一种或多种,包括存储单元总线或者存储单元控制器、外围总线、图形加速端口、处理单元或者使用多种总线结构中的任意总线结构的局域总线。The bus can be one or more representing several types of bus structures, including a memory cell bus or memory cell controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local bus using any of a variety of bus structures .

电子设备也可以与一个或多个外部设备(例如键盘、指向设备、蓝牙设备等)通信,还可与一个或者多个使得用户能与该电子设备交互的设备通信,和/或与使得该电子设备能与一个或多个其它计算设备进行通信的任何设备(例如路由器、调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口进行。并且,电子设备还可以通过网络适配器与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。网络适配器通过总线与电子设备的其它模块通信。可以结合电子设备使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。The electronic device may also communicate with one or more external devices (eg, keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device, and/or communicate with the electronic device. A device can communicate with any device (eg, router, modem, etc.) that communicates with one or more other computing devices. This communication can take place through an input/output (I/O) interface. Also, the electronic device may communicate with one or more networks (eg, a local area network (LAN), a wide area network (WAN), and/or a public network such as the Internet) through a network adapter. The network adapter communicates with other modules of the electronic device through the bus. Other hardware and/or software modules may be used in conjunction with the electronic device, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.

通过以上的实施方式的描述,本领域的技术人员易于理解,这里描述的示例实施方式可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此,根据本发明实施方式的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中或网络上,包括若干指令以使得一台计算设备(可以是个人计算机、服务器、终端装置、或者网络设备等)执行根据本发明实施方式的方法。From the description of the above embodiments, those skilled in the art can easily understand that the exemplary embodiments described herein may be implemented by software, or may be implemented by software combined with necessary hardware. Therefore, the technical solutions according to the embodiments of the present invention can be embodied in the form of software products, and the software products can be stored in a non-volatile storage medium (which can be CD-ROM, U disk, mobile hard disk, etc.) or on the network , including several instructions to cause a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to an embodiment of the present invention.

本发明基于模糊神经网络算法,把神经网络的学习与计算功能融入模糊系统,将模糊系统类人的IF-Then规则嵌入神经网络,在保持模糊控制系统较强的知识表达能力的同时又提高其自适应能力,并具有自学习能力,通过对玉米播种机的籽粒回收装置的电机转速控制的神经网络算法的优化,实现了降低玉米收获损失率。Based on the fuzzy neural network algorithm, the invention integrates the learning and computing functions of the neural network into the fuzzy system, and embeds the human-like IF-Then rules of the fuzzy system into the neural network, so as to maintain the strong knowledge expression ability of the fuzzy control system and improve its It has self-adaptive ability and self-learning ability. Through the optimization of the neural network algorithm for controlling the motor speed of the grain recovery device of the corn planter, the loss rate of corn harvesting is reduced.

当然,本发明还可有其它多种实施例,在不背离本发明精神及其实质的情况下,熟悉本领域的技术人员当可根据本发明作出各种相应的改变和变形,但这些相应的改变和变形都应属于本发明所附的权利要求的保护范围。Of course, the present invention can also have other various embodiments, without departing from the spirit and essence of the present invention, those skilled in the art can make various corresponding changes and modifications according to the present invention, but these corresponding Changes and deformations should belong to the protection scope of the appended claims of the present invention.

Claims (10)

1.一种玉米收获机损失率控制方法,其特征在于,包括如下步骤:1. a corn harvester loss rate control method, is characterized in that, comprises the steps: S100、构建双输入单输出的模糊神经网络控制器,所述模糊神经网络控制器包括前件网络和后件网络;S100, constructing a dual-input and single-output fuzzy neural network controller, where the fuzzy neural network controller includes an antecedent network and a consequent network; S200、采用遗传算法-粒子群算法进行离线学习,通过对系统在先运行数据的学习初步确定所述模糊神经网络控制器中需要学习的权值和隶属度函数中心和宽度;以及S200, adopting the genetic algorithm-particle swarm algorithm for offline learning, and preliminarily determining the weights and the center and width of the membership function to be learned in the fuzzy neural network controller by learning the previous operating data of the system; and S300、采用BP算法进行在线学习,建立所述模糊神经网络控制器的连接权值,实时检测玉米收获机籽粒回收装置的转速,结合在线学习实时调整所述模糊神经网络控制器中的可调参数,使所述模糊神经网络控制器适应所述玉米收获机籽粒回收装置的机械性能变化,并跟踪玉米收获率设定值。S300, using the BP algorithm to perform online learning, establishing the connection weights of the fuzzy neural network controller, detecting the rotation speed of the grain recovery device of the corn harvester in real time, and adjusting the adjustable parameters in the fuzzy neural network controller in real time in combination with the online learning , so that the fuzzy neural network controller adapts to the mechanical performance changes of the corn harvester grain recovery device, and tracks the corn harvest rate set value. 2.如权利要求1所述的玉米收获机损失率控制方法,其特征在于,所述前件网络为四层网络结构,包括:2. The method for controlling the loss rate of a corn harvester as claimed in claim 1, wherein the antecedent network is a four-layer network structure, comprising: 输入层,取输入玉米收获机的有功功率偏差和有功功率偏差变化率分别为y1,y2,所述输入层的节点数N1=2,表达式如下:In the input layer, the active power deviation and the active power deviation change rate of the input corn harvester are taken as y 1 and y 2 respectively, and the number of nodes in the input layer is N 1 =2, and the expression is as follows:
Figure FDA0003186018480000011
Figure FDA0003186018480000011
其中,e为跟踪误差,
Figure FDA0003186018480000012
为性能参数变量跟踪误差变化率,c为机械性能变化值,y为机械性能实际检测值;
where e is the tracking error,
Figure FDA0003186018480000012
is the change rate of the tracking error of the performance parameter variable, c is the change value of the mechanical property, and y is the actual detection value of the mechanical property;
模糊化层,将输入变量y1、y2分别划分为7个模糊子集{NB,NM,NS,O,PS,PM,PB},作为所述模糊化层的节点,每个节点代表一个语言变量值;它们的隶属度函数均采用高斯型函数,各语言变量的隶属度函数分别为:Fuzzy layer, the input variables y 1 , y 2 are divided into 7 fuzzy subsets {NB, NM, NS, O, PS, PM, PB}, as the nodes of the fuzzy layer, each node represents a The values of linguistic variables; their membership functions are all Gaussian functions, and the membership functions of each linguistic variable are:
Figure FDA0003186018480000013
Figure FDA0003186018480000013
其中,
Figure FDA0003186018480000014
为第一层的输入在相应语言变量值的模糊论域的隶属度函数,yi为输入玉米收获机的有功功率偏差,cij和σij(i=1,2,…,n,j=1,2,…mi)分别为隶属度函数的中心和宽度,n为输入变量个数,mi为输入变量xi的模糊分割数,n=2,m1=m2=7;所述模糊化层的节点数N2=m1+m2=14;
in,
Figure FDA0003186018480000014
is the membership function of the input of the first layer in the fuzzy domain of the corresponding linguistic variable value, y i is the active power deviation of the input corn harvester, c ij and σ ij (i=1,2,...,n,j= 1 , 2 , The number of nodes in the fuzzification layer N 2 =m 1 +m 2 =14;
模糊规则计算层,用于匹配模糊规则的前件,计算每条所述模糊规则的适应度:The fuzzy rule calculation layer is used to match the antecedents of the fuzzy rules, and calculate the fitness of each fuzzy rule:
Figure FDA0003186018480000021
Figure FDA0003186018480000021
其中,αm为模糊推理操作的计算结果,
Figure FDA0003186018480000022
为隶属度值,
Figure FDA0003186018480000023
为下一节点隶属度值,j1=j2=1,2,…,7;,m=m1×m2=7×7=49,所述模糊规则计算层的节点数N3=49;
Among them, α m is the calculation result of the fuzzy inference operation,
Figure FDA0003186018480000022
is the membership value,
Figure FDA0003186018480000023
is the membership value of the next node, j 1 =j 2 =1,2,...,7; m=m 1 ×m 2 =7×7=49, the number of nodes in the fuzzy rule calculation layer N 3 =49 ;
归一化层,用于实现归一化操作;The normalization layer is used to realize the normalization operation;
Figure FDA0003186018480000024
Figure FDA0003186018480000024
其中,
Figure FDA0003186018480000025
为加权系数,αi为加权系数累加,所述归一化层的节点数N4=N3=49。
in,
Figure FDA0003186018480000025
is the weighting coefficient, α i is the weighting coefficient accumulation, and the number of nodes in the normalization layer is N 4 =N 3 =49.
3.如权利要求2所述的玉米收获机损失率控制方法,其特征在于,所述后件网络为三层网络结构,包括:3. The method for controlling the loss rate of a corn harvester as claimed in claim 2, wherein the latter network is a three-layer network structure, comprising: 第一层,用于将输入变量传递给下一层,所述第一层共有3个节点,第一个节点的输入值为x0=1,用于提供模糊规则后件中的常数项;第二和第三个节点分别输入x1,x2The first layer is used to pass the input variable to the next layer, the first layer has 3 nodes in total, and the input value of the first node is x 0 =1, which is used to provide the constant term in the consequent of the fuzzy rule; The second and third nodes respectively input x 1 , x 2 ; 第二层,用于计算每一条规则后件,共有49个节点,每个节点代表一条规则:The second layer is used to calculate the consequent of each rule. There are 49 nodes in total, and each node represents a rule:
Figure FDA0003186018480000026
Figure FDA0003186018480000026
其中,ym为第m条规则的后件网络输出,
Figure FDA0003186018480000027
为连接权值,k=0,1,2,m=1,2,3,…,49,x1为对应节点的规则,x2为第二节点对应规则;
where y m is the consequent network output of the mth rule,
Figure FDA0003186018480000027
is the connection weight, k=0, 1, 2, m=1, 2, 3,..., 49, x 1 is the rule corresponding to the node, and x 2 is the corresponding rule of the second node;
第三层,用于计算控制器输出y:The third layer, used to calculate the controller output y:
Figure FDA0003186018480000028
Figure FDA0003186018480000028
其中,αm为加权系数即各模糊规则的归一化适应度,ym为各规则后件的加权和,所述前件网络的输出为所述后件网络的连接权值。Among them, α m is the weighting coefficient, that is, the normalized fitness of each fuzzy rule, y m is the weighted sum of the consequent components of each rule, and the output of the antecedent network is the connection weight of the consequent network.
4.如权利要求3所述的玉米收获机损失率控制方法,其特征在于,步骤S200中的离线学习包括以下步骤:4. corn harvester loss rate control method as claimed in claim 3, is characterized in that, the off-line learning in step S200 comprises the following steps: S201、进行种群参数初始化,所述种群参数为各个粒子的初始位置;S201, initialize a population parameter, where the population parameter is the initial position of each particle; S202、计算粒子适应度F:F=abs(y-c),其中,y为预测输出,c为期望输出;S202. Calculate the particle fitness F: F=abs(y-c), where y is the predicted output, and c is the expected output; S203、寻找个体极值和群体极值,找出各个粒子的个体最小适应度值和全局最小适应度值;S203, find the individual extreme value and the group extreme value, and find out the individual minimum fitness value and the global minimum fitness value of each particle; S204、采用如下公式计算粒子的速度更新和位置更新:S204, the following formulas are used to calculate the speed update and position update of the particle:
Figure FDA0003186018480000031
Figure FDA0003186018480000031
Figure FDA0003186018480000032
Figure FDA0003186018480000032
其中,ω为惯性权重;d=1,2,…,D;i=1,2,…,n;k为当前迭代次数;Vid为粒子的速度,Pid为期望输出,Xid为实际输出;c1和c2是加速度因子,为非负常数;r1和r2为分布于[0,1]的随机数;Among them, ω is the inertia weight; d=1,2,...,D; i=1,2,...,n; k is the current iteration number; V id is the speed of the particle, P id is the expected output, and X id is the actual Output; c 1 and c 2 are acceleration factors, which are non-negative constants; r 1 and r 2 are random numbers distributed in [0,1]; S205、根据步骤S202中的公式计算速度和位置更新后的粒子适应度;S205, according to the formula in step S202, calculate the particle fitness after speed and position update; S206、根据步骤S204中的公式更新个体极值和群体极值;S206, update the individual extreme value and the group extreme value according to the formula in step S204; S207、采用如下公式计算当前个体与个体极值交叉,若适应度值减小,则接受:S207, the following formula is used to calculate the intersection of the current individual and the individual extreme value, if the fitness value decreases, accept: xij=xij(1-b)+Pijb,式中,xij为随机选择的个体极值,Pij为随机选择的群体极值,b为[0,1]间的随机数;x ij = x ij (1-b)+P ij b, where x ij is a randomly selected individual extreme value, P ij is a randomly selected group extreme value, and b is a random number between [0,1]; S208、采用如下公式计算当前个体与群体极值交叉,若适应度值减小,则接受:S208, the following formula is used to calculate the intersection of the current individual and the group extreme value, and if the fitness value decreases, accept: xij=xij(1-b)+Pgj,式中,xij为随机选择的个体极值,Pgj为随机选择的群体极值,b为[0,1]间的随机数;x ij = x ij (1-b)+P gj , where x ij is a randomly selected individual extreme value, P gj is a randomly selected group extreme value, and b is a random number between [0,1]; S209、采用如下公式计算当前个体自身进行变异,若适应度值减小,则接受:S209, the following formula is used to calculate the variation of the current individual itself, and if the fitness value decreases, accept:
Figure FDA0003186018480000033
Figure FDA0003186018480000033
式中,xij为随机选择的个体极值,xmax为xij的上界;xmin为xij的下界;f(g)=r2(1-g/Gmax)2;r2为一随机数;g是当前迭代数;Gmax是最大进化次数;r为[0,1]的随机数;In the formula, x ij is a randomly selected individual extreme value, x max is the upper bound of x ij ; x min is the lower bound of x ij ; f(g)=r 2 (1-g/G max ) 2 ; r 2 is A random number; g is the current iteration number; G max is the maximum number of evolutions; r is a random number of [0,1]; S210、满足最大进化代数则结束,否则返回步骤S204。S210. End if the maximum evolutionary algebra is satisfied, otherwise return to step S204.
5.如权利要求4所述的玉米收获机损失率控制方法,其特征在于,需要学习的所述可调参数包括连接权值和隶属函数的中心值cij和宽度σij5 . The method for controlling the loss rate of a corn harvester according to claim 4 , wherein the adjustable parameters to be learned include connection weights and the central value c ij and width σ ij of membership functions. 6 . 6.如权利要求5所述的玉米收获机损失率控制方法,其特征在于,所述连接权值的学习算法为:6. corn harvester loss rate control method as claimed in claim 5, is characterized in that, the learning algorithm of described connection weight is:
Figure FDA0003186018480000041
Figure FDA0003186018480000041
所述隶属函数的中心值cij的学习算法为:The learning algorithm of the central value c ij of the membership function is: cij(τ+1)=cij(τ)+Δcij(τ+1)+υ(cij(τ)-cij(τ-1));c ij (τ+1)=c ij (τ)+Δc ij (τ+1)+υ(c ij (τ)-c ij (τ-1)); 所述宽度σij的学习算法为:The learning algorithm of the width σ ij is: σij(τ+1)=σij(τ)+Δσij(τ+1)+υ(σij(τ)-σij(τ-1));σ ij (τ+1)=σ ij (τ)+Δσ ij (τ+1)+υ(σ ij (τ)-σ ij (τ-1)); 式中,i=1,2,j=1,2,3,…,7,τ表示时刻,τ+1表示下一时刻,τ-1表示前一时刻,υ为动量因子,
Figure FDA0003186018480000042
Figure FDA0003186018480000043
E为误差代价函数,η为学习速率。
In the formula, i=1,2, j=1,2,3,...,7, τ represents the moment, τ+1 represents the next moment, τ-1 represents the previous moment, υ is the momentum factor,
Figure FDA0003186018480000042
Figure FDA0003186018480000043
E is the error cost function, and η is the learning rate.
7.如权利要求6所述的玉米收获机损失率控制方法,其特征在于,所述误差代价函数E为:
Figure FDA0003186018480000044
7. corn harvester loss rate control method as claimed in claim 6, is characterized in that, described error cost function E is:
Figure FDA0003186018480000044
式中,c为期望输出,y为实际输出。In the formula, c is the expected output and y is the actual output.
8.一种玉米收获机损失率控制装置,其特征在于,包括模糊神经网络控制器,所述模糊神经网络控制器包括前件网络和后件网络,并采用上述权利要求1-7中任意一项所述的玉米收获机损失率控制方法,通过对玉米收获机籽粒回收装置的转速优化控制,实现降低玉米收获损失率。8. A corn harvester loss rate control device, characterized in that it comprises a fuzzy neural network controller, the fuzzy neural network controller comprises an antecedent network and a consequent network, and adopts any one of the above claims 1-7. In the method for controlling the loss rate of the corn harvester described in item 1, the reduction of the loss rate of the corn harvest is realized by optimally controlling the rotational speed of the grain recovery device of the corn harvester. 9.一种存储介质,其特征在于,所述存储介质存储有计算机程序,所述计算机程序被设置为运行时执行上述权利要求1-7中任一项所述的玉米收获机损失率控制方法。9 . A storage medium, characterized in that the storage medium stores a computer program, and the computer program is configured to execute the method for controlling the loss rate of a corn harvester according to any one of claims 1 to 7 when running. . 10.一种电子设备,其特征在于,包括:10. An electronic device, comprising: 处理器;以及processor; and 存储器,用于存储所述处理器的可执行指令;a memory for storing executable instructions for the processor; 其中,所述处理器配置为经由执行所述可执行指令来执行上述权利要求1-7中任一项所述的玉米收获机损失率控制方法。Wherein, the processor is configured to perform the corn harvester loss rate control method of any one of the preceding claims 1-7 by executing the executable instructions.
CN202110861876.5A 2021-07-29 2021-07-29 Loss rate control method and device for corn harvester, storage medium and equipment Pending CN113625560A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110861876.5A CN113625560A (en) 2021-07-29 2021-07-29 Loss rate control method and device for corn harvester, storage medium and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110861876.5A CN113625560A (en) 2021-07-29 2021-07-29 Loss rate control method and device for corn harvester, storage medium and equipment

Publications (1)

Publication Number Publication Date
CN113625560A true CN113625560A (en) 2021-11-09

Family

ID=78381457

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110861876.5A Pending CN113625560A (en) 2021-07-29 2021-07-29 Loss rate control method and device for corn harvester, storage medium and equipment

Country Status (1)

Country Link
CN (1) CN113625560A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114004339A (en) * 2021-11-12 2022-02-01 广东海洋大学 An urban lighting system adjustment method, device and storage medium based on width learning
CN115542719A (en) * 2022-09-23 2022-12-30 江苏大学 A combine harvester operating speed control system and method based on multi-operating parameter reward rewards
CN118625682A (en) * 2024-08-15 2024-09-10 绍兴达伽马纺织有限公司 Energy-saving control method and system for textile manufacturing

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104133372A (en) * 2014-07-09 2014-11-05 河海大学常州校区 Room temperature control algorithm based on fuzzy neural network
CN105862136A (en) * 2015-01-20 2016-08-17 中国农业机械化科学研究院 An automatic control method and device for a cotton seed delinter
CN109526381A (en) * 2019-01-07 2019-03-29 中国农业大学 A kind of low damage threshing control system of maize harvesting machine and method
CN111670680A (en) * 2020-07-16 2020-09-18 中国农业大学 A high moisture content corn harvesting drum speed control system and control method
CN112558473A (en) * 2020-11-27 2021-03-26 中国农业机械化科学研究院 Working parameter correction method of silage harvester based on recurrent neural network algorithm

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104133372A (en) * 2014-07-09 2014-11-05 河海大学常州校区 Room temperature control algorithm based on fuzzy neural network
CN105862136A (en) * 2015-01-20 2016-08-17 中国农业机械化科学研究院 An automatic control method and device for a cotton seed delinter
CN109526381A (en) * 2019-01-07 2019-03-29 中国农业大学 A kind of low damage threshing control system of maize harvesting machine and method
CN111670680A (en) * 2020-07-16 2020-09-18 中国农业大学 A high moisture content corn harvesting drum speed control system and control method
CN112558473A (en) * 2020-11-27 2021-03-26 中国农业机械化科学研究院 Working parameter correction method of silage harvester based on recurrent neural network algorithm

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
赵建波: "联合收割机负荷反馈智能控制系统的研究", 《中国优秀硕士学位论文全文数据库农业科技辑》, 15 July 2010 (2010-07-15), pages 51 - 56 *
陈永录 姜境: "农机作业故障200解", 黑龙江人民出版社, pages: 320 - 326 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114004339A (en) * 2021-11-12 2022-02-01 广东海洋大学 An urban lighting system adjustment method, device and storage medium based on width learning
CN114004339B (en) * 2021-11-12 2024-05-03 广东海洋大学 Urban lighting system adjusting method and device based on width learning and storage medium
CN115542719A (en) * 2022-09-23 2022-12-30 江苏大学 A combine harvester operating speed control system and method based on multi-operating parameter reward rewards
CN118625682A (en) * 2024-08-15 2024-09-10 绍兴达伽马纺织有限公司 Energy-saving control method and system for textile manufacturing
CN118625682B (en) * 2024-08-15 2024-10-22 绍兴达伽马纺织有限公司 Energy-saving control method and system for textile manufacturing

Similar Documents

Publication Publication Date Title
Palit et al. Computational intelligence in time series forecasting: theory and engineering applications
Dai et al. Seeker optimization algorithm for digital IIR filter design
CN113625560A (en) Loss rate control method and device for corn harvester, storage medium and equipment
Lima et al. Evolving fuzzy modeling using participatory learning
Salama et al. Learning neural network structures with ant colony algorithms
Salleh et al. A modified neuro-fuzzy system using metaheuristic approaches for data classification
Almeida et al. A multi-objective memetic and hybrid methodology for optimizing the parameters and performance of artificial neural networks
Ramchoun et al. New modeling of multilayer perceptron architecture optimization with regularization: an application to pattern classification
Li et al. Artificial evolution of neural networks and its application to feedback control
Abdullah et al. A Comparison Between Genetic Algorithm and Practical Swarm to Investigate the Reliability Allocation of Complex Network
CN104133372A (en) Room temperature control algorithm based on fuzzy neural network
CN114648147B (en) A wind power prediction method based on IPSO-LSTM
Kordík et al. Meta-learning approach to neural network optimization
El-Hassani et al. A new optimization model for MLP hyperparameter tuning: modeling and resolution by real-coded genetic algorithm
Mirjalili Evolutionary radial basis function networks
Stylios et al. Impact and applications of fuzzy cognitive map methodologies
Thakkar et al. Metaheuristics in classification, clustering, and frequent pattern mining
Gharehchopogh et al. A new hybrid whale optimization algorithm and golden jackal optimization for data clustering
Lee et al. A genetic algorithm based robust learning credit assignment cerebellar model articulation controller
Yang et al. [Retracted] Accuracy Analysis of Sports Performance Prediction Based on BP Neural Network Intelligent Algorithm
Kasabov Artificial neural networks. evolving connectionist systems
Younis et al. Improved hybrid grey wolf optimizer sine cosine algorithm (ihgwosca) trained artificial neural network (ann) for classification
Hammami et al. Discussion and review of the use of neural networks to improve the flexibility of smart grids in presence of distributed renewable ressources
Chan et al. Evolutionary computation for on-line and off-line parameter tuning of evolving fuzzy neural networks
Dhahri Biogeography-based optimization for weight optimization in Elman neural network compared with meta-heuristics methods

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20211109

RJ01 Rejection of invention patent application after publication