CN117891160B - Intelligent control system and method for switch cabinet - Google Patents

Intelligent control system and method for switch cabinet Download PDF

Info

Publication number
CN117891160B
CN117891160B CN202410285435.9A CN202410285435A CN117891160B CN 117891160 B CN117891160 B CN 117891160B CN 202410285435 A CN202410285435 A CN 202410285435A CN 117891160 B CN117891160 B CN 117891160B
Authority
CN
China
Prior art keywords
sliding window
operating data
data
center
noise performance
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202410285435.9A
Other languages
Chinese (zh)
Other versions
CN117891160A (en
Inventor
王漫飞
寇蓓
孟皓
赵乐
赵新奇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shaanxi Xigao Electric Technology Group Co ltd
Original Assignee
Shaanxi Xigao Electric Technology Co ltd
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 Shaanxi Xigao Electric Technology Co ltd filed Critical Shaanxi Xigao Electric Technology Co ltd
Priority to CN202410285435.9A priority Critical patent/CN117891160B/en
Publication of CN117891160A publication Critical patent/CN117891160A/en
Application granted granted Critical
Publication of CN117891160B publication Critical patent/CN117891160B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B11/00Automatic controllers
    • G05B11/01Automatic controllers electric
    • G05B11/36Automatic controllers electric with provision for obtaining particular characteristics, e.g. proportional, integral, differential
    • G05B11/42Automatic controllers electric with provision for obtaining particular characteristics, e.g. proportional, integral, differential for obtaining a characteristic which is both proportional and time-dependent, e.g. P. I., P. I. D.
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02BBOARDS, SUBSTATIONS OR SWITCHING ARRANGEMENTS FOR THE SUPPLY OR DISTRIBUTION OF ELECTRIC POWER
    • H02B1/00Frameworks, boards, panels, desks, casings; Details of substations or switching arrangements
    • H02B1/26Casings; Parts thereof or accessories therefor
    • H02B1/30Cabinet-type casings; Parts thereof or accessories therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Feedback Control In General (AREA)

Abstract

本发明涉及数据处理技术领域。具体涉及一种开关柜智能控制系统及方法。其中的方法包括:实时采集智能开关柜的运行数据,并设置滑动窗口,每采集一次所述运行数据,滑动窗口向右滑动一次;依据所述滑动窗口内的所有运行数据计算滑动窗口中心的运行数据的质量,并依据滑动窗口中心的运行数据的质量调节BP神经网络模型的学习率从而对BP神经网络模型进行优化;利用优化后的BP神经网络模型对PID算法进行优化,并利用优化后的PID算法对智能开关柜的运行数据进行控制。采用本发明的方法可以更加精准的对开关柜的运行数据进行控制,且可以提高开关柜智能控制系统的自适应性和鲁棒性。

The present invention relates to the field of data processing technology. Specifically, it relates to a switch cabinet intelligent control system and method. The method includes: real-time collection of the operation data of the intelligent switch cabinet, and setting a sliding window, each time the operation data is collected, the sliding window slides to the right once; the quality of the operation data at the center of the sliding window is calculated based on all the operation data in the sliding window, and the learning rate of the BP neural network model is adjusted according to the quality of the operation data at the center of the sliding window to optimize the BP neural network model; the PID algorithm is optimized using the optimized BP neural network model, and the operation data of the intelligent switch cabinet is controlled using the optimized PID algorithm. The method of the present invention can more accurately control the operation data of the switch cabinet, and can improve the adaptability and robustness of the switch cabinet intelligent control system.

Description

一种开关柜智能控制系统及方法A switch cabinet intelligent control system and method

技术领域Technical Field

本发明一般地涉及数据处理技术领域。更具体地,本发明涉及一种开关柜智能控制系统及方法。The present invention generally relates to the field of data processing technology. More specifically, the present invention relates to a switch cabinet intelligent control system and method.

背景技术Background technique

开关柜是一种电气设备和控制系统,主要用于电力系统的发电、输电、配电和电能转换过程中,其作为电力系统的重要组成部分,其电流分配和控制的准确性和可靠性直接影响到电力系统的安全稳定运行。PID(比例-积分-微分)控制算法是最广泛使用的一种反馈控制方法。PID算法简单、有效,通过调节、/>和/>三个参数来控制系统输出,以达到预期的控制效果。然而,传统的PID控制算法在面对复杂系统或者非线性系统时,参数调节往往需要依赖经验和反复试验,这在某些情况下可能效率低下且不够精确。随着人工智能技术的发展,尤其是神经网络的应用,为解决传统PID控制在复杂系统中的局限性提供了新的可能。BP(反向传播)神经网络,作为一种经典的深度学习模型,能够通过学习输入与输出间的复杂关系来优化参数。将BP神经网络应用于PID控制参数的优化,即通过神经网络来学习和调整PID控制器的/>、/>和/>三个参数,可以实现更加智能和精确的控制。Switchgear is an electrical equipment and control system, which is mainly used in the power generation, transmission, distribution and power conversion process of the power system. As an important part of the power system, the accuracy and reliability of its current distribution and control directly affect the safe and stable operation of the power system. PID (proportional-integral-differential) control algorithm is the most widely used feedback control method. PID algorithm is simple and effective. It can adjust the 、/> and/> Three parameters are used to control the system output to achieve the desired control effect. However, when facing complex systems or nonlinear systems, traditional PID control algorithms often need to rely on experience and repeated trials to adjust parameters, which may be inefficient and imprecise in some cases. With the development of artificial intelligence technology, especially the application of neural networks, new possibilities are provided to solve the limitations of traditional PID control in complex systems. BP (back propagation) neural network, as a classic deep learning model, can optimize parameters by learning the complex relationship between input and output. Applying BP neural network to the optimization of PID control parameters, that is, learning and adjusting the PID controller through neural network/> 、/> and/> Three parameters can achieve more intelligent and precise control.

现有BP神经网络的问题在于,由于在开关柜触摸屏智能控制场景下,周围环境中的电磁干扰较多,这会导致利用传感器采集到的运行数据中存在大量噪声,这些噪声也存在着随机性和不确定性,而这会影响到BP神经网络在反向传播中学习率的选取,因为输入运行数据的质量不确定,因此固定的学习率可能无法适用于所有电流数据,从而导致得到的PID控制器中、/>和/>三个参数的准确性不足,从而会降低运行数据控制的准确性,进而导致对开关柜的控制的不稳定和不可靠,降低开关柜触摸屏智能控制系统的控制精度和效率。The problem with the existing BP neural network is that in the switch cabinet touch screen intelligent control scenario, there is a lot of electromagnetic interference in the surrounding environment, which will cause a lot of noise in the operating data collected by the sensor. These noises are also random and uncertain, which will affect the selection of the learning rate of the BP neural network in the back propagation. Because the quality of the input operating data is uncertain, the fixed learning rate may not be applicable to all current data, resulting in the obtained PID controller. 、/> and/> The inaccuracy of the three parameters is insufficient, which will reduce the accuracy of the operating data control, leading to unstable and unreliable control of the switch cabinet, and reducing the control accuracy and efficiency of the switch cabinet touch screen intelligent control system.

发明内容Summary of the invention

为解决上述一个或多个技术问题,本发明在如下的多个方面中提供方案。To solve one or more of the above technical problems, the present invention provides solutions in the following aspects.

在第一方面中,本发明提供了一种开关柜智能控制方法,包括:In a first aspect, the present invention provides a switch cabinet intelligent control method, comprising:

实时采集智能开关柜的运行数据,在采集之前预设有滑动窗口,每采集一次所述运行数据,滑动窗口向右滑动一次;Collect the operation data of the intelligent switch cabinet in real time. A sliding window is preset before the collection. Each time the operation data is collected, the sliding window slides to the right once.

依据所述滑动窗口内的所有运行数据计算滑动窗口中心的运行数据的质量,并依据滑动窗口中心的运行数据的质量调节BP神经网络模型的学习率从而对BP神经网络模型进行优化,BP神经网络模型的学习率与运行数据的质量呈反比;所述BP神经网络模型用于对PID算法的参数进行优化;所述PID算法用于对智能开关柜的运行数据进行控制;所述运行数据的质量用于表征采集的运行数据与运行数据真实值的接近程度;The quality of the operating data at the center of the sliding window is calculated based on all the operating data in the sliding window, and the learning rate of the BP neural network model is adjusted based on the quality of the operating data at the center of the sliding window to optimize the BP neural network model, and the learning rate of the BP neural network model is inversely proportional to the quality of the operating data; the BP neural network model is used to optimize the parameters of the PID algorithm; the PID algorithm is used to control the operating data of the intelligent switch cabinet; the quality of the operating data is used to characterize the closeness between the collected operating data and the true value of the operating data;

利用优化后的BP神经网络模型对PID算法的比例调节系数、积分调节系数/>和微分调节系数/>三个参数进行优化,并利用优化后的PID算法对智能开关柜的运行数据进行控制。Using the optimized BP neural network model to adjust the proportional coefficient of the PID algorithm , integral adjustment coefficient/> and differential adjustment coefficient/> The three parameters are optimized, and the optimized PID algorithm is used to control the operation data of the intelligent switch cabinet.

在一个实施例中,所述计算滑动窗口中心的运行数据的质量包括:In one embodiment, the quality of the running data of the sliding window center is calculated including:

计算滑动窗口中心的运行数据的噪声表现程度;Calculate the noise representation of the running data at the center of the sliding window;

依据滑动窗口对应时间范围内的绝对运行数据的方差对滑动窗口中心的运行数据的噪声表现程度进行修正,且所述方差越大,修正后的所述噪声表现程度越小;所述绝对运行数据是指开关柜触摸屏上的运行数据设置值;The noise performance degree of the operating data at the center of the sliding window is corrected according to the variance of the absolute operating data within the time range corresponding to the sliding window, and the larger the variance, the smaller the corrected noise performance degree; the absolute operating data refers to the operating data setting value on the switch cabinet touch screen;

依据修正后的噪声表现程度计算滑动窗口中心的运行数据的质量。The quality of the running data at the center of the sliding window is calculated based on the corrected noise representation.

在一个实施例中,计算滑动窗口中心的运行数据的噪声表现程度包括:In one embodiment, calculating the noise performance of the running data at the center of the sliding window includes:

依据滑动窗口内的所有运行数据计算滑动窗口中心的运行数据在滑动窗口内的噪声表现程度,并将其记为滑动窗口中心的运行数据的第一噪声表现程度;Calculate the noise performance degree of the operating data at the center of the sliding window in the sliding window according to all the operating data in the sliding window, and record it as the first noise performance degree of the operating data at the center of the sliding window;

计算滑动窗口内的所有运行数据的均值;Calculate the mean of all running data within the sliding window;

将滑动窗口内与所述均值偏离程度最大的数据点去除,依据滑动窗口内的剩余运行数据计算滑动窗口中心的运行数据在滑动窗口内的噪声表现程度,并将其记为滑动窗口中心的运行数据的第二噪声表现程度;Remove the data point with the largest deviation from the mean in the sliding window, calculate the noise performance degree of the operating data at the center of the sliding window in the sliding window according to the remaining operating data in the sliding window, and record it as the second noise performance degree of the operating data at the center of the sliding window;

依据滑动窗口中心的运行数据的第一噪声表现程度和第二噪声表现程度计算滑动窗口中心的运行数据的噪声表现程度;其计算表达式为:The noise performance degree of the operating data at the center of the sliding window is calculated according to the first noise performance degree and the second noise performance degree of the operating data at the center of the sliding window; the calculation expression is:

式中,表示滑动窗口中心的运行数据的噪声表现程度,/>表示滑动窗口中心的运行数据的第一噪声表现程度,/>表示滑动窗口中心的运行数据的第二噪声表现程度。In the formula, Indicates the degree of noise in the running data at the center of the sliding window, /> represents the first noise performance level of the operating data at the center of the sliding window, /> Indicates the second noise level of the operating data at the center of the sliding window.

在一个实施例中,计算滑动窗口中心的运行数据的第一噪声表现程度包括:In one embodiment, calculating the first noise performance level of the operating data at the center of the sliding window includes:

对滑动窗口内所有数据点进行拟合,得到拟合曲线;Fit all data points in the sliding window to obtain a fitting curve;

依据所述拟合曲线和滑动窗口内所有数据点的数值计算滑动窗口中心的运行数据的第一噪声表现程度;其计算表达式为:The first noise performance degree of the operating data at the center of the sliding window is calculated based on the fitting curve and the values of all data points in the sliding window; the calculation expression is:

式中,表示滑动窗口中心的运行数据的第一噪声表现程度,/>表示滑动窗口内数据点的个数,/>表示第j组相邻数据点对应在拟合曲线上的积分,/>表示滑动窗口内第j个运行数据点,/>则表示第j个运行数据点的取值,/>表示滑动窗口内第j+1个运行数据点,/>表示滑动窗口内第j+1个运行数据点的取值,/>表示了第j组相邻数据点对应原始数据的梯形面积/>表示在滑动窗口内进行曲线拟合过程中相邻两个数据点的损失。In the formula, represents the first noise performance level of the operating data at the center of the sliding window, /> Indicates the number of data points in the sliding window, /> represents the integral of the jth group of adjacent data points on the fitting curve, /> represents the jth running data point in the sliding window,/> It represents the value of the jth running data point, /> Indicates the j+1th running data point in the sliding window,/> Indicates the value of the j+1th running data point in the sliding window, /> It represents the trapezoidal area of the original data corresponding to the jth group of adjacent data points/> Represents the loss of two adjacent data points during curve fitting within the sliding window.

在一个实施例中,修正后的噪声表现程度计算表达式如下:In one embodiment, the modified noise performance degree calculation expression is as follows:

式中,与/>分别表示第i个运行数据点/>修正前和修正后的噪声表现程度;/>表示滑动窗口对应的时间范围内绝对运行数据点的方差。In the formula, With/> Respectively represent the i-th running data point/> The degree of noise performance before and after correction; /> Represents the variance of the absolute running data points within the time range corresponding to the sliding window.

在一个实施例中,所述滑动窗口中心的运行数据的质量计算表达式为:In one embodiment, the quality calculation expression of the running data at the center of the sliding window is:

,

其中表示第i个运行数据点/>的质量,/>为第i个运行数据点/>的修正后的噪声表现程度。in Indicates the i-th running data point/> The quality of For the i-th running data point/> The corrected noise performance level.

在一个实施例中,调节BP神经网络模型的学习率包括:In one embodiment, adjusting the learning rate of the BP neural network model includes:

依据滑动窗口中心的运行数据的质量计算BP神经网络模型的学习率,其计算表达式为:The learning rate of the BP neural network model is calculated based on the quality of the running data at the center of the sliding window. The calculation expression is:

式中,表示BP神经网络模型的学习率,/>表示滑动窗口中心的运行数据的质量。In the formula, Represents the learning rate of the BP neural network model,/> Indicates the quality of the running data at the center of the sliding window.

在一个实施例中,所述BP神经网络模型的隐藏层数量为3,激活函数采用ReLU函数,输出层的神经元数量为3,反向传播过程采用梯度下降算法,学习率初始值为0.5。In one embodiment, the number of hidden layers of the BP neural network model is 3, the activation function adopts the ReLU function, the number of neurons in the output layer is 3, the back propagation process adopts the gradient descent algorithm, and the initial value of the learning rate is 0.5.

在第二方面中,本发明提供了一种开关柜智能控制系统,包括处理器和存储器,所述存储器存储有计算机程序指令,当所述计算机程序指令被所述处理器执行时实现本发明的开关柜智能控制方法。In a second aspect, the present invention provides a switch cabinet intelligent control system, comprising a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, the switch cabinet intelligent control method of the present invention is implemented.

本发明的技术效果为:本发明的开关柜智能控制方法通过判断运行数据点的质量自适应调整学习率,对于质量大的运行数据点应该设置较小的学习率,旨在保证准确的模型训练结果;对于质量小的运行数据点设置较大的学习率,通过分析用于BP神经网络训练的运行数据质量的优劣自适应调整学习率,相较于传统BP神经网络固定大小的学习率,能够在训练的过程中保证寻求最优解的同时加快收敛速度,从而使得对开关柜的运行数据的控制更加精准;再者,BP神经网络能够学习非线性关系,而传统的PID控制器是线性的,通过神经网络,可以更好地捕捉电流数据与PID参数之间的复杂非线性关系,从而提高开关柜智能控制系统的自适应性、鲁棒性、稳定性以及可靠性;此外,由于开关柜的运行数据设置值不存在噪声,运行数据设置值为绝对运行数据,采集的运行数据为相对运行数据。如果绝对运行数据点在对应时间范围内数据未发生变化,则说明此时的相对运行数据点的噪声表现程度的绝对可信,因为这种情况下,相对运行数据变化的引起因素肯定是噪声导致的;反之绝对运行数据点在对应时间范围内数据发生变化则说明相对运行数据的变化可能是由于运行数据设置值的变化而引起的,则其噪声表现程度可信度越低。因此,依据滑动窗口对应时间范围内的绝对运行数据的方差对滑动窗口中心的运行数据的噪声表现程度进行修正,可使得计算出的噪声表现程度更加准确,从而使得计算出的运行数据点的质量更加准确,从而进一步提高了对开关柜控制的精确性、稳定性以及可靠性。The technical effect of the present invention is as follows: the intelligent control method of the switch cabinet of the present invention adaptively adjusts the learning rate by judging the quality of the operating data points. A smaller learning rate should be set for the operating data points with large quality, aiming to ensure accurate model training results; a larger learning rate is set for the operating data points with small quality, and the learning rate is adaptively adjusted by analyzing the quality of the operating data used for BP neural network training. Compared with the fixed-size learning rate of the traditional BP neural network, it can ensure the search for the optimal solution while accelerating the convergence speed during the training process, thereby making the control of the operating data of the switch cabinet more accurate; furthermore, the BP neural network can learn nonlinear relationships, while the traditional PID controller is linear. Through the neural network, the complex nonlinear relationship between the current data and the PID parameters can be better captured, thereby improving the adaptability, robustness, stability and reliability of the intelligent control system of the switch cabinet; in addition, since there is no noise in the operating data setting value of the switch cabinet, the operating data setting value is the absolute operating data, and the collected operating data is the relative operating data. If the absolute operating data point does not change within the corresponding time range, it means that the noise performance of the relative operating data point at this time is absolutely reliable, because in this case, the cause of the change in the relative operating data is definitely caused by noise; on the contrary, if the absolute operating data point changes within the corresponding time range, it means that the change in the relative operating data may be caused by the change in the operating data setting value, and the reliability of its noise performance is lower. Therefore, according to the variance of the absolute operating data within the corresponding time range of the sliding window, the noise performance of the operating data at the center of the sliding window is corrected, which can make the calculated noise performance more accurate, thereby making the quality of the calculated operating data point more accurate, thereby further improving the accuracy, stability and reliability of the switch cabinet control.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

通过参考附图阅读下文的详细描述,本发明示例性实施方式的上述以及其他目的、特征和优点将变得易于理解。在附图中,以示例性而非限制性的方式示出了本发明的若干实施方式,并且相同或对应的标号表示相同或对应的部分,其中:By reading the following detailed description with reference to the accompanying drawings, the above and other objects, features and advantages of the exemplary embodiments of the present invention will become readily understood. In the accompanying drawings, several embodiments of the present invention are shown in an exemplary and non-limiting manner, and the same or corresponding reference numerals represent the same or corresponding parts, wherein:

图1是示意性示出本发明的实施例的开关柜智能控制方法流程图;FIG1 is a flow chart schematically showing a switch cabinet intelligent control method according to an embodiment of the present invention;

图2是示意性示出本发明的实施例的计算滑动窗口中心的运行数据的质量方法流程图;FIG2 is a flow chart schematically illustrating a method for calculating the quality of operating data of a sliding window center according to an embodiment of the present invention;

图3是示意性示出本发明的实施例的计算滑动窗口中心的运行数据的噪声表现程度方法流程图;3 is a flow chart schematically illustrating a method for calculating the noise performance degree of operating data at the center of a sliding window according to an embodiment of the present invention;

图4是示意性示出本发明的实施例的计算滑动窗口中心的运行数据的第一噪声表现程度方法流程图;4 is a flow chart schematically illustrating a method for calculating a first noise performance degree of operating data at the center of a sliding window according to an embodiment of the present invention;

图5是示意性示出本发明的实施例的拟合误差示意图;FIG5 is a schematic diagram schematically showing a fitting error of an embodiment of the present invention;

图6是示意性示出本发明的实施例的开关柜智能控制系统结构示意图。FIG. 6 is a schematic diagram showing the structure of a switch cabinet intelligent control system according to an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

下面结合附图来详细描述本发明的具体实施方式。The specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.

开关柜智能控制方法实施例:Switch cabinet intelligent control method embodiment:

如图1所示,本发明的开关柜智能控制方法,包括:As shown in FIG1 , the switch cabinet intelligent control method of the present invention includes:

S101、实时采集智能开关柜的运行数据,在采集之前预设有滑动窗口,每采集一次所述运行数据,滑动窗口向右滑动一次;S101, collecting the operation data of the intelligent switch cabinet in real time, and a sliding window is preset before the collection, and each time the operation data is collected, the sliding window slides to the right once;

采集的智能开关柜的运行数据可以是智能开关柜的电流、电压或者功率等运行参数。若采集的运行数据为智能开关柜的电流,则可采用电流传感器;若采集的运行数据为智能开关柜的电压,则可采用电压传感器。对智能开关柜的运行数据的采集频率为10HZ。The collected operation data of the intelligent switch cabinet can be the operation parameters of the intelligent switch cabinet such as current, voltage or power. If the collected operation data is the current of the intelligent switch cabinet, a current sensor can be used; if the collected operation data is the voltage of the intelligent switch cabinet, a voltage sensor can be used. The collection frequency of the operation data of the intelligent switch cabinet is 10HZ.

滑动窗口的长度为奇数个数据点,优选地,本实施例中将滑动窗口的长度设置为11个数据点。The length of the sliding window is an odd number of data points. Preferably, in this embodiment, the length of the sliding window is set to 11 data points.

S102、对BP神经网络模型进行优化,具体为:依据所述滑动窗口内的所有运行数据计算滑动窗口中心的运行数据的质量,并依据滑动窗口中心的运行数据的质量调节BP神经网络模型的学习率从而对BP神经网络模型进行优化,BP神经网络模型的学习率与运行数据的质量呈反比;所述BP神经网络模型用于对PID算法的参数进行优化;所述PID算法用于对智能开关柜的运行数据进行控制;S102, optimizing the BP neural network model, specifically: calculating the quality of the operating data at the center of the sliding window according to all the operating data in the sliding window, and adjusting the learning rate of the BP neural network model according to the quality of the operating data at the center of the sliding window to optimize the BP neural network model, wherein the learning rate of the BP neural network model is inversely proportional to the quality of the operating data; the BP neural network model is used to optimize the parameters of the PID algorithm; the PID algorithm is used to control the operating data of the intelligent switch cabinet;

BP神经网络模型的输入为智能开关柜的运行数据采集值、智能开关柜的运行数据设置值以及PID算法的比例调节系数的初始值、积分调节系数/>的初始值和微分调节系数/>的初始值。BP神经网络模型的隐藏层数量为3,激活函数采用ReLU函数,输出层的神经元数量为3,反向传播过程采用梯度下降算法。BP神经网络模型的学习率初始值可设置为0.5。The input of the BP neural network model is the operation data collection value of the intelligent switch cabinet, the operation data setting value of the intelligent switch cabinet, and the proportional adjustment coefficient of the PID algorithm. Initial value, integral adjustment coefficient/> The initial value and differential adjustment coefficient of The number of hidden layers of the BP neural network model is 3, the activation function uses the ReLU function, the number of neurons in the output layer is 3, and the back propagation process uses the gradient descent algorithm. The initial value of the learning rate of the BP neural network model can be set to 0.5.

采集的运行数据的质量是指运行数据的真实性,即采集的运行数据与开关柜的真实运行数据的接近程度。通常情况下,采集的运行数据的真实性主要受到噪声的影响,噪声越大,真实性越差,因此采集的运行数据的质量可基于运行数据的噪声表现程度计算得出。The quality of the collected operating data refers to the authenticity of the operating data, that is, the degree of closeness between the collected operating data and the actual operating data of the switch cabinet. Generally, the authenticity of the collected operating data is mainly affected by noise. The greater the noise, the worse the authenticity. Therefore, the quality of the collected operating data can be calculated based on the noise performance of the operating data.

因为数据采集装置在智能开关柜场景中会受到电磁干扰导致采集到的运行数据出现噪声,同时在进行BP神经网络模型训练时,学习率的轻微变化都会引起模型的稳定性和准确性,而由于运行数据质量的不同,统一的学习率对于不同质量的运行数据训练的准确性不同,从而影响后续训练好的BP神经网络模型的准确性,导致其输出的PID算法的参数的准确性变差,进而导致对开关柜运行参数控制的准确性变差。本步骤通过分析运行数据的质量自适应调整BP神经网络模型学习率大小,从而在保证模型稳定性的同时提高BP神经网络模型训练的准确性。Because the data acquisition device in the intelligent switch cabinet scenario will be subject to electromagnetic interference, resulting in noise in the collected operating data. At the same time, when training the BP neural network model, a slight change in the learning rate will cause the stability and accuracy of the model. Due to the different quality of the operating data, the uniform learning rate has different training accuracy for operating data of different quality, which affects the accuracy of the subsequently trained BP neural network model, resulting in the deterioration of the accuracy of the parameters of the output PID algorithm, and then the deterioration of the accuracy of the control of the switch cabinet operating parameters. This step analyzes the quality of the operating data to adaptively adjust the learning rate of the BP neural network model, thereby improving the accuracy of the BP neural network model training while ensuring the stability of the model.

S103、利用优化后的BP神经网络模型对PID算法进行优化,并利用优化后的PID算法对智能开关柜的运行数据进行控制,具体为:利用优化后的BP神经网络模型对PID算法的比例调节系数、积分调节系数/>和微分调节系数/>三个参数进行优化,并利用优化后的PID算法对智能开关柜的运行数据进行控制。S103, using the optimized BP neural network model to optimize the PID algorithm, and using the optimized PID algorithm to control the operation data of the intelligent switch cabinet, specifically: using the optimized BP neural network model to adjust the proportional coefficient of the PID algorithm , integral adjustment coefficient/> and differential adjustment coefficient/> The three parameters are optimized, and the optimized PID algorithm is used to control the operation data of the intelligent switch cabinet.

需要说明的是采用本发明的开关柜智能控制方法对开关柜进行控制时,在首次对PID算法进行优化之前采用首次优化前的PID算法对智能开关柜的运行数据进行控制,在首次对BP神经网络模型进行优化之前采用首次优化前的BP神经网络模型对PID算法的参数进行优化。It should be noted that when the switch cabinet intelligent control method of the present invention is used to control the switch cabinet, before the PID algorithm is optimized for the first time, the PID algorithm before the first optimization is used to control the operating data of the intelligent switch cabinet, and before the BP neural network model is optimized for the first time, the BP neural network model before the first optimization is used to optimize the parameters of the PID algorithm.

在首次优化之前,PID算法设置有比例调节系数、积分调节系数/>和微分调节系数/>的初始值,其中比例调节系数/>的初始值可设置为0.2,积分调节系数/>的初始值可设置为0.01,微分调节系数/>的初始值可设置为0.2。Before the first optimization, the PID algorithm is set with a proportional adjustment coefficient , integral adjustment coefficient/> and differential adjustment coefficient/> The initial value of the proportional adjustment coefficient /> The initial value can be set to 0.2, the integral adjustment coefficient/> The initial value can be set to 0.01, the differential adjustment coefficient/> The initial value of can be set to 0.2.

本发明的开关柜智能控制方法通过判断运行数据点的质量自适应调整学习率,对于质量大的运行数据点应该设置较小的学习率,旨在保证准确的模型训练结果;对于质量小的运行数据点设置较大的学习率,通过分析用于BP神经网络训练的运行数据质量的优劣自适应调整学习率,相较于传统BP神经网络固定大小的学习率,能够在训练的过程中保证寻求最优解的同时加快收敛速度,从而使得对开关柜运行数据的控制更加精准;此外,BP神经网络能够学习非线性关系,而传统的PID控制器是线性的,通过神经网络,可以更好地捕捉电流数据与PID参数之间的复杂非线性关系,从而提高开关柜智能控制系统的自适应性和鲁棒性。The switch cabinet intelligent control method of the present invention adaptively adjusts the learning rate by judging the quality of the operating data points. A smaller learning rate should be set for operating data points with large quality, aiming to ensure accurate model training results; a larger learning rate is set for operating data points with small quality, and the learning rate is adaptively adjusted by analyzing the quality of the operating data used for BP neural network training. Compared with the fixed-size learning rate of the traditional BP neural network, it can ensure the search for the optimal solution while accelerating the convergence speed during the training process, thereby making the control of the switch cabinet operating data more precise; in addition, the BP neural network can learn nonlinear relationships, while the traditional PID controller is linear. Through the neural network, the complex nonlinear relationship between current data and PID parameters can be better captured, thereby improving the adaptability and robustness of the switch cabinet intelligent control system.

在一个实施例中,如图2所示,所述计算滑动窗口中心的运行数据的质量包括:In one embodiment, as shown in FIG2 , the quality of the running data of the sliding window center is calculated including:

S201、计算滑动窗口中心的运行数据的噪声表现程度;S201, calculating the noise performance level of the operating data at the center of the sliding window;

噪声表现程度可依据对滑动窗口内的所有数据点进行曲线拟合产生的拟合损失来进行计算。The degree of noise representation can be calculated based on the fitting loss generated by curve fitting all data points in the sliding window.

由于如果滑动窗口中心的运行数据是噪声,则滑动窗口内去除一个最偏离所有运行数据均值的数据点后必然会极大影响噪声表现程度的值,反之如果是正常数据点,去除一个数据点并不会引起上述噪声表现程度的值出现很大变化,因此可通过去除数据前后噪声表现程度的差距计算出较为准确的噪声表现程度,差距越大则说明噪声表现程度越高。If the running data in the center of the sliding window is noise, then removing a data point that deviates most from the mean of all running data in the sliding window will inevitably greatly affect the value of the noise performance degree. On the contrary, if it is a normal data point, removing a data point will not cause a large change in the value of the above noise performance degree. Therefore, a more accurate noise performance degree can be calculated by the difference in the noise performance degree before and after removing the data. The larger the difference, the higher the noise performance degree.

S202、对滑动窗口中心的运行数据的噪声表现程度进行修正,具体为:依据滑动窗口对应时间范围内的绝对运行数据的方差对滑动窗口中心的运行数据的噪声表现程度进行修正,且所述方差越大,修正后的所述噪声表现程度越小;所述绝对运行数据是指开关柜触摸屏上的运行数据设置值。S202. Correcting the noise performance level of the operating data at the center of the sliding window, specifically: correcting the noise performance level of the operating data at the center of the sliding window according to the variance of the absolute operating data within the time range corresponding to the sliding window, and the larger the variance, the smaller the corrected noise performance level; the absolute operating data refers to the operating data setting value on the switch cabinet touch screen.

由于开关柜的运行数据可以通过人工在开关柜触摸屏设置,运行数据设置值不存在噪声,可将运行数据设置值记为绝对运行数据,将采集的运行数据记为相对运行数据。由于运行数据设置值的变化本身就会引起采集的运行数据的变化,因此可依据相对运行数据点在其滑动窗口对应时间范围内的绝对运行数据的变化计算得到噪声表现程度的可信度,从而对相对运行数据点的噪声表现程度做出修正。如果绝对运行数据点在对应时间范围内数据未发生变化,则说明此时的相对运行数据点的噪声表现程度的绝对可信,因为这种情况下,相对运行数据变化的引起因素肯定是噪声导致的;反之绝对运行数据点在对应时间范围内数据发生变化则说明相对运行数据的变化可能是由于运行数据设置值的变化而引起的,则其噪声表现程度可信度越低。Since the operating data of the switch cabinet can be set manually on the switch cabinet touch screen, and there is no noise in the operating data setting value, the operating data setting value can be recorded as absolute operating data, and the collected operating data can be recorded as relative operating data. Since the change of the operating data setting value itself will cause the change of the collected operating data, the credibility of the noise performance degree can be calculated based on the change of the absolute operating data of the relative operating data point within the corresponding time range of its sliding window, so as to make corrections to the noise performance degree of the relative operating data point. If the absolute operating data point does not change within the corresponding time range, it means that the noise performance degree of the relative operating data point at this time is absolutely credible, because in this case, the cause of the change in the relative operating data must be caused by noise; on the contrary, if the absolute operating data point changes within the corresponding time range, it means that the change in the relative operating data may be caused by the change in the operating data setting value, and the credibility of its noise performance degree is lower.

因此,对应时间范围内的绝对运行数据的方差可表征滑动窗口中心的运行数据的噪声表现程度的可信度,所述方差越大,则说明绝对运行数据点在局部范围内的数据变化越剧烈,则相对运行数据点的噪声表现程度的可信度越低;反之,方差越小,则说明绝对运行数据点在局部范围内的数据变化越缓慢,则相对运行数据点的噪声表现程度的可信度越高。Therefore, the variance of the absolute operating data within the corresponding time range can characterize the credibility of the noise performance of the operating data in the center of the sliding window. The larger the variance, the more drastic the data change of the absolute operating data point in the local range, and the lower the credibility of the noise performance of the relative operating data point; conversely, the smaller the variance, the slower the data change of the absolute operating data point in the local range, and the higher the credibility of the noise performance of the relative operating data point.

S203、依据修正后的噪声表现程度计算滑动窗口中心的运行数据的质量。S203: Calculate the quality of the operating data at the center of the sliding window according to the corrected noise performance level.

数据点噪声表现程度越高,说明该数据点存在噪声的可能性越大,因此,滑动窗口中心的运行数据的质量与修正后的噪声表现程度呈负相关。The higher the noise performance of a data point, the greater the possibility that the data point has noise. Therefore, the quality of the running data at the center of the sliding window is negatively correlated with the corrected noise performance.

由以上实施例可知,可通过去除数据前后噪声表现程度的差值计算出较为准确的噪声表现程度,如图3所示,在一个实施例中,计算滑动窗口中心的运行数据的噪声表现程度包括:It can be seen from the above embodiments that a relatively accurate noise performance degree can be calculated by removing the difference between the noise performance degrees before and after the data. As shown in FIG3 , in one embodiment, calculating the noise performance degree of the running data at the center of the sliding window includes:

S301、计算滑动窗口中心的运行数据的第一噪声表现程度,具体为:依据滑动窗口内的所有运行数据计算滑动窗口中心的运行数据在滑动窗口内的噪声表现程度,并将其记为滑动窗口中心的运行数据的第一噪声表现程度;S301, calculating a first noise performance degree of the operating data at the center of the sliding window, specifically: calculating the noise performance degree of the operating data at the center of the sliding window in the sliding window according to all the operating data in the sliding window, and recording it as the first noise performance degree of the operating data at the center of the sliding window;

因为噪声存在随机性即噪声在数据中的表现是多样性的,可能是个别数据点的突变、可能是局部范围内的频率和振幅的不规则变化等,但这些数据的变化在进行数据拟合的过程中都会使得将所有的数据点拟合在拟合曲线上即拟合过程中的损失较大,因此可利用对滑动窗口内数据点进行曲线拟合时的损失表征滑动窗口中心的运行数据在滑动窗口内的噪声表现程度,损失越大则说明噪声表现程度越高。Because noise is random, that is, the manifestation of noise in the data is diverse, which may be mutations of individual data points, irregular changes in frequency and amplitude in a local range, etc., but the changes in these data will make all data points fit on the fitting curve in the process of data fitting, that is, the loss in the fitting process is large. Therefore, the loss when fitting the curve for the data points in the sliding window can be used to characterize the degree of noise manifestation of the running data at the center of the sliding window in the sliding window. The greater the loss, the higher the degree of noise manifestation.

S302、计算滑动窗口内的所有运行数据的均值;S302, calculating the mean of all running data in the sliding window;

S303、计算滑动窗口中心的运行数据的第二噪声表现程度,具体为:将滑动窗口内与所述均值偏离程度最大的数据点去除,依据滑动窗口内的剩余运行数据计算滑动窗口中心的运行数据在滑动窗口内的噪声表现程度,并将其记为滑动窗口中心的运行数据的第二噪声表现程度;S303, calculating the second noise performance degree of the operating data at the center of the sliding window, specifically: removing the data point with the largest deviation from the mean in the sliding window, calculating the noise performance degree of the operating data at the center of the sliding window in the sliding window based on the remaining operating data in the sliding window, and recording it as the second noise performance degree of the operating data at the center of the sliding window;

为了提高噪声表现程度计算的可信度,本发明将滑动窗口内最偏离滑动窗口内数据点平均值的点去除,然后在去除数据点后的滑动窗口内再进行一次噪声表现程度的计算,后续依据去除数据点前后的噪声表现程度的差值计算噪声表现程度。In order to improve the credibility of the calculation of the noise performance degree, the present invention removes the point in the sliding window that deviates most from the average value of the data points in the sliding window, and then calculates the noise performance degree again in the sliding window after removing the data point, and subsequently calculates the noise performance degree based on the difference in the noise performance degree before and after removing the data point.

S304、依据滑动窗口中心的运行数据的第一噪声表现程度和第二噪声表现程度计算滑动窗口中心的运行数据的噪声表现程度;其计算表达式为:S304, calculating the noise performance degree of the operating data at the center of the sliding window according to the first noise performance degree and the second noise performance degree of the operating data at the center of the sliding window; the calculation expression is:

(1) (1)

式中,表示滑动窗口中心的运行数据的噪声表现程度,/>表示滑动窗口中心的运行数据的第一噪声表现程度,/>表示滑动窗口中心的运行数据的第二噪声表现程度。In the formula, Indicates the degree of noise in the running data at the center of the sliding window, /> represents the first noise performance level of the operating data at the center of the sliding window, /> Indicates the second noise level of the operating data at the center of the sliding window.

由以上实施例可知,方差越大,修正后的所述噪声表现程度越小,在一个实施例中,修正后的噪声表现程度计算表达式如下:It can be seen from the above embodiments that the larger the variance is, the smaller the noise performance degree after correction is. In one embodiment, the calculation expression of the corrected noise performance degree is as follows:

(2) (2)

式中,与/>分别表示第i个运行数据点/>修正前和修正后的噪声表现程度;exp()为指数函数;/>表示滑动窗口对应的时间范围内绝对运行数据点的方差。In the formula, With/> Respectively represent the i-th running data point/> The degree of noise performance before and after correction; exp() is an exponential function; /> Represents the variance of the absolute running data points within the time range corresponding to the sliding window.

由以上实施例可知,滑动窗口中心的运行数据的质量与修正后的噪声表现程度呈负相关,在一个实施例中,滑动窗口中心的运行数据的质量计算表达式为:It can be seen from the above embodiments that the quality of the operating data at the center of the sliding window is negatively correlated with the corrected noise performance level. In one embodiment, the quality calculation expression of the operating data at the center of the sliding window is:

(3) (3)

其中表示第i个运行数据点/>的质量,/>为第i个运行数据点/>的修正后的噪声表现程度。in Indicates the i-th running data point/> The quality of For the i-th running data point/> The corrected noise performance level.

滑动窗口中心的运行数据的第一噪声表现程度和第二噪声表现程度计算方法相同,如图4所示,在一个实施例中,计算滑动窗口中心的运行数据的第一噪声表现程度包括:The first noise performance level and the second noise performance level of the operating data at the center of the sliding window are calculated in the same manner. As shown in FIG4 , in one embodiment, calculating the first noise performance level of the operating data at the center of the sliding window includes:

S401、对滑动窗口内所有数据点进行拟合,得到拟合曲线;S401, fitting all data points in the sliding window to obtain a fitting curve;

可采用最小二乘法对滑动窗口内所有数据点进行拟合,得到拟合曲线。The least square method can be used to fit all data points in the sliding window to obtain a fitting curve.

S402、依据所述拟合曲线和滑动窗口内所有数据点的数值计算滑动窗口中心的运行数据的第一噪声表现程度;其计算表达式为:S402, calculating the first noise performance degree of the operating data at the center of the sliding window according to the fitting curve and the values of all data points in the sliding window; the calculation expression is:

(4) (4)

式中,表示滑动窗口中心的运行数据的第一噪声表现程度,/>表示滑动窗口内数据点的个数,/>表示第j组相邻数据点对应在拟合曲线上的积分,其物理意义表示曲线和横坐标轴与对应x=j,x=j+1围成曲面梯形面积,/>表示滑动窗口内第j个运行数据点,/>则表示第j个运行数据点的取值,/>表示滑动窗口内第j+1个运行数据点,表示滑动窗口内第j+1个运行数据点的取值,/>表示了第j组相邻数据点对应原始数据的梯形面积/>表示在滑动窗口内进行曲线拟合过程中相邻两个数据点的损失。In the formula, represents the first noise performance level of the operating data at the center of the sliding window, /> Indicates the number of data points in the sliding window, /> It represents the integral of the jth group of adjacent data points on the fitting curve. Its physical meaning represents the trapezoidal area of the curve and the abscissa axis corresponding to x=j, x=j+1. represents the jth running data point in the sliding window,/> It represents the value of the jth running data point, /> represents the j+1th running data point in the sliding window, Indicates the value of the j+1th running data point in the sliding window, /> It represents the trapezoidal area of the original data corresponding to the jth group of adjacent data points/> Represents the loss of two adjacent data points during curve fitting within the sliding window.

如图5所示,在曲线拟合过程中的损失可用拟合曲线中相邻两点之间的积分与相邻两点对应的梯形面积的差值表示,图中C和D为相邻的两点,则梯形面积即为图形ABCD的面积,积分即为曲面梯形ABDE的面积,则二者的差即可表征拟合过程的损失。因此表示在滑动窗口内进行曲线拟合过程中相邻两个数据点的损失,/>表示所有相邻数据点对应的拟合损失的平均值,该值可用于表征滑动窗口中心的运行数据在滑动窗口内的噪声表现程度。As shown in Figure 5, the loss in the curve fitting process can be represented by the difference between the integral between two adjacent points in the fitting curve and the trapezoidal area corresponding to the two adjacent points. In the figure, C and D are two adjacent points, and the trapezoidal area is the area of the figure ABCD, and the integral is the area of the surface trapezoid ABDE. The difference between the two can characterize the loss of the fitting process. Indicates the loss of two adjacent data points during curve fitting within the sliding window,/> It represents the average value of the fitting loss corresponding to all adjacent data points. This value can be used to characterize the degree of noise performance of the running data at the center of the sliding window within the sliding window.

在一个实施例中,调节BP神经网络模型的学习率包括:In one embodiment, adjusting the learning rate of the BP neural network model includes:

依据滑动窗口中心的运行数据的质量计算BP神经网络模型的学习率,其计算表达式为:The learning rate of the BP neural network model is calculated based on the quality of the running data at the center of the sliding window. The calculation expression is:

(5) (5)

式中,表示BP神经网络模型的学习率,/>表示滑动窗口中心的运行数据的质量。In the formula, Represents the learning rate of the BP neural network model,/> Indicates the quality of the running data at the center of the sliding window.

采用以上表达式对BP神经网络模型的学习进行计算,能够保障学习率小于0.5,从而避免学习率过大导致的发散问题,减小权重的大幅度更新,使得模型更加稳定。Using the above expression to calculate the learning of the BP neural network model can ensure that the learning rate is less than 0.5, thereby avoiding the divergence problem caused by excessive learning rate, reducing the substantial update of weights, and making the model more stable.

开关柜智能控制系统实施例:Switch cabinet intelligent control system implementation example:

本发明还提供了一种开关柜智能控制系统。如图6所示,所述开关柜智能控制系统包括处理器和存储器,所述存储器存储有计算机程序指令,当所述计算机程序指令被所述处理器执行时实现根据本发明第一方面所述的开关柜智能控制方法;所述开关柜智能控制系统还包括设置在开关柜外表面的触摸屏,本发明的开关柜智能控制系统用于控制的开关柜包括设置于柜子内部的托板,托板底部还设置有滑动机构,开关柜智能控制系统控制连接至滑动机构,托板上安装有各种电子元件,在点击触摸屏上的特定按键后,开关柜智能控制系统控制滑动机构动作,从而自动将托板从柜子内部拉出。The present invention also provides a switch cabinet intelligent control system. As shown in FIG6 , the switch cabinet intelligent control system includes a processor and a memory, the memory stores computer program instructions, and when the computer program instructions are executed by the processor, the switch cabinet intelligent control method according to the first aspect of the present invention is implemented; the switch cabinet intelligent control system also includes a touch screen arranged on the outer surface of the switch cabinet, and the switch cabinet controlled by the switch cabinet intelligent control system of the present invention includes a tray arranged inside the cabinet, and a sliding mechanism is also arranged at the bottom of the tray, and the switch cabinet intelligent control system controls the connection to the sliding mechanism, and various electronic components are installed on the tray. After clicking a specific button on the touch screen, the switch cabinet intelligent control system controls the sliding mechanism to move, thereby automatically pulling the tray out of the cabinet.

所述开关柜智能控制系统还包括通信总线和通信接口等本领域技术人员熟知的其他组件,其设置和功能为本领域中已知,因此在此不再赘述。The switch cabinet intelligent control system also includes other components familiar to those skilled in the art, such as a communication bus and a communication interface. The configuration and functions of these components are known in the art and will not be described in detail here.

在本发明中,前述的存储器可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。例如,计算机可读存储介质可以是任何适当的磁存储介质或者磁光存储介质,比如,阻变式存储器RRAM(Resistive RandomAccess Memory)、动态随机存取存储器DRAM(Dynamic Random Access Memory)、静态随机存取存储器SRAM(Static Random-Access Memory)、增强动态随机存取存储器EDRAM(Enhanced Dynamic Random Access Memory)、高带宽内存HBM(High-Bandwidth Memory)、混合存储立方HMC(Hybrid Memory Cube)等等,或者可以用于存储所需信息并且可以由应用程序、模块或两者访问的任何其他介质。任何这样的计算机存储介质可以是设备的一部分或可访问或可连接到设备。本发明描述的任何应用或模块可以使用可以由这样的计算机可读介质存储或以其他方式保持的计算机可读/可执行指令来实现。In the present invention, the aforementioned memory may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, apparatus or device. For example, a computer-readable storage medium may be any appropriate magnetic storage medium or magneto-optical storage medium, such as a resistive random access memory RRAM (Resistive Random Access Memory), a dynamic random access memory DRAM (Dynamic Random Access Memory), a static random access memory SRAM (Static Random-Access Memory), an enhanced dynamic random access memory EDRAM (Enhanced Dynamic Random Access Memory), a high-bandwidth memory HBM (High-Bandwidth Memory), a hybrid memory cube HMC (Hybrid Memory Cube), etc., or any other medium that can be used to store the required information and can be accessed by an application, a module, or both. Any such computer storage medium may be part of a device or accessible or connectable to a device. Any application or module described in the present invention may be implemented using computer-readable/executable instructions that may be stored or otherwise maintained by such a computer-readable medium.

在本说明书的描述中,“多个”、“若干个”的含义是至少两个,例如两个,三个或更多个等,除非另有明确具体的限定。In the description of this specification, "plurality" or "several" means at least two, such as two, three or more, etc., unless otherwise clearly and specifically defined.

虽然本说明书已经示出和描述了本发明的多个实施例,但对于本领域技术人员显而易见的是,这样的实施例只是以示例的方式提供的。本领域技术人员会在不偏离本发明思想和精神的情况下想到许多更改、改变和替代的方式。应当理解的是在实践本发明的过程中,可以采用对本文所描述的本发明实施例的各种替代方案。Although this specification has shown and described a number of embodiments of the present invention, it will be apparent to those skilled in the art that such embodiments are provided by way of example only. Those skilled in the art will conceive of many modifications, changes and alternatives without departing from the ideas and spirit of the present invention. It should be understood that in the practice of the present invention, various alternatives to the embodiments of the present invention described herein may be employed.

Claims (5)

1.一种开关柜智能控制方法,其特征在于,包括:1. A switch cabinet intelligent control method, characterized by comprising: 实时采集智能开关柜的运行数据,在采集之前预设有滑动窗口,每采集一次所述运行数据,滑动窗口向右滑动一次;Collect the operation data of the intelligent switch cabinet in real time. A sliding window is preset before the collection. Each time the operation data is collected, the sliding window slides to the right once. 依据所述滑动窗口内的所有运行数据计算滑动窗口中心的运行数据的质量,并依据滑动窗口中心的运行数据的质量调节BP神经网络模型的学习率从而对BP神经网络模型进行优化,BP神经网络模型的学习率与运行数据的质量呈反比;所述BP神经网络模型用于对PID算法的参数进行优化;所述PID算法用于对智能开关柜的运行数据进行控制;所述运行数据的质量用于表征采集的运行数据与运行数据真实值的接近程度;所述计算滑动窗口中心的运行数据的质量包括:计算滑动窗口中心的运行数据的噪声表现程度;依据滑动窗口对应时间范围内的绝对运行数据的方差对滑动窗口中心的运行数据的噪声表现程度进行修正,且所述方差越大,修正后的所述噪声表现程度越小;所述绝对运行数据是指开关柜触摸屏上的运行数据设置值;依据修正后的噪声表现程度计算滑动窗口中心的运行数据的质量;调节BP神经网络模型的学习率包括:依据滑动窗口中心的运行数据的质量计算BP神经网络模型的学习率,其计算表达式为:The quality of the operating data at the center of the sliding window is calculated based on all the operating data in the sliding window, and the learning rate of the BP neural network model is adjusted based on the quality of the operating data at the center of the sliding window to optimize the BP neural network model, and the learning rate of the BP neural network model is inversely proportional to the quality of the operating data; the BP neural network model is used to optimize the parameters of the PID algorithm; the PID algorithm is used to control the operating data of the intelligent switch cabinet; the quality of the operating data is used to characterize the degree of proximity between the collected operating data and the true value of the operating data; the calculation of the quality of the operating data at the center of the sliding window includes: calculating the noise performance degree of the operating data at the center of the sliding window; correcting the noise performance degree of the operating data at the center of the sliding window based on the variance of the absolute operating data within the corresponding time range of the sliding window, and the larger the variance, the smaller the corrected noise performance degree; the absolute operating data refers to the operating data setting value on the switch cabinet touch screen; calculating the quality of the operating data at the center of the sliding window based on the corrected noise performance degree; adjusting the learning rate of the BP neural network model includes: calculating the learning rate of the BP neural network model based on the quality of the operating data at the center of the sliding window, and its calculation expression is: ; 式中,表示BP神经网络模型的学习率,/>表示滑动窗口中心的运行数据的质量;In the formula, Represents the learning rate of the BP neural network model,/> Indicates the quality of the running data at the center of the sliding window; 利用优化后的BP神经网络模型对PID算法的比例调节系数、积分调节系数/>和微分调节系数/>三个参数进行优化,并利用优化后的PID算法对智能开关柜的运行数据进行控制;Using the optimized BP neural network model to adjust the proportional coefficient of the PID algorithm , integral adjustment coefficient/> and differential adjustment coefficient/> The three parameters are optimized, and the optimized PID algorithm is used to control the operation data of the intelligent switch cabinet; 所述计算滑动窗口中心的运行数据的噪声表现程度包括:The noise performance degree of the operating data of the center of the sliding window is calculated as follows: 依据滑动窗口内的所有运行数据计算滑动窗口中心的运行数据在滑动窗口内的噪声表现程度,并将其记为滑动窗口中心的运行数据的第一噪声表现程度;Calculate the noise performance degree of the operating data at the center of the sliding window in the sliding window according to all the operating data in the sliding window, and record it as the first noise performance degree of the operating data at the center of the sliding window; 计算滑动窗口内的所有运行数据的均值;Calculate the mean of all running data within the sliding window; 将滑动窗口内与所述均值偏离程度最大的数据点去除,依据滑动窗口内的剩余运行数据计算滑动窗口中心的运行数据在滑动窗口内的噪声表现程度,并将其记为滑动窗口中心的运行数据的第二噪声表现程度;Remove the data point with the largest deviation from the mean in the sliding window, calculate the noise performance degree of the operating data at the center of the sliding window in the sliding window according to the remaining operating data in the sliding window, and record it as the second noise performance degree of the operating data at the center of the sliding window; 依据滑动窗口中心的运行数据的第一噪声表现程度和第二噪声表现程度计算滑动窗口中心的运行数据的噪声表现程度;其计算表达式为:The noise performance degree of the operating data at the center of the sliding window is calculated according to the first noise performance degree and the second noise performance degree of the operating data at the center of the sliding window; the calculation expression is: ; 式中,表示滑动窗口中心的运行数据的噪声表现程度,/>表示滑动窗口中心的运行数据的第一噪声表现程度,/>表示滑动窗口中心的运行数据的第二噪声表现程度;In the formula, Indicates the degree of noise in the running data at the center of the sliding window, /> represents the first noise performance level of the operating data at the center of the sliding window, /> A second noise performance level of the operating data representing the center of the sliding window; 计算滑动窗口中心的运行数据的第一噪声表现程度包括:Calculating a first noise representation level of the running data at the center of the sliding window includes: 对滑动窗口内所有数据点进行拟合,得到拟合曲线;Fit all data points in the sliding window to obtain a fitting curve; 依据所述拟合曲线和滑动窗口内所有数据点的数值计算滑动窗口中心的运行数据的第一噪声表现程度;其计算表达式为:The first noise performance degree of the operating data at the center of the sliding window is calculated based on the fitting curve and the values of all data points in the sliding window; the calculation expression is: ; 式中,表示滑动窗口内数据点的个数,/>表示第j组相邻数据点对应在拟合曲线上的积分,/>表示滑动窗口内第j个运行数据点,/>则表示第j个运行数据点的取值,/>表示滑动窗口内第j+1个运行数据点,/>表示滑动窗口内第j+1个运行数据点的取值,/>表示了第j组相邻数据点对应原始数据的梯形面积,表示在滑动窗口内进行曲线拟合过程中相邻两个数据点的损失。In the formula, Indicates the number of data points in the sliding window, /> represents the integral of the jth group of adjacent data points on the fitting curve, /> represents the jth running data point in the sliding window,/> It represents the value of the jth running data point, /> Indicates the j+1th running data point in the sliding window, /> Indicates the value of the j+1th running data point in the sliding window,/> It represents the trapezoidal area of the original data corresponding to the jth group of adjacent data points. Represents the loss of two adjacent data points during curve fitting within the sliding window. 2.如权利要求1所述的开关柜智能控制方法,其特征在于,修正后的噪声表现程度计算表达式如下:2. The switch cabinet intelligent control method according to claim 1, characterized in that the corrected noise performance degree calculation expression is as follows: ; 式中,与/>分别表示第i个运行数据点/>修正前和修正后的噪声表现程度;/>表示滑动窗口对应的时间范围内绝对运行数据点的方差。In the formula, With/> Respectively represent the i-th running data point/> The degree of noise performance before and after correction; /> Represents the variance of the absolute running data points within the time range corresponding to the sliding window. 3.如权利要求1所述的开关柜智能控制方法,其特征在于,所述滑动窗口中心的运行数据的质量计算表达式为:3. The switch cabinet intelligent control method according to claim 1, characterized in that the quality calculation expression of the operating data at the center of the sliding window is: ; 其中表示第i个运行数据点/>的质量,/>为第i个运行数据点/>的修正后的噪声表现程度。in Indicates the i-th running data point/> The quality of For the i-th running data point/> The corrected noise performance level. 4.如权利要求1~3任意一项所述的开关柜智能控制方法,其特征在于,所述BP神经网络模型的隐藏层数量为3,激活函数采用ReLU函数,输出层的神经元数量为3,反向传播过程采用梯度下降算法,学习率初始值为0.5。4. The switch cabinet intelligent control method according to any one of claims 1 to 3 is characterized in that the number of hidden layers of the BP neural network model is 3, the activation function adopts the ReLU function, the number of neurons in the output layer is 3, the back propagation process adopts the gradient descent algorithm, and the initial value of the learning rate is 0.5. 5.一种开关柜智能控制系统,包括处理器和存储器,所述存储器存储有计算机程序指令,其特征在于,当所述计算机程序指令被所述处理器执行时实现权利要求1~4任意一项所述的开关柜智能控制方法。5. A switch cabinet intelligent control system, comprising a processor and a memory, wherein the memory stores computer program instructions, and wherein when the computer program instructions are executed by the processor, the switch cabinet intelligent control method according to any one of claims 1 to 4 is implemented.
CN202410285435.9A 2024-03-13 2024-03-13 Intelligent control system and method for switch cabinet Active CN117891160B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410285435.9A CN117891160B (en) 2024-03-13 2024-03-13 Intelligent control system and method for switch cabinet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410285435.9A CN117891160B (en) 2024-03-13 2024-03-13 Intelligent control system and method for switch cabinet

Publications (2)

Publication Number Publication Date
CN117891160A CN117891160A (en) 2024-04-16
CN117891160B true CN117891160B (en) 2024-05-31

Family

ID=90639839

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410285435.9A Active CN117891160B (en) 2024-03-13 2024-03-13 Intelligent control system and method for switch cabinet

Country Status (1)

Country Link
CN (1) CN117891160B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112445136A (en) * 2020-12-16 2021-03-05 北京科技大学 Thickener prediction control method and system based on continuous time neural network
CN113642484A (en) * 2021-08-18 2021-11-12 湖南师范大学 A method and system for noise suppression of magnetotelluric signals based on BP neural network
CN114444375A (en) * 2021-12-13 2022-05-06 浙江图盛输变电工程有限公司 High-voltage switch cabinet insulation aging prediction method based on multi-parameter fusion calculation
CN116503282A (en) * 2023-04-24 2023-07-28 山东交通学院 Manifold-based point cloud denoising method and system for excavator construction environment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112445136A (en) * 2020-12-16 2021-03-05 北京科技大学 Thickener prediction control method and system based on continuous time neural network
CN113642484A (en) * 2021-08-18 2021-11-12 湖南师范大学 A method and system for noise suppression of magnetotelluric signals based on BP neural network
CN114444375A (en) * 2021-12-13 2022-05-06 浙江图盛输变电工程有限公司 High-voltage switch cabinet insulation aging prediction method based on multi-parameter fusion calculation
CN116503282A (en) * 2023-04-24 2023-07-28 山东交通学院 Manifold-based point cloud denoising method and system for excavator construction environment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
任子昱.基于改进反向传播神经网络的风电短期功率预测.《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑 信息科技》.全文. *

Also Published As

Publication number Publication date
CN117891160A (en) 2024-04-16

Similar Documents

Publication Publication Date Title
CN116610025B (en) A PID controller optimization method based on improved metaheuristic algorithm
CN110120670A (en) The optimization method of electric distribution network reactive-voltage containing DPV, terminal device and storage medium
CN110162739B (en) RFFKLMS Algorithm Weight Update Optimization Method Based on Variable Forgetting Factor
WO2023284167A1 (en) Battery charging method and apparatus, and device and medium
Wang et al. Improved auto disturbance rejection control based on moth flame optimization for permanent magnet synchronous motor
CN118151524A (en) A Positional PID Optimization Method Based on Improved Non-monopoly Search Algorithm
CN117891160B (en) Intelligent control system and method for switch cabinet
CN110601573A (en) Three-phase rectification control method based on improved self-adaptive fuzzy neural network
CN110504716A (en) Photovoltaic inverter reactive power mode optimization selection method, terminal equipment and storage medium
Sekyere et al. Optimally tuned cascaded FOPI-FOPIDN with improved PSO for load frequency control in interconnected power systems with RES
CN116488497A (en) A Control Method of Three-phase Inverter Based on Improved Cuckoo Search Algorithm
CN116505559B (en) Energy storage frequency modulation sagging control coefficient correction method considering power response delay influence
CN115257697B (en) A hybrid vehicle energy management and cooperative control method, system and application
CN116772284A (en) Heating furnace temperature control method
CN116184809A (en) Graphic debugging-free method and device for torque loop of servo system
CN110729723B (en) A method and device for obtaining a power quality management model in a distribution network
CN111007721B (en) Method for dynamically selecting sampling period in linear steady system
CN118820681B (en) Acquisition terminal acquisition link delay acquisition method, equipment and storage medium
Liu et al. Robust predictive control strategy for grid‐connected inverters with ultra‐local model based on linear matrix inequality
CN120150209A (en) A method for optimizing control of energy storage converter based on fusion genetic-particle swarm algorithm and related device
CN116094053B (en) Multi-machine parallel control method for network-structured power supply
CN118466375B (en) Environment control method, device and system applied to GIS control cabinet
CN119109079B (en) Load frequency control method, device and electronic equipment based on deep reinforcement learning
CN118657072B (en) Method, system and device for adaptive voltage regulator parameter optimization
CN116505520A (en) Method and system for suppressing oscillation of photovoltaic grid-connected power generation system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 710000 A Factory Building, No. 19, Qinhan Automotive Parts Industrial Park, Zhouling Street Office, Qinhan New City, Xixian New District, Xi'an City, Shaanxi Province

Patentee after: Shaanxi Xigao Electric Technology Group Co.,Ltd.

Country or region after: China

Address before: 710000 A Factory Building, No. 19, Qinhan Automotive Parts Industrial Park, Zhouling Street Office, Qinhan New City, Xixian New District, Xi'an City, Shaanxi Province

Patentee before: Shaanxi Xigao Electric Technology Co.,Ltd.

Country or region before: China