An automatic constant temperature control method and system based on the Internet of Things and fuzzy judgment
The automatic constant temperature control method through the Internet of Things and fuzzy judgment, combined with time window analysis and reinforcement learning algorithm, solves the problems of high cost, long response time and low control accuracy of the existing constant temperature control method in industrial automation, achieving a more flexible and Efficient constant temperature control adapts to the needs of complex temperature environments.
Patent Information
- Application Number
- CN202411067195.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-06
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-08-06
AI Technical Summary
Existing constant temperature control methods have problems such as high cost, long response time, low control accuracy and lack of flexibility in industrial automation. They are also difficult to adapt to complex temperature environments and lack the optimization of energy consumption and consideration of non-linear data.
An automatic constant temperature control method based on the Internet of Things and fuzzy judgment is adopted. By collecting equipment parameters and temperature sensor data, time window analysis and abnormal temperature time series frequency calculation are performed, a fuzzy controller is constructed, the compensation parameters are obtained, and the fuzzy is adjusted through a reinforcement learning algorithm. Controller parameters, construct a compensation function to optimize power adjustment and achieve more precise constant temperature control.
It improves the flexibility and energy efficiency of constant temperature control, can more comprehensively evaluate the heat load of equipment under abnormal conditions, adapt to temperature change trends, and achieve more precise control effects.
Smart Images

Figure CN118585013B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of temperature control, and in particular to an automatic constant temperature control method and system based on the Internet of Things and fuzzy judgment. Background Art
[0002] With the continuous advancement of science and technology, the application of Internet of Things technology in various fields is becoming more and more extensive, especially in industrial automation. Constant temperature control is one of the key technologies for industrial process optimization, and its control performance directly affects the energy efficiency of industry. Therefore, the research and analysis of automatic constant temperature control is of great significance for industry to optimize industrial production processes and reduce energy consumption.
[0003] Traditional thermostatic control methods mainly rely on mechanical and electrical simulation control experiments, but this method has limitations, such as high cost, long response time, low control accuracy and lack of flexibility. In recent years, with the rapid development of Internet of Things technology, more and more fields have begun to use intelligent algorithms for thermostatic control to overcome these limitations and improve control efficiency, accuracy and flexibility.
[0004] At present, although there are some constant temperature control methods based on the Internet of Things or intelligent algorithms, these methods often only perform temperature control and lack optimization of energy consumption. Most of them use traditional PID algorithm controllers to achieve constant temperature control, lack consideration of nonlinear data, and have difficulty in handling complex situations. In addition, existing constant temperature control systems often only implement a single constant temperature control strategy for abnormal temperatures, lack consideration and analysis of complex temperature environments. In general, existing constant temperature control methods often lack flexibility and scalability, and are difficult to adapt to complex environments and situations. Summary of the invention
[0005] The purpose of the present invention is to provide an automatic constant temperature control method and system based on the Internet of Things and fuzzy judgment.
[0006] To achieve the above object, the present invention is implemented according to the following technical solutions:
[0007] The first aspect of the present invention provides an automatic constant temperature control method based on the Internet of Things and fuzzy judgment, comprising the following steps:
[0008] Step S1, collecting equipment parameters and temperature sensor data, and preprocessing the equipment parameters and temperature sensor data;
[0009] Step S2, performing time window analysis on the temperature sensor data to obtain the abnormal temperature time series frequency, and calculating the abnormal temperature time series load of the equipment according to the abnormal temperature time series frequency and the equipment parameters; constructing a fuzzy controller based on fuzzy judgment, obtaining the step time and fuzzy control amount of the fuzzy controller, and obtaining compensation item parameters according to the fuzzy control amount;
[0010] Step S3, calculating the abnormal temperature fluctuation trend value through the abnormal temperature time series frequency, obtaining a compensation strategy based on the abnormal temperature fluctuation trend value, and constructing a compensation function for the compensation strategy according to the compensation item parameters;
[0011] Step S4, calculating the compensation power through the compensation function, inputting the compensation power into the constant temperature control unit, taking the step time as the constant temperature control unit response time, and outputting the constant temperature adjustment result.
[0012] Furthermore, the method of performing time window analysis on the temperature sensor data in step S2 includes:
[0013] Set the time window and step size to obtain the normal temperature threshold range, perform time window analysis on the temperature sensor data, and identify abnormal temperature data;
[0014] Calculate the probability density function estimate of abnormal temperature data, the expression is:
[0015]
[0016] in, The bandwidth is set to 1.06 times the minimum standard deviation of the abnormal temperature data divided by the square root of the interquartile range of the temperature sensor data sample size. and The time window is and Temperature data, is the step size, is the number of data points in the time window;
[0017] The probability density function estimate is processed with a Gaussian window, and the data after the Gaussian window processing is Fourier transformed to obtain the abnormal temperature time series frequency, which is expressed as:
[0018]
[0019] in, is the probability density function estimate, is the Gaussian window function, is the Gaussian window parameter, is the number of data points in the time window, is the Gaussian window width, is the kernel function of Fourier transform, is the imaginary unit of Fourier transform, is the angular frequency, It is expressed as the integration over all step sizes.
[0020] Furthermore, the method for calculating the abnormal temperature timing load of the device according to the abnormal temperature timing frequency and the device parameters includes:
[0021]
[0022] in, is the no-load loss of the equipment, is the equipment load loss, is the equivalent heat capacity of the equipment, is the equipment oil temperature, It is expressed as the integral of the equipment oil temperature per unit time. is the ambient temperature, is the abnormal temperature timing frequency, is the device equivalent resistance, It is the cooling index value of the device.
[0023] Furthermore, the method for obtaining the step time and the fuzzy control amount of the fuzzy controller includes:
[0024] The temperature that remains within the normal temperature threshold range for 5 seconds is used as the temperature stability benchmark, and the time from the abnormal temperature to the temperature stability benchmark is used as the step time of the fuzzy controller;
[0025] The temperature deviation value and the abnormal temperature time series frequency are input into the fuzzy controller, the fuzzy value of the fuzzy control is determined based on the fuzzy control rule, the fuzzy value is defuzzified, and the fuzzy control quantity is obtained.
[0026] Furthermore, the method for obtaining compensation term parameters according to the fuzzy control amount includes:
[0027] Obtain the fuzzy control quantity within the step time, obtain the action space of the fuzzy controller based on the fuzzy rules, and set the reward function based on the action space state;
[0028] Use the reinforcement learning algorithm to adjust the parameters of the fuzzy controller, maximize the cumulative reward, and obtain the parameters of the reward function with the maximum cumulative reward. The specific process expression for maximizing the cumulative reward is:
[0029] Construct the reward function, the expression is:
[0030]
[0031] in, is the weighted average of the returns under all possible parameters, is the current time step, is the discount factor, For the time step Immediate returns, is the time step status, is the time step Actions;
[0032] Set the parameter search strategy, the expression is:
[0033]
[0034]
[0035] in, is the time step The timing difference of For the status The value function prediction under For the time step Immediate returns, is the discount factor, For the next state The value function predicts, is the advantage function of the time step, which is used to measure the advantage of the expected return of the action, To explore the discount factor, is the attenuation factor, From the current time step The number of steps to start considering;
[0036] The temperature error weight, error change rate weight, and fuzzy control quantity oscillation weight in the parameters are used as proportional gain, integral gain, and differential gain.
[0037] Furthermore, the method for calculating the abnormal temperature fluctuation trend value by using the abnormal temperature time series frequency includes:
[0038] Perform fluctuation analysis on the abnormal temperature time series frequency and calculate the variance of the abnormal temperature time series frequency:
[0039]
[0040] in, is the variance of the abnormal temperature time series frequency, is the total number of steps, is the mean of the abnormal temperature timing frequency, and the peak value of the abnormal temperature timing frequency is calculated according to the variance value. The expression is:
[0041]
[0042] The abnormal temperature frequency fluctuation trend value is calculated based on the variance and peak value of the abnormal temperature time series frequency. The calculation formula is:
[0043]
[0044] in, is the variance of the abnormal temperature time series frequency, is the peak value of abnormal temperature timing frequency, is the adjustment factor, taking 0.01.
[0045] Furthermore, the method of obtaining a compensation strategy based on the abnormal temperature fluctuation trend value and constructing a compensation function for the compensation strategy according to the compensation item parameters includes:
[0046] Based on the abnormal temperature fluctuation trend value, use simulation software to simulate the temperature change of the equipment within the step time, and set different compensation strategies based on the simulation results:
[0047] The first compensation strategy, if the temperature returns to the normal temperature threshold range within the step time, the first compensation function is constructed based on the abnormal temperature timing load of the equipment and some compensation item parameters, and the expression is:
[0048]
[0049] in, is the first compensation function, To control the gain, For abnormal temperature timing load, Expressed as the time from abnormal temperature to normal temperature threshold range The integral of the temperature deviation;
[0050] The second compensation strategy, if the temperature does not return to the normal temperature threshold range within the step time, construct the second compensation function based on the abnormal temperature timing load of the equipment and the compensation item parameters, the expression is:
[0051]
[0052] in, is the second compensation function, For abnormal temperature timing load, is the temperature deviation value from the abnormal temperature to the normal temperature threshold range, , and are proportional gain, integral gain and differential gain respectively, Indicated as step length Next, perform integration.
[0053] The second aspect of the present invention also provides an automatic constant temperature control system based on the Internet of Things and fuzzy judgment, comprising:
[0054] Data acquisition module, collects equipment parameters and temperature sensor data and performs preprocessing;
[0055] The time window analysis module performs time window analysis on the temperature sensor data to obtain the abnormal temperature timing frequency, and calculates the abnormal temperature timing load of the equipment based on the abnormal temperature timing frequency and equipment parameters;
[0056] The fuzzy control module builds a fuzzy controller based on fuzzy judgment, obtains the step time and fuzzy control quantity of the fuzzy controller, and performs reinforcement learning based on the fuzzy control quantity to obtain the compensation item parameters;
[0057] The compensation strategy module calculates the abnormal temperature fluctuation trend value, obtains the compensation strategy based on the abnormal temperature fluctuation trend value, and constructs a compensation function for the compensation strategy in combination with the compensation item parameters;
[0058] The constant temperature control module calculates the compensation power according to the compensation function and inputs the compensation power to the constant temperature control unit. The constant temperature control unit uses the step time as the interval response time to adjust the power of the device to achieve constant temperature control.
[0059] In a third aspect, an embodiment of the present application further provides an electronic device, including:
[0060] A processor; and a memory arranged to store computer executable instructions, which when executed cause the processor to perform the method steps described in the first aspect.
[0061] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, which stores one or more programs. When the one or more programs are executed by an electronic device including multiple applications, the electronic device executes the method steps described in the first aspect.
[0062] Compared with the prior art, the embodiments of the present invention have at least the following advantages or beneficial effects:
[0063] (1) The present invention provides an automatic constant temperature control method and system based on the Internet of Things and fuzzy judgment. The method collects equipment parameters and temperature sensor data, calculates abnormal temperature time series load, analyzes the fuzzy controller, obtains a compensation function, calculates compensation power based on the compensation function, and adjusts the power of the equipment through a constant temperature control unit. Compared with the traditional extensive control strategy, this method can achieve more precise control.
[0064] (2) The present invention calculates the abnormal temperature sequence load by combining the abnormal temperature sequence frequency and the equipment parameters, which can more comprehensively evaluate the thermal load of the equipment under abnormal conditions, take into account the optimization of the equipment energy consumption to achieve constant temperature control, and improve the flexibility and energy efficiency of the constant temperature control method.
[0065] (3) The present invention calculates the abnormal temperature fluctuation trend value, sets different adjustment strategies based on the abnormal temperature fluctuation trend value, and sets different compensation functions based on different adjustment strategies. Different adjustment strategies and different compensation functions can adapt to the temperature change trend, thereby improving the adaptability of the constant temperature control method. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] Figure 1 The present invention is a flowchart of the steps of an automatic constant temperature control method based on the Internet of Things and fuzzy judgment.
[0067] Figure 2 It is a schematic diagram of the structure of an electronic device in an embodiment of this specification. DETAILED DESCRIPTION
[0068] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0069] Reference Figure 1 As shown, the first aspect of the present invention provides an automatic constant temperature control method based on the Internet of Things and fuzzy judgment, comprising:
[0070] Step S1, collecting equipment parameters and temperature sensor data, and preprocessing the equipment parameters and temperature sensor data;
[0071] In the actual evaluation, the device parameter data and temperature sensor data are obtained, and the missing values and duplicate values of the device parameter data and temperature sensor data are processed;
[0072] Step S2, performing time window analysis on the temperature sensor data to obtain the abnormal temperature time series frequency, and calculating the abnormal temperature time series load of the equipment according to the abnormal temperature time series frequency and the equipment parameters; constructing a fuzzy controller based on fuzzy judgment, obtaining the step time and fuzzy control amount of the fuzzy controller, and obtaining compensation item parameters according to the fuzzy control amount;
[0073] In the actual evaluation, the time window and step size are set, the time window analysis is performed on the temperature sensor data, the abnormal temperature data is identified, the probability density function estimate of the abnormal temperature data is calculated, the probability density function estimate of the abnormal temperature data is processed using a Gaussian window, and Fourier transform is performed to obtain the abnormal temperature time series frequency, and the abnormal temperature time series load of the equipment is obtained based on the preprocessed equipment parameter data;
[0074] In the actual evaluation, fuzzy sets are defined for temperature deviation and abnormal temperature time series frequency respectively, and membership functions are defined for each fuzzy set. A fuzzy domain is constructed, which is divided into several fuzzy subsets based on the fuzzy domain. Fuzzy control rules between input variables and output variables are defined. The temperature deviation and temperature time series frequency are taken as input variables, and the temperature to be controlled is taken as the output variable. A double-input single-output fuzzy controller is constructed, and the input variables are fuzzified. The Mamdani fuzzy inference algorithm is used for inference. The inference results are obtained according to the fuzzy control rules and the fuzzy values of the input variables, and the inference results are defuzzified by the centroid method. The fuzzy control rules composed of basic domain theory, fuzzy domain theory and fuzzy subsets are shown in Table 1:
[0075] Table 1 Fuzzy control rules
[0076]
[0077] Step S3, calculating the abnormal temperature fluctuation trend value through the abnormal temperature time series frequency, obtaining a compensation strategy based on the abnormal temperature fluctuation trend value, and constructing a compensation function for the compensation strategy according to the compensation item parameters;
[0078] In the actual evaluation, the fluctuation analysis of the abnormal temperature time series frequency is carried out to obtain the variance and peak value of the abnormal temperature time series frequency, and the abnormal temperature fluctuation trend value is further calculated. Based on the abnormal temperature fluctuation trend value, the temperature change of the equipment within the step time is simulated, and the compensation strategies are obtained based on the two situations appearing in the simulation results. Different compensation functions are constructed based on the compensation strategies. For the case where the temperature returns to the normal temperature threshold range within the step time, the first compensation function is constructed. , if the temperature does not return to the normal temperature threshold range within the step time, construct the second compensation function ;
[0079] Step S4, calculating the compensation power through the compensation function, inputting the compensation power into the constant temperature control unit, taking the step time as the constant temperature control unit response time, and outputting the constant temperature adjustment result.
[0080] In the actual evaluation, the compensation function in the compensation strategy is used to calculate the compensation power for different situations. Calculate the first compensation power of the device whose temperature returns to the normal temperature threshold range within the step time, based on the second compensation function Calculate the second compensation power of the device whose temperature has not recovered to the normal temperature threshold range within the step time, input the obtained compensation power into the I / O port of the control unit, and use the step time of the fuzzy control model as the interval response time of the constant temperature control unit. According to the actual compensation power obtained, the constant temperature control unit controls the inverter in the components to complete the power adjustment of the equipment and realize the temperature compensation of the equipment.
[0081] In this embodiment, the method of performing time window analysis on the temperature sensor data in step S2 includes:
[0082] Set the time window and step size to obtain the normal temperature threshold range, perform time window analysis on the temperature sensor data, and identify abnormal temperature data;
[0083] Calculate the probability density function estimate of abnormal temperature data, the expression is:
[0084]
[0085] in, The bandwidth is set to 1.06 times the minimum standard deviation of the abnormal temperature data divided by the square root of the interquartile range of the temperature sensor data sample size. and The time window is and Temperature data, is the step size, is the number of data points in the time window;
[0086] The probability density function estimate is processed with a Gaussian window, and the data after the Gaussian window processing is Fourier transformed to obtain the abnormal temperature time series frequency, which is expressed as:
[0087]
[0088] in, is the probability density function estimate, is the Gaussian window function, is the Gaussian window parameter, is the number of data points in the time window, is the Gaussian window width, is the kernel function of Fourier transform, is the imaginary unit of Fourier transform, is the angular frequency, It is expressed as the integration over all step sizes.
[0089] In this embodiment, the method for calculating the abnormal temperature timing load of the device according to the abnormal temperature timing frequency and the device parameters includes:
[0090]
[0091] in, is the no-load loss of the equipment, is the equipment load loss, is the equivalent heat capacity of the equipment, is the equipment oil temperature, It is expressed as the integral of the equipment oil temperature per unit time. is the ambient temperature, is the abnormal temperature timing frequency, is the device equivalent resistance, It is the cooling index value of the device.
[0092] In this embodiment, the method for obtaining the step time and the fuzzy control amount of the fuzzy controller includes:
[0093] The temperature that remains within the normal temperature threshold range for 5 seconds is used as the temperature stability benchmark, and the time from the abnormal temperature to the temperature stability benchmark is used as the step time of the fuzzy controller;
[0094] The temperature deviation value and the abnormal temperature time series frequency are input into the fuzzy controller, the fuzzy value of the fuzzy control is determined based on the fuzzy control rule, the fuzzy value is defuzzified, and the fuzzy control quantity is obtained.
[0095] In this embodiment, the method for obtaining compensation term parameters according to the fuzzy control amount includes:
[0096] Obtain the fuzzy control quantity within the step time, obtain the action space of the fuzzy controller based on the fuzzy rules, and set the reward function based on the action space state;
[0097] Use the reinforcement learning algorithm to adjust the parameters of the fuzzy controller, maximize the cumulative reward, and obtain the parameters of the reward function with the maximum cumulative reward. The specific process expression for maximizing the cumulative reward is:
[0098] Construct the reward function, the expression is:
[0099]
[0100] in, is the weighted average of the returns under all possible parameters, is the current time step, is the discount factor, For the time step Immediate returns, is the time step status, is the time step Actions;
[0101] Set the parameter search strategy, the expression is:
[0102]
[0103]
[0104] in, is the time step The timing difference of For the status The value function prediction under For the time step Immediate returns, is the discount factor, For the next state The value function predicts, is the advantage function of the time step, which is used to measure the advantage of the expected return of the action, To explore the discount factor, is the attenuation factor, From the current time step The number of steps to start considering;
[0105] The temperature error weight, error change rate weight, and fuzzy control quantity oscillation weight in the parameters are used as proportional gain, integral gain, and differential gain.
[0106] In this embodiment, the method for calculating the abnormal temperature fluctuation trend value by using the abnormal temperature time series frequency includes:
[0107] Perform fluctuation analysis on the abnormal temperature time series frequency and calculate the variance of the abnormal temperature time series frequency:
[0108]
[0109] in, is the variance of the abnormal temperature time series frequency, is the total number of steps, is the mean of the abnormal temperature timing frequency, and the peak value of the abnormal temperature timing frequency is calculated according to the variance value. The expression is:
[0110]
[0111] The abnormal temperature frequency fluctuation trend value is calculated based on the variance and peak value of the abnormal temperature time series frequency. The calculation formula is:
[0112]
[0113] in, is the variance of the abnormal temperature time series frequency, is the peak value of abnormal temperature timing frequency, is the adjustment factor, taking 0.01.
[0114] In this embodiment, the method of obtaining a compensation strategy based on the abnormal temperature fluctuation trend value and constructing a compensation function for the compensation strategy according to the compensation item parameter includes:
[0115] Based on the abnormal temperature fluctuation trend value, use simulation software to simulate the temperature change of the equipment within the step time, and set different compensation strategies based on the simulation results:
[0116] The first compensation strategy, if the temperature returns to the normal temperature threshold range within the step time, the first compensation function is constructed based on the abnormal temperature timing load of the equipment and some compensation item parameters, and the expression is:
[0117]
[0118] in, is the first compensation function, To control the gain, For abnormal temperature timing load, Expressed as the time from abnormal temperature to normal temperature threshold range The integral of the temperature deviation;
[0119] The second compensation strategy, if the temperature does not return to the normal temperature threshold range within the step time, construct the second compensation function based on the abnormal temperature timing load of the equipment and the compensation item parameters, the expression is:
[0120]
[0121] in, is the second compensation function, For abnormal temperature timing load, is the temperature deviation value from the abnormal temperature to the normal temperature threshold range, , and are proportional gain, integral gain and differential gain respectively, Indicated as step length Next, perform integration.
[0122] The second aspect of the present invention also provides an automatic constant temperature control system based on the Internet of Things and fuzzy judgment, comprising:
[0123] Data acquisition module, collects equipment parameters and temperature sensor data and performs preprocessing;
[0124] The time window analysis module performs time window analysis on the temperature sensor data to obtain the abnormal temperature timing frequency, and calculates the abnormal temperature timing load of the equipment based on the abnormal temperature timing frequency and equipment parameters;
[0125] The fuzzy control module builds a fuzzy controller based on fuzzy judgment, obtains the step time and fuzzy control quantity of the fuzzy controller, and performs reinforcement learning based on the fuzzy control quantity to obtain the compensation item parameters;
[0126] The compensation strategy module calculates the abnormal temperature fluctuation trend value, obtains the compensation strategy based on the abnormal temperature fluctuation trend value, and constructs a compensation function for the compensation strategy in combination with the compensation item parameters;
[0127] The constant temperature control module calculates the compensation power according to the compensation function and inputs the compensation power to the constant temperature control unit. The constant temperature control unit uses the step time as the interval response time to adjust the power of the device to achieve constant temperature control.
[0128] Figure 2 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. Figure 2 At the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and a memory. The memory may include a memory, such as a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. Of course, the electronic device may also include hardware required for other services.
[0129] The processor, network interface and memory can be interconnected through an internal bus, which can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 2 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0130] The memory is used to store the program. Specifically, the program may include a program code, and the program code includes a computer operation instruction. The memory may include a memory and a non-volatile memory, and provides instructions and data to the processor.
[0131] The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming an automatic constant temperature device based on the Internet of Things and fuzzy judgment at the logical level. The processor executes the program stored in the memory and is specifically used to execute any of the aforementioned automatic constant temperature methods based on the Internet of Things and fuzzy judgment.
[0132] The above application Figure 1 The embodiment shown discloses an automatic constant temperature control method based on the Internet of Things and fuzzy judgment, which can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0133] The electronic device may also perform Figure 1 An automatic constant temperature control method based on the Internet of Things and fuzzy judgment is implemented Figure 1 The functions of the illustrated embodiment will not be described in detail in the embodiments of the present application.
[0134] An embodiment of the present application also proposes a computer-readable storage medium, which stores one or more programs, and the one or more programs include instructions. When the instructions are executed by an electronic device including multiple applications, any one of the aforementioned automatic constant temperature control methods based on the Internet of Things and fuzzy judgment is executed.
[0135] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0136] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A system that specifies the functions of a box or boxes.
[0137] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction system, which is implemented in the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0138] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0139] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0140] Memory may include non-permanent storage in a computer-readable medium, in the form of random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
[0141] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0142] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0143] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0144] The above contents are merely examples and explanations of the structure of the present invention. The technicians in this technical field may make various modifications or additions to the specific embodiments described or replace them in a similar manner. As long as they do not deviate from the structure of the invention or exceed the scope defined by the claims, they should all fall within the protection scope of the present invention.
Claims
1. An automatic constant temperature control method based on the Internet of Things and fuzzy judgment, characterized in that: The following steps are involved: Step S1, collecting equipment parameters and temperature sensor data, and preprocessing the equipment parameters and temperature sensor data; Step S2, performing time window analysis on the temperature sensor data to obtain abnormal temperature time series frequency, and calculating abnormal temperature time series load of the equipment according to the abnormal temperature time series frequency and the equipment parameters; Building a fuzzy controller based on fuzzy judgment, obtaining the step time and fuzzy control amount of the fuzzy controller, and obtaining compensation item parameters according to the fuzzy control amount; The method for calculating the abnormal temperature timing load of a device according to the abnormal temperature timing frequency and the device parameters comprises: ; in, is the no-load loss of the equipment, is the equipment load loss, is the equivalent heat capacity of the equipment, is the equipment oil temperature, is the ambient temperature, is the abnormal temperature timing frequency, is the device equivalent resistance, is the equipment cooling index value; The method for obtaining the step time and the fuzzy control amount of the fuzzy controller comprises: The temperature that remains within the normal temperature threshold range for 5 seconds is used as the temperature stability benchmark, and the time from the abnormal temperature to the temperature stability benchmark is used as the step time of the fuzzy controller; The temperature deviation value and the abnormal temperature time series frequency are input into the fuzzy controller, the fuzzy value of the fuzzy control is determined based on the fuzzy control rule, the fuzzy value is defuzzified, and the fuzzy control amount is obtained; The method for obtaining compensation item parameters according to the fuzzy control amount includes: Obtain the fuzzy control quantity within the step time, obtain the action space of the fuzzy controller based on the fuzzy rules, and set the reward function based on the action space state; Use the reinforcement learning algorithm to adjust the parameters of the fuzzy controller, maximize the cumulative reward, and obtain the parameters of the reward function with the maximum cumulative reward. The specific process of maximizing the cumulative reward is: Construct the reward function, the expression is: ; in, is the weighted average of the returns under all possible parameters, is the current time step, is the discount factor, For the time step Immediate returns, is the time step status, is the time step Actions; Set the parameter search strategy, the expression is: ; ; in, is the time step The timing difference of For the status The value function prediction under For the time step Immediate returns, is the discount factor, For the next state The value function predicts, is the advantage function of the time step, which is used to measure the advantage of the expected return of the action, To explore the discount factor, is the attenuation factor, From the current time step The number of steps to start considering; The temperature error weight, error change rate weight, and fuzzy control quantity oscillation weight in the parameters are used as proportional gain, integral gain, and differential gain; Step S3, calculating the abnormal temperature fluctuation trend value through the abnormal temperature time series frequency, obtaining a compensation strategy based on the abnormal temperature fluctuation trend value, and constructing a compensation function for the compensation strategy according to the compensation item parameters; the method of obtaining a compensation strategy based on the abnormal temperature fluctuation trend value and constructing a compensation function for the compensation strategy according to the compensation item parameters includes: Based on the abnormal temperature fluctuation trend value, use simulation software to simulate the temperature change of the equipment within the step time, and set different compensation strategies based on the simulation results: The first compensation strategy, if the temperature returns to the normal temperature threshold range within the step time, the first compensation function is constructed based on the abnormal temperature timing load of the equipment and some compensation item parameters, and the expression is: ; in, is the first compensation function, To control the gain, For abnormal temperature timing load, It is expressed as the real time from the abnormal temperature to the normal temperature threshold range; The second compensation strategy, if the temperature does not return to the normal temperature threshold range within the step time, construct the second compensation function based on the abnormal temperature timing load of the equipment and the compensation item parameters, the expression is: ; in, is the second compensation function, For abnormal temperature timing load, is the temperature deviation value from the abnormal temperature to the normal temperature threshold range, , and They are proportional gain, integral gain and differential gain respectively; Step S4, calculating the compensation power through the compensation function, inputting the compensation power into the constant temperature control unit, taking the step time as the constant temperature control unit response time, and outputting the constant temperature adjustment result.
2. The automatic constant temperature control method based on the Internet of Things and fuzzy judgment according to claim 1 is characterized in that: The method for performing time window analysis on the temperature sensor data in step S2 includes: Set the time window and step size to obtain the normal temperature threshold range, perform time window analysis on the temperature sensor data, and identify abnormal temperature data; Calculate the probability density function estimate of abnormal temperature data, the expression is: ; in, The bandwidth is set to 1.06 times the minimum standard deviation of the abnormal temperature data divided by the square root of the interquartile range of the temperature sensor data sample size. and The time window is and Temperature data, is the step size, is the number of data points in the time window; The probability density function estimate is processed with a Gaussian window, and the data after the Gaussian window processing is Fourier transformed to obtain the abnormal temperature time series frequency, which is expressed as: ; in, is the probability density function estimate, is the Gaussian window function, is the Gaussian window parameter, is the number of data points in the time window, is the Gaussian window width, is the kernel function of Fourier transform, is the imaginary unit of Fourier transform, is the angular frequency.
3. The automatic constant temperature control method based on the Internet of Things and fuzzy judgment according to claim 1 is characterized in that: The method for calculating the abnormal temperature fluctuation trend value by using the abnormal temperature time series frequency comprises: Perform fluctuation analysis on the abnormal temperature time series frequency and calculate the variance of the abnormal temperature time series frequency: ; in, is the variance of the abnormal temperature time series frequency, is the total number of steps, is the abnormal temperature timing frequency, is the mean of the abnormal temperature timing frequency, and the peak value of the abnormal temperature timing frequency is calculated according to the variance value. The expression is: ; The abnormal temperature frequency fluctuation trend value is calculated based on the variance and peak value of the abnormal temperature time series frequency. The calculation formula is: ; in, is the variance of the abnormal temperature time series frequency, is the peak value of the abnormal temperature timing frequency, is the adjustment factor, taking 0.
01.
4. An automatic constant temperature control system based on the Internet of Things and fuzzy judgment is used to execute the automatic constant temperature control method based on the Internet of Things and fuzzy judgment according to any one of claims 1 to 3, characterized in that: The system comprises: Data acquisition module, collects equipment parameters and temperature sensor data and performs preprocessing; The time window analysis module performs time window analysis on the temperature sensor data to obtain the abnormal temperature timing frequency, and calculates the abnormal temperature timing load of the equipment based on the abnormal temperature timing frequency and equipment parameters; The fuzzy control module builds a fuzzy controller based on fuzzy judgment, obtains the step time and fuzzy control quantity of the fuzzy controller, and performs reinforcement learning based on the fuzzy control quantity to obtain the compensation item parameters; The compensation strategy module calculates the abnormal temperature fluctuation trend value, obtains the compensation strategy based on the abnormal temperature fluctuation trend value, and constructs a compensation function for the compensation strategy in combination with the compensation item parameters; The constant temperature control module calculates the compensation power according to the compensation function and inputs the compensation power to the constant temperature control unit. The constant temperature control unit uses the step time as the interval response time to adjust the power of the device to achieve constant temperature control.
5. An electronic device, comprising: processor; as well as A memory arranged to store computer executable instructions, which, when executed, cause the processor to perform the method of any one of claims 1 to 3.
6. A computer-readable storage medium storing one or more programs, which, when executed by an electronic device including a plurality of application programs, enables the electronic device to execute the method according to any one of claims 1 to 3.
Citation Information
Patent Citations
Method for monitoring hot-spot temperature of oil-immersed transformer
CN108896209A
Temperature controller of iron
JP1992059000A
