Heat supply temperature personalized prediction and control method and system based on machine learning

Through the personalized prediction and control method of heating temperature based on machine learning, the problem of insufficient adaptability of traditional heating systems to temperature changes and household needs is solved, and precise temperature control and efficiency improvement of the heating system are achieved.

CN118778723APending Publication Date: 2024-10-15GUODIAN HAERBIN THERMOELECTRICITY CO LTD

Patent Information

Application Number
CN202410733412.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-07
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

The traditional two-network balance optimization method of the heating pipe network is difficult to cope with temperature changes and meet the personalized heating needs of different households, and lacks the flexibility to adjust the heating for individual households.

Method used

A personalized prediction and control method of heating temperature based on machine learning is adopted. By collecting the topological structure data and real-time temperature data of the heating pipe network, a set of heat transfer equations is established, and the optimal heating temperature of the primary network is calculated using numerical methods, and combined with Resident feedback data trains the ideal temperature prediction model and adjusts the valve opening and closing in real time to adapt to the needs of residents.

Benefits of technology

It achieves precise temperature control of the heating system, improves the adaptability and efficiency of the system, ensures that each household reaches the ideal temperature level, adapts to temperature changes and household needs, and improves the energy efficiency of the heating system and household experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118778723A_ABST
    Figure CN118778723A_ABST
Patent Text Reader

Abstract

The invention discloses a heat supply temperature personalized prediction and control method and system based on machine learning, and relates to the technical field of machine learning. Node data and geometric structure data of pipe sections are collected, and the temperature of the inner wall of a pipeline, operation parameters of water and air temperature data are collected; a heat transfer equation is established through node data, geometric structure data, pipeline inner wall temperature, water operation parameters and air temperature data, a finite element equation set of the whole heat supply pipe network is obtained through integration, the node temperature is obtained through solving, the node temperature and the human body suitable temperature are used for calculating the primary network optimal heat supply temperature to supply heat to residents, and the heat supply efficiency is improved. Training an ideal temperature prediction model, predicting the ideal temperature and the heat supply demand level of the resident by using the ideal temperature prediction model, inputting the ideal temperature and the heat supply demand level into a temperature controller, and adjusting the opening degree of a valve to adjust the real-time heat supply temperature to the ideal temperature. And the personalized heat supply requirements of temperature change and different residents are met through intelligent adjustment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of machine learning technology, and in particular to a method and system for personalized prediction and control of heating temperature based on machine learning. Background Art

[0002] In the current urban heating system, the heating network serves as a bridge between the heat source and the user. Its optimization and control play a vital role in improving heating efficiency, ensuring heating quality, and achieving energy conservation and emission reduction. The heating system is generally divided into a primary network and a secondary network. The primary network is the heating network from the heat source to the heat exchange station. In this process, the heat medium is transported to each heat exchange station to provide heat energy. The secondary network refers to the heating network from the heat exchange station to the final residents. At the heat exchange station, the heat on the primary side is transferred to the secondary side and then transported to the final residents.

[0003] The secondary network balance of the heating network refers to the process in which hot water in the heating system starts from the heat source, is transported to various hot spots such as residential areas and industrial areas through the pipe network, and finally returns to the heat source, maintaining the state of thermal balance and flow balance in the system. Specifically, this means that the heating system needs to adjust the flow distribution in the pipe network to ensure that each hot spot can get enough heat to meet the demand while ensuring the efficient operation of the system. With the advancement of urbanization and the improvement of residents' living standards, the requirements for heating quality and efficiency are getting higher and higher, and the demand for secondary network balance is also getting higher and higher.

[0004] The Chinese patent with publication number CN116306911A discloses a method for load prediction and optimization control of a heat station based on distributed machine learning, including: setting corresponding edge computing devices near multiple heat stations, constructing feature vectors based on the load characteristics and time series characteristics of the heat stations; the cloud server initializes the global heat load prediction network model and sends it to each edge computing device; the edge computing device uses local data to train the heat load prediction network model to obtain a local heat load prediction network model; the cloud server aggregates the local heat load prediction network models of multiple edge computing devices, updates the global heat load prediction network model, and sends it to each edge computing device; while keeping the total flow of the heating system and the return water temperature of the secondary network unchanged, establish a secondary network water supply temperature prediction model, calculate the water supply temperature setting value of the secondary network, and adjust the primary network regulating valve to control the secondary heat network water supply temperature. This invention mainly focuses on the load prediction and optimization control of the heat station, and does not take into account the personalized temperature requirements of end users.

[0005] However, although the traditional two-network balancing optimization method of the heating pipeline network can achieve a certain degree of heat energy distribution and temperature control, in terms of coping with temperature changes and meeting the personalized heating needs of different residents, the traditional two-network balancing system usually operates based on fixed scheduling plans and set parameters. This limits their adaptability to rapidly changing climate conditions and it is difficult to make personalized heating adjustments for each individual household. Summary of the invention

[0006] The present application aims to solve at least one of the technical problems in the related art to a certain extent. To this end, one purpose of the present application is to propose a personalized prediction and control method and system for heating temperature based on machine learning, which meets the personalized heating needs of different households and temperature changes through intelligent regulation.

[0007] One aspect of the present application provides a personalized prediction and control method for heating temperature based on machine learning, comprising:

[0008] Step S100: collecting and drawing a topological structure model of the heating network, dividing the heating network into N nodes and M pipe segments, collecting data of each node and geometric structure data of each pipe segment, and collecting the inner wall temperature of the pipes of the heating network during heating, water operation parameters and air temperature data;

[0009] The specific method of collecting and drawing the topological structure model of the heating network, dividing the heating network into N nodes and M pipe segments, collecting the data of each node and the geometric structure data of each pipe segment, and collecting the pipe inner wall temperature, water operation parameters and air temperature data of the heating network during heating is as follows:

[0010] Step S110: collecting the topological structure of the heating network and drawing a topological structure model, dividing the heating network into N nodes and M pipe segments, collecting the geometric structure data of each pipe segment to obtain the pipe segment radius r, pipe segment length L and pipe segment material of each pipe segment;

[0011] Step S120: For each node, obtain its node data, which includes the node coordinates, the set of all pipe segment numbers J flowing through the node, and the human body suitable temperature T sp , the node represents a node of a household;

[0012] Step S130: Collect the pipe inner wall temperature T of each pipe segment ω and the water operation parameters of each node, and collect the temperature data T at the corresponding time out , the water operation parameters include water flow rate v and water temperature T;

[0013] Step S200: Establish a heat transfer equation for each pipe segment using node data, geometric structure data of the pipe segment, pipe inner wall temperature of the heating pipe network during heating, water operating parameters and air temperature data, integrate the heat transfer equations of each pipe segment, and obtain a finite element equation group of the entire heating pipe network;

[0014] The specific method of establishing the heat transfer equation of each pipe segment by using the node data, the geometric structure data of the pipe segment, the inner wall temperature of the pipe of the heating pipe network during heating, the operating parameters of the water and the air temperature data, integrating the heat transfer equation of each pipe segment, and obtaining the finite element equation group of the entire heating pipe network is as follows:

[0015] Step S210: For the jth pipe segment, define its pipe segment radius as r j , the length of the pipeline is L j , the inner wall temperature of the pipe is T ω,j ;

[0016] Step S220: Establish a heat transfer equation for each pipe segment. The heat transfer equation is expressed as: q j =α j ×Π×r j ×L j ×(T ω,j -T out ), where q j represents the heat transfer of the jth tube segment, α j is the convective heat transfer coefficient, Π represents the pi;

[0017] Step S230: For the i-th node, obtain all the pipe sections that flow through the node to obtain the pipe section number set J i , calculate the total heat transfer q flowing into the i-th node i , calculate the total heat transfer of all nodes to obtain the total heat transfer sequence of nodes {q1,q2,...,q N}, i∈[1,N],q N is the total heat transfer of the Nth node;

[0018] The total heat transfer amount q of the i-th node i The calculation formula is:

[0019] Step S240: Obtain the set J of pipe segment numbers passing through the i-th node i The sum of the pipe volumes of all pipe sections in j , calculate the heat capacity coefficient C of the i-th node i ;

[0020] The heat capacity coefficient C of the i-th node i The calculation formula is: Among them, Δt is the time step;

[0021] Step S250: Obtain the ith node and the kth node on the heating pipe network, and obtain the cross-sectional area A of the heating pipe section connecting the ith node and the kth node ik , get the water flow rate v of the i-th node and the k-th node i 、v k , calculate the heat transfer coefficient D between the i-th node and the k-th node ik ;

[0022] The heat transfer coefficient D between the i-th node and the k-th node ik The calculation formula is: Where ρ is the density of water, C ω is the specific heat capacity of water;

[0023] Step S260: Calculate the heat capacity coefficients of all nodes to obtain a heat capacity coefficient sequence {C1, C2, ..., C N}, calculate the heat transfer coefficient between all nodes to obtain the heat transfer coefficient matrix C N is the heat capacity coefficient of the Nth node, D 1N is the heat transfer coefficient between the 1st node and the Nth node, D 2N is the heat transfer coefficient between the 2nd node and the Nth node;

[0024] Step S270: Integrate the heat transfer equations of each pipe segment and combine the heat capacity coefficient sequence and heat transfer coefficient matrix at each node to obtain a finite element equation group of the entire heating network;

[0025] The finite element equations are:

[0026] Among them, ∑D 1k represents the heat transfer coefficient between the first node and all adjacent nodes k, ∑D 2k represents the heat transfer coefficient between the second node and all adjacent nodes k, T N is the node temperature of the Nth node;

[0027] Step S300: using a numerical method to solve the finite element equations to obtain the node temperature of each node, and using the node temperature and the suitable temperature of the human body to calculate the optimal heating temperature of the primary network;

[0028] The specific method of using the numerical method to solve the finite element equations to obtain the node temperature of each node and using the node temperature and the suitable temperature of the human body to calculate the optimal heating temperature of the primary network is:

[0029] Step S310: Solve the finite element equations using a numerical method to obtain the node temperature T per unit time of each node.i (t);

[0030] Step S320: Calculate the optimal heating temperature of the primary network by combining the node temperature and the actual temperature difference that needs to be adjusted.

[0031] The optimal heating temperature of the primary network for: Where, ΔT i represents the actual temperature difference that needs to be adjusted, and N0 represents the set of all resident nodes;

[0032] The actual temperature difference ΔT that needs to be adjusted i =ΔT i =max{T sp -T i (t),T safe}, where T safe is the safety margin;

[0033] Step S400: Providing heating to residents based on the optimal heating temperature of the primary network, collecting residents’ feedback data, and using the residents’ feedback data, real-time temperature data, and the optimal heating temperature of the primary network to train and obtain an ideal temperature prediction model;

[0034] The specific method of providing heating to residents based on the optimal heating temperature of the primary network, collecting resident feedback data, and using the resident feedback data, real-time temperature data and the optimal heating temperature of the primary network to train an ideal temperature prediction model is:

[0035] Step S410: Calculate the optimal heating temperature of the primary network according to the real-time temperature data and the node data of the current resident, and use the temperature as the heating temperature of the primary network to provide heating to the resident;

[0036] Step S420: Collecting household feedback data during the heating process, wherein the household feedback data includes: household expected temperature, actual heating temperature, and household preferred time;

[0037] Step S430: Create a data set using household feedback data, real-time temperature data and the optimal heating temperature of the primary network, and mark the heating demand level of the household expected temperature at different times according to the household preference time. The category g of the heating demand level is divided into low demand, medium demand and high demand, g∈[1, G], G is 3, and the heating demand level, real-time temperature data and the optimal heating temperature of the primary network are used as feature labels to feature mark the household expected temperature, encode the heating demand level into a continuous vector, and standardize the household expected temperature, real-time temperature data and the optimal heating temperature of the primary network to the interval [-1, 1];

[0038] Step S440: construct a machine learning model, the machine learning model includes an LSTM learner, a CNN learner and an MLP learner, takes the heating demand level, the real-time temperature data and the optimal heating temperature of the primary network as input data, and outputs a feature concatenation of all the input data;

[0039] Step S450: concatenate the features of all input data as new feature inputs, and use GBDT as a meta-learner to learn the best combination of feature concatenation;

[0040] Step S460: design a multi-task learning framework, in which the main task is used to predict the expected temperature of the residents, a fully connected layer is used to process the feature input, and the mean square error loss is used as the loss function of the main task; the auxiliary task is used to predict the heating demand level of the residents at the current time, and the cross entropy loss is used as the loss function of the auxiliary task;

[0041] Step S470: Jointly optimize the loss function L of the main task reg And the loss function L of the auxiliary task cls , and get the total loss function L ZS ;

[0042] The functional expression of the total loss function is:

[0043]

[0044] Among them, Z is the total number of input data, y μ is the actual household expected temperature of the μth input data, y′ μ is the predicted household expected temperature of the μth input data, G is the number of categories of heating demand level, y μg is an indicator. When the heating demand level of the μth input data is category g, y μg is 1, otherwise it is 0. represents the probability that the μth input data belongs to category g, a is the weight coefficient of the loss function of the main task, and b is the weight coefficient of the loss function of the auxiliary task;

[0045] The heating demand levels include low demand, medium demand and high demand, and G is equal to 3;

[0046] Step S480: taking the accurate prediction of the expected temperature of the residents at each time and the corresponding heating demand level at that time as the prediction target, taking minimizing the total loss function as the training target, and stopping the training when the total loss function reaches convergence to obtain the ideal temperature prediction model;

[0047] Step S500: using the ideal temperature prediction model to predict the ideal temperature and heating demand level of the resident, the resident inputs the ideal temperature and heating demand level into the thermostat, and adjusts the valve opening to adjust the real-time heating temperature to the ideal temperature;

[0048] The specific method of using the ideal temperature prediction model to predict the ideal temperature and heating demand level of the residents, and the residents input the ideal temperature and heating demand level into the thermostat and adjust the valve opening to adjust the real-time heating temperature to the ideal temperature is:

[0049] Step S510: Collect real-time household feedback data, real-time temperature data and the optimal heating temperature of the primary network, and use the ideal temperature prediction model to predict the ideal temperature T of the current household. set and heating demand levels;

[0050] Step S520: Obtain the current indoor temperature T in , external temperature T o ' ut and the current valve opening / closing degree θ cur , set the temperature difference response coefficient W;

[0051] Step S530: The household end is equipped with a thermostat and a valve, the ideal temperature and the heating demand level are input into the thermostat, and the temperature difference response coefficient W is adjusted based on the heating demand level;

[0052] The specific method for adjusting the temperature difference response coefficient W based on the heating demand level is:

[0053] When the category g of the heating demand level is low demand, W is equal to 0.2;

[0054] When the category g of the heating demand level is medium demand, W is equal to 0.5;

[0055] When the category g of the heating demand level is high demand, W is equal to 0.8;

[0056] Step S540: Calculate the adjustment degree Δθ of the valve opening and closing degree. The calculation formula of the adjustment degree Δθ of the valve opening and closing degree is: Δθ=W×(T set -T in )+γ×(T in -T o ' ut ), where γ is the external temperature influence coefficient;

[0057] Step S550: Obtaining an updated valve opening degree θ according to the adjustment degree of the valve opening degree new ;

[0058] The calculation formula of the updated valve opening degree is: θ new =θcur +Δθ.

[0059] One aspect of the present application provides a personalized prediction and control system for heating temperature based on machine learning, including:

[0060] The topology structure and data collection module is used to collect and draw the topology structure model of the heating network, divide the heating network into N nodes and M pipe segments, collect the data of each node and the geometric structure data of each pipe segment, and collect the inner wall temperature of the heating network during heating, the operating parameters of the water, and the air temperature data;

[0061] The heating network equation integration module is used to establish the heat transfer equation for each pipe segment using the node data, the geometric structure data of the pipe segment, the inner wall temperature of the pipe of the heating network during heating, the water operation parameters and the air temperature data, and integrate the heat transfer equation of each pipe segment to obtain the finite element equation group of the entire heating network;

[0062] The primary network heating temperature calculation module is used to solve the finite element equations using numerical methods to obtain the node temperature of each node, and calculate the optimal heating temperature of the primary network using the node temperature and the suitable temperature of the human body;

[0063] The temperature and heating demand prediction module is used to provide heating to residents based on the optimal heating temperature of the primary network, collect resident feedback data, and use the resident feedback data, real-time temperature data and the optimal heating temperature of the primary network to train and obtain an ideal temperature prediction model;

[0064] The personalized heating temperature adjustment module is used to predict the ideal temperature and heating demand level of the residents using the ideal temperature prediction model. The residents input the ideal temperature and heating demand level into the thermostat and adjust the valve opening to adjust the real-time heating temperature to the ideal temperature.

[0065] One aspect of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps in the method for personalized prediction and control of heating temperature based on machine learning are implemented.

[0066] One aspect of the present application provides a readable storage medium, which stores a computer program, and the computer program is suitable for loading by a processor to execute the steps in a personalized prediction and control method for heating temperature based on machine learning.

[0067] The personalized prediction and control method and system for heating temperature based on machine learning proposed in this application have the following advantages over the prior art:

[0068] This application can more accurately simulate and predict the thermal dynamic behavior of the entire heating system by accurately calculating the heat transfer and heat capacity properties of each pipe segment and node, thereby improving the energy efficiency and efficiency of the entire heating system. The integration of the heat transfer equation enables this application to quickly adjust the heating strategy according to actual operating conditions and external temperature changes, with shorter response time and more flexible adjustment;

[0069] This application uses numerical methods to solve the finite element equations, and can accurately predict the temperature of each node under different operating conditions. This provides a scientific basis for accurately controlling the heating temperature, ensuring that each node reaches the ideal temperature level. Taking into account the influence of the external temperature, the heating temperature can be automatically adjusted to adapt to weather changes, which not only increases the adaptability of this application, but also improves the experience of residents. The calculation result of the optimal heating temperature of the primary network will be directly used to adjust the water temperature and flow entering the secondary network, which means that the heating of the secondary network is more accurate and efficient because it is further adjusted based on the optimized output of the primary network;

[0070] This application collects and analyzes the difference between the residents' expected and actual temperatures and their heating demand time, so that the heating system can be personalized according to the specific needs of each resident. This data-driven approach can reflect and adapt to residents' needs and external environmental changes in real time by using advanced machine learning methods.

[0071] This application collects environmental data and resident feedback in real time and immediately adjusts valve opening and closing. It can flexibly respond to changes in temperature and changes in resident demand to ensure that the heating system always operates in the most appropriate manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0072] Figure 1 A method flow chart of the personalized prediction and control method of heating temperature based on machine learning provided in this application;

[0073] Figure 2 Functional module diagram of the personalized prediction and control system of heating temperature based on machine learning provided in this application;

[0074] Figure 3 A schematic diagram of the structure of an electronic device provided in this application;

[0075] Figure 4 It is a schematic diagram of the structure of a readable storage medium provided by this application. DETAILED DESCRIPTION

[0076] In order to better understand the present application, various aspects of the present application will be described in more detail with reference to the accompanying drawings. It should be understood that these detailed descriptions are only descriptions of exemplary embodiments of the present application and do not limit the scope of the present application in any way. Throughout the specification, the same reference numerals refer to the same elements. The expression "and / or" includes any and all combinations of one or more of the associated listed items.

[0077] In the accompanying drawings, the size, dimensions and shapes of the elements have been slightly adjusted for ease of illustration. The drawings are for illustration only and are not strictly drawn to scale. As used herein, the terms "substantially", "approximately" and similar terms are used as terms of approximation, not as terms of degree, and are intended to illustrate the inherent deviations in measurements or calculations that will be recognized by those of ordinary skill in the art. In addition, in this application, the order in which the steps are described does not necessarily represent the order in which these processes occur in actual operation, unless otherwise specified or can be derived from the context.

[0078] It should also be understood that expressions such as "including", "comprising", "having", "containing" and / or "comprising" are open rather than closed expressions in this specification, which indicate the presence of the stated features, elements and / or components, but do not exclude the presence of one or more other features, elements, components and / or combinations thereof. In addition, when expressions such as "at least one of..." appear after a list of listed features, they modify the entire list of features rather than just the individual elements in the list. In addition, when describing embodiments of the present application, "may" is used to mean "one or more embodiments of the present application". And, the term "exemplary" is intended to refer to an example or illustration.

[0079] Unless otherwise specified, all words (including engineering terms and scientific and technological terms) used in this article have the same meaning as those commonly understood by ordinary technicians in the field to which this application belongs. It should also be understood that, unless clearly stated in this application, words defined in common dictionaries should be interpreted as having the same meaning as their meaning in the context of the relevant technology, and should not be interpreted in an idealized or overly formal sense.

[0080] It should be noted that, in the absence of conflict, the embodiments and features of the embodiments in the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0081] Example 1

[0082] like Figure 1 As shown, the personalized prediction and control method of heating temperature based on machine learning provided in this application includes:

[0083] Step S100: Collect and draw the topological structure model of the heating network, divide the heating network into N nodes and M pipe segments, collect the data of each node and the geometric structure data of each pipe segment, and collect the pipe inner wall temperature, water operating parameters and air temperature data of the heating network during heating.

[0084] The specific method of collecting and drawing the topological structure model of the heating network, dividing the heating network into N nodes and M pipe segments, collecting the data of each node and the geometric structure data of each pipe segment, and collecting the pipe inner wall temperature, water operation parameters and air temperature data of the heating network during heating is as follows:

[0085] Step S110: Collect the topological structure of the heating network and draw a topological structure model, divide the heating network into N nodes and M pipe segments, collect the geometric structure data of each pipe segment to obtain the pipe segment radius r, pipe segment length L and pipe segment material of each pipe segment.

[0086] Step S120: For each node, obtain its node data, which includes the node coordinates, the set of all pipe segment numbers J flowing through the node, and the human body suitable temperature T sp , the node represents a node of a household;

[0087] The suitable temperature for the human body refers to the most suitable temperature that the human body can feel under natural conditions.

[0088] Step S130: Collect the pipe inner wall temperature T of each pipe segment ω and the water operation parameters of each node, and collect the temperature data T at the corresponding time out , the water operating parameters include water flow rate v and water temperature T.

[0089] This step provides the necessary input for the ideal temperature prediction model by drawing the topological structure model of the heating network, collecting the data of each node and the geometric structure data of the pipe section, collecting the inner wall temperature of the pipes of the heating network, the operating parameters of the water and the air temperature data during heating, and providing a data basis for model training and the establishment of the finite element equation group.

[0090] Step S200: Establish a heat transfer equation for each pipe segment using node data, geometric structure data of pipe segments, pipe inner wall temperature of the heating network during heating, water operating parameters and air temperature data, integrate the heat transfer equations of each pipe segment, and obtain a finite element equation group for the entire heating network.

[0091] The specific method of establishing the heat transfer equation of each pipe segment by using the node data, the geometric structure data of the pipe segment, the inner wall temperature of the pipe of the heating pipe network during heating, the operating parameters of the water and the air temperature data, integrating the heat transfer equation of each pipe segment, and obtaining the finite element equation group of the entire heating pipe network is as follows:

[0092] Step S210: For the jth pipe segment, define its pipe segment radius as r j , the length of the pipeline is L j , the inner wall temperature of the pipe is T ω,j .

[0093] Step S220: Establish a heat transfer equation for each pipe segment. The heat transfer equation is expressed as: q j =α j ×Π×r j ×L j ×(T ω,j -T out ), where q j represents the heat transfer of the jth tube segment, α j is the convective heat transfer coefficient, Π represents the pi;

[0094] The convective heat transfer coefficient α j It is calculated based on the thermal conductivity of the pipe material and the pipe radius. The calculation formula is: Where N uj is the Nusselt number of the jth pipe section, which can be obtained by querying the flow condition table. is the thermal conductivity of the pipe material.

[0095] Step S230: For the i-th node, obtain all the pipe sections that flow through the node to obtain the pipe section number set J i , calculate the total heat transfer q flowing into the i-th node i , calculate the total heat transfer of all nodes to obtain the total heat transfer sequence of nodes {q1,q2,...,q N}, i∈[1,N],q N is the total heat transfer of the Nth node;

[0096] The total heat transfer amount q of the i-th node i The calculation formula is:

[0097] Step S240: Obtain the set J of pipe segment numbers passing through the i-th node i The sum of the pipe volumes of all pipe sections in j , calculate the heat capacity coefficient C of the i-th node i ;

[0098] The heat capacity coefficient C of the i-th node i The calculation formula is: Among them, Δt is the time step;

[0099] The time step Δt means that continuous unit time is discretized to obtain a series of time points, and the time interval between adjacent time points is the time step Δt.

[0100] Step S250: Obtain the ith node and the kth node on the heating pipe network, and obtain the cross-sectional area A of the heating pipe section connecting the ith node and the kth node ik , get the water flow rate v of the i-th node and the k-th node i 、v k , calculate the heat transfer coefficient D between the i-th node and the k-th node ik ;

[0101] The heat transfer coefficient D between the i-th node and the k-th node ik The calculation formula is: Where ρ is the density of water, C ω is the specific heat capacity of water.

[0102] Step S260: Calculate the heat capacity coefficients of all nodes to obtain a heat capacity coefficient sequence {C1, C2, ..., C N}, calculate the heat transfer coefficient between all nodes to obtain the heat transfer coefficient matrix C N is the heat capacity coefficient of the Nth node, D 1N is the heat transfer coefficient between the 1st node and the Nth node, D 2N is the heat transfer coefficient between the 2nd node and the Nth node.

[0103] Step S270: Integrate the heat transfer equations of each pipe segment and combine the heat capacity coefficient sequence and heat transfer coefficient matrix at each node to obtain a finite element equation group of the entire heating network;

[0104] The finite element equations are:

[0105] Among them, ∑D 1k represents the heat transfer coefficient between the first node and all adjacent nodes k, ∑D 2k represents the heat transfer coefficient between the second node and all adjacent nodes k, T N is the node temperature of the Nth node.

[0106] This step establishes a finite element equation group for the entire heating network, providing a basis for solving the finite element equation group using numerical methods in subsequent steps to obtain the optimal heating temperature of the primary network.

[0107] Step S300: using a numerical method to solve the finite element equations to obtain the node temperature of each node, and using the node temperature and the suitable temperature of the human body to calculate the optimal heating temperature of the primary network;

[0108] The heating temperature includes the primary network heating temperature and the secondary network heating temperature. The heat exchange station will adjust the water temperature and flow rate entering the secondary network according to the heating temperature of the primary network.

[0109] The specific method of using the numerical method to solve the finite element equations to obtain the node temperature of each node and using the node temperature and the suitable temperature of the human body to calculate the optimal heating temperature of the primary network is:

[0110] Step S310: Solve the finite element equations using a numerical method to obtain the node temperature T per unit time of each node. i (t).

[0111] Step S320: Calculate the optimal heating temperature of the primary network by combining the node temperature and the actual temperature difference that needs to be adjusted.

[0112] The optimal heating temperature of the primary network for: Where, ΔT i represents the actual temperature difference that needs to be adjusted, and N0 represents the set of all resident nodes;

[0113] The actual temperature difference ΔT that needs to be adjusted i =ΔT i =max{T sp -T i (t),T safe}, where T safe is the safety margin;

[0114] The safety margin is used to ensure that the heating temperature of the residents can be maintained above a comfortable level even when the external air temperature data is very low.

[0115] Preferably, the safety margin T safe Equals 5 degrees Celsius.

[0116] This step calculates the optimal heating temperature of the primary network, which means that the heating of the secondary network is more accurate and efficient. Accurate temperature data makes the monitoring and maintenance of the system more efficient. The system maintains the temperature of each node within the set safety margin to ensure that the living comfort of the residents will not be affected even in extreme temperatures.

[0117] Step S400: Providing heating to residents based on the optimal heating temperature of the primary network, collecting residents’ feedback data, and using the residents’ feedback data, real-time temperature data, and the optimal heating temperature of the primary network to train and obtain an ideal temperature prediction model;

[0118] The specific method of providing heating to residents based on the optimal heating temperature of the primary network, collecting resident feedback data, and using the resident feedback data, real-time temperature data and the optimal heating temperature of the primary network to train an ideal temperature prediction model is:

[0119] Step S410: Calculate the optimal heating temperature of the primary network according to the real-time temperature data and the node data of the current resident, and use the temperature as the heating temperature of the primary network to provide heating to the resident;

[0120] Step S420: Collecting household feedback data during the heating process, wherein the household feedback data includes: household expected temperature, actual heating temperature, and household preferred time;

[0121] The household expected temperature refers to the heating temperature that the household expects to reach the household node.

[0122] The actual heating temperature refers to the heating temperature when it actually reaches the resident node.

[0123] The resident preference time refers to the time when the resident has a demand for heating, including commuting time and holidays.

[0124] Step S430: Create a data set using household feedback data, real-time temperature data and the optimal heating temperature of the primary network, and mark the heating demand level of the residents' expected temperatures at different times according to the residents' preferred time. The category g of the heating demand level is divided into low demand, medium demand and high demand, g∈[1, G], G is 3, and the heating demand level, real-time temperature data and the optimal heating temperature of the primary network are used as feature labels to feature the household's expected temperature, encode the heating demand level into a continuous vector, and standardize the household's expected temperature, real-time temperature data and the optimal heating temperature of the primary network to the interval [-1, 1].

[0125] Step S440: construct a machine learning model, the machine learning model includes an LSTM learner, a CNN learner and an MLP learner, takes the heating demand level, the real-time temperature data and the optimal heating temperature of the primary network as input data, and outputs a feature concatenation of all the input data;

[0126] The LSTM learner refers to Long Short-Term Memory, which is a neural network that is good at capturing long-term dependencies in sequence data. It is used to input the encoding form of heating demand level, real-time temperature data and the optimal heating temperature of the primary network.

[0127] The CNN learner refers to Convolutional Neural Network, which is a neural network that specializes in processing grid structure data. It is used to extract data features learned from heating demand levels, real-time temperature data and optimal heating temperature of the primary network, and splice the data features into a multi-channel image as input.

[0128] The MLP learner refers to Multi-Layer Perceptron, which refers to a fully connected feed-forward neural network, and is used for inputting feature concatenation of all input data.

[0129] Step S450: concatenate the features of all input data as new feature inputs, and use GBDT as a meta-learner to learn the best combination of feature concatenation;

[0130] The GBDT is an integrated learning algorithm that acts as a meta-learner and takes the features of the LSTM learner, CNN learner, and MLP learner as its input.

[0131] Step S460: design a multi-task learning framework, in which the main task is used to predict the expected temperature of the residents, a fully connected layer is used to process the feature input, and the mean square error loss is used as the loss function of the main task; the auxiliary task is used to predict the heating demand level of the residents at the current time, and the cross entropy loss is used as the loss function of the auxiliary task;

[0132] Step S470: Jointly optimize the loss function L of the main task reg And the loss function L of the auxiliary task cls , we get the total loss function L ZS ;

[0133] The functional expression of the total loss function is:

[0134]

[0135] Among them, Z is the total number of input data, y μ is the actual household expected temperature of the μth input data, y′ μ is the predicted household expected temperature of the μth input data, G is the number of categories of heating demand level, y μg is an indicator. When the heating demand level of the μth input data is category g, y μg is 1, otherwise it is 0. represents the probability that the μth input data belongs to category g, a is the weight coefficient of the loss function of the main task, and b is the weight coefficient of the loss function of the auxiliary task;

[0136] The heating demand levels include low demand, medium demand and high demand, and G is equal to 3.

[0137] The weight coefficient of the loss function of the main task and the weight coefficient of the loss function of the auxiliary task are set according to the actual model training situation.

[0138] Step S480: Taking the accurate prediction of the expected temperature of the residents at each time and the corresponding heating demand level at that time as the prediction target, minimizing the total loss function as the training target, and stopping the training when the total loss function reaches convergence to obtain the ideal temperature prediction model.

[0139] This step helps to continuously optimize the prediction model and adjustment strategy by collecting and analyzing resident feedback and system performance data, ensuring that every resident can achieve the appropriate indoor temperature within the required time.

[0140] Step S500: The ideal temperature prediction model is used to predict the ideal temperature and heating demand level of the resident. The resident inputs the ideal temperature and heating demand level into the thermostat and adjusts the valve opening to adjust the real-time heating temperature to the ideal temperature.

[0141] The specific method of using the ideal temperature prediction model to predict the ideal temperature and heating demand level of the residents, and the residents input the ideal temperature and heating demand level into the thermostat and adjust the valve opening to adjust the real-time heating temperature to the ideal temperature is:

[0142] Step S510: Collect real-time household feedback data, real-time temperature data and the optimal heating temperature of the primary network, and use the ideal temperature prediction model to predict the ideal temperature T of the current household. set and heating demand levels.

[0143] Step S520: Obtain the current indoor temperature T in , external temperature T o ' ut and the current valve opening / closing degree θ cur , set the temperature difference response coefficient W.

[0144] Step S530: The household end is equipped with a thermostat and a valve, the ideal temperature and the heating demand level are input into the thermostat, and the temperature difference response coefficient W is adjusted based on the heating demand level;

[0145] The specific method for adjusting the temperature difference response coefficient W based on the heating demand level is:

[0146] When the category g of the heating demand level is low demand, W is equal to 0.2;

[0147] When the category g of the heating demand level is medium demand, W is equal to 0.5;

[0148] When the category g of the heating demand level is high demand, W is equal to 0.8.

[0149] Step S540: Calculate the adjustment degree Δθ of the valve opening and closing degree. The calculation formula of the adjustment degree Δθ of the valve opening and closing degree is: Δθ=W×(T set -T in)+γ×(T in -T o ' ut ), where γ is the external temperature influence coefficient.

[0150] Step S550: Obtaining an updated valve opening degree θ according to the adjustment degree of the valve opening degree new ;

[0151] The calculation formula of the updated valve opening degree is: θ new =θ cur +Δθ.

[0152] This step enhances residents’ sense of participation and control by directly inputting the desired temperature and heating demand level on the thermostat, thereby improving resident satisfaction. At the same time, residents’ feedback data can be used to further optimize system performance.

[0153] Example 2

[0154] like Figure 2 As shown, the personalized prediction and control system of heating temperature based on machine learning provided by this application includes:

[0155] The topology structure and data collection module is used to collect and draw the topology structure model of the heating network, divide the heating network into N nodes and M pipe sections, collect the data of each node and the geometric structure data of the pipe section, and collect the inner wall temperature of the pipes, water operating parameters and air temperature data of the heating network during heating.

[0156] The heating network equation integration module is used to establish the heat transfer equation for each pipe segment using node data, pipe segment geometry data, pipe inner wall temperature, water operating parameters and air temperature data of the heating network during heating, and integrate the heat transfer equation for each pipe segment to obtain the finite element equation group of the entire heating network.

[0157] The primary network heating temperature calculation module is used to solve the finite element equations using numerical methods to obtain the node temperature of each node, and use the node temperature and the suitable temperature of the human body to calculate the optimal heating temperature of the primary network.

[0158] The temperature and heating demand prediction module is used to provide heating to residents based on the optimal heating temperature of the primary network, collect resident feedback data, and use resident feedback data, real-time temperature data and the optimal heating temperature of the primary network to train an ideal temperature prediction model.

[0159] The personalized heating temperature adjustment module is used to predict the ideal temperature and heating demand level of the residents using the ideal temperature prediction model. The residents input the ideal temperature and heating demand level into the thermostat and adjust the valve opening to adjust the real-time heating temperature to the ideal temperature.

[0160] Example 3

[0161] Figure 3 1 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Figure 3 As shown, according to another aspect of the present application, an electronic device is also provided. The electronic device may include one or more processors and one or more memories. The memories store computer readable codes, and when the computer readable codes are executed by one or more processors, the above-mentioned personalized prediction and control method of heating temperature based on machine learning can be executed.

[0162] The method or system according to the embodiment of the present application can also be Figure 3 The electronic device architecture shown in FIG. Figure 3 As shown, the electronic device may include a bus, one or more CPUs, a read-only memory (ROM), a random access memory (RAM), a communication port connected to a network, an input / output component, a hard disk, etc. The storage device in the electronic device, such as a ROM or a hard disk, can store the personalized prediction and control method of heating temperature based on machine learning provided in the present application. The personalized prediction and control method of heating temperature based on machine learning includes: collecting and drawing a topological structure model of the heating pipe network, dividing the heating pipe network into N nodes and M pipe segments, collecting each node data and the geometric structure data of the pipe segment, and collecting the pipe inner wall temperature, water operating parameters and air temperature data of the heating pipe network during heating; using the node data, the geometric structure data of the pipe segment, and the pipe inner wall temperature, water operating parameters and air temperature data of the heating pipe network during heating to establish the heat transfer equation for each pipe segment, and integrating the heat transfer equation of each pipe segment to obtain the finite element equation of the entire heating pipe network. group; solve the finite element equations using numerical methods to obtain the node temperature of each node, and use the node temperature and the suitable temperature of the human body to calculate the optimal heating temperature of the primary network; provide heating to residents based on the optimal heating temperature of the primary network, collect feedback data from residents, and use the feedback data from residents, real-time air temperature data and the optimal heating temperature of the primary network to train an ideal temperature prediction model; use the ideal temperature prediction model to predict the ideal temperature and heating demand level of the residents, and the residents input the ideal temperature and heating demand level into the thermostat, and adjust the valve opening to adjust the real-time heating temperature to the ideal temperature. Furthermore, the electronic device may also include a user interface. Of course, Figure 3 The architecture shown is only exemplary and can be omitted according to actual needs when implementing different devices. Figure 3 One or more components of an electronic device are shown.

[0163] Example 4

[0164] Figure 4 Schematic diagram of a readable storage medium structure provided by an embodiment of the present application. Figure 4 As shown, it is a readable storage medium according to an embodiment of the present application. Computer-readable instructions are stored on the computer-readable storage medium. When the computer-readable instructions are executed by the processor, the personalized prediction and control method of heating temperature based on machine learning according to the embodiment of the present application described with reference to the above figures can be executed. The storage medium includes, but is not limited to, for example, volatile memory and / or non-volatile memory. Volatile memory may include, for example, random access memory (RAM) and cache memory (cache), etc. Non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc.

[0165] In addition, according to the implementation mode of the present application, the process described in the above reference flow chart can be implemented as a computer software program. For example, the present application provides a non-transitory machine-readable storage medium, the non-transitory machine-readable storage medium stores machine-readable instructions, the machine-readable instructions can be executed by a processor to execute instructions corresponding to the method steps provided in the present application, for example: collecting and drawing a topological structure model of a heating pipe network, dividing the heating pipe network into N nodes and M pipe segments, collecting each node data and the geometric structure data of the pipe segment, collecting the pipe inner wall temperature, water operating parameters and air temperature data of the heating pipe network during heating; using the node data, the geometric structure data of the pipe segment, and the pipe inner wall temperature, water operating parameters and air temperature data of the heating pipe network during heating to establish the heat transfer equation for each pipe segment , integrate the heat transfer equations of each pipe section to obtain the finite element equation group of the entire heating network; use numerical methods to solve the finite element equation group to obtain the node temperature of each node, and use the node temperature and the suitable temperature of the human body to calculate the optimal heating temperature of the primary network; based on the optimal heating temperature of the primary network, provide heating for residents, collect resident feedback data, and use resident feedback data, real-time temperature data and the optimal heating temperature of the primary network to train and obtain an ideal temperature prediction model; use the ideal temperature prediction model to predict the ideal temperature and heating demand level of the residents, and the residents adjust the real-time heating temperature to the ideal temperature by inputting the ideal temperature and heating demand level into the thermostat and adjusting the valve opening and closing. When the computer program is executed by the central processing unit (CPU), the above functions defined in the method of the present application are executed.

[0166] The methods, apparatuses, and devices of the present application may be implemented in many ways. For example, the methods, apparatuses, and devices of the present application may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above order of steps for the method is for illustration only, and the steps of the method of the present application are not limited to the order specifically described above unless otherwise specified. In addition, in some embodiments, the present application may also be implemented as programs recorded in a recording medium, which include machine-readable instructions for implementing the method according to the present application. Therefore, the present application also covers recording media storing programs for executing the method according to the present application.

[0167] In addition, the parts of the above-mentioned technical solutions provided in the embodiments of the present application that are consistent with the implementation principles of the corresponding technical solutions in the prior art are not described in detail to avoid excessive redundancy.

[0168] The specific implementation modes as described above further describe the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation mode of the present invention and is not intended to limit the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. Personalized prediction and control method of heating temperature based on machine learning, It is characterized in that include: Collect and draw the topological structure model of the heating network, divide the heating network into N nodes and M pipe segments, collect the data of each node and the geometric structure data of each pipe segment, and collect the inner wall temperature of the heating network during heating, water operating parameters and air temperature data; The heat transfer equation of each pipe segment is established by using the node data, the geometric structure data of the pipe segment, the inner wall temperature of the pipe of the heating pipe network during heating, the operating parameters of the water and the air temperature data. The heat transfer equation of each pipe segment is integrated to obtain the finite element equation group of the entire heating pipe network. The finite element equations are solved by numerical methods to obtain the node temperature of each node. The optimal heating temperature of the primary network is calculated using the node temperature and the suitable temperature of the human body. Provide heating to residents based on the optimal heating temperature of the primary network, collect feedback data from residents, and use the feedback data from residents, real-time temperature data and the optimal heating temperature of the primary network to train an ideal temperature prediction model; The ideal temperature prediction model is used to predict the ideal temperature and heating demand level of the residents. The residents input the ideal temperature and heating demand level into the thermostat and adjust the valve opening to adjust the real-time heating temperature to the ideal temperature.

2. The method for personalized prediction and control of heating temperature based on machine learning as claimed in claim 1, It is characterized in that The specific method of collecting and drawing the topological structure model of the heating network, dividing the heating network into N nodes and M pipe segments, collecting the data of each node and the geometric structure data of each pipe segment, and collecting the pipe inner wall temperature, water operation parameters and air temperature data of the heating network during heating is as follows: Collect the topological structure of the heating network and draw a topological structure model, divide the heating network into N nodes and M pipe segments, collect the geometric structure data of each pipe segment to obtain the pipe segment radius r, pipe segment length L and pipe segment material of each pipe segment; For each node, its node data is obtained, and the node data includes the node coordinates, the set of all pipe segment numbers J flowing through the node, and the human body suitable temperature T sp , the node represents a node of a household; Collect the inner wall temperature T of each pipe section ω and the water operation parameters of each node, and collect the temperature data T at the corresponding time out , the water operating parameters include water flow rate v and water temperature T.

3. The personalized prediction and control method for heating temperature based on machine learning as claimed in claim 2, It is characterized in that The specific method of establishing the heat transfer equation of each pipe segment by using the node data, the geometric structure data of the pipe segment, the inner wall temperature of the pipe of the heating pipe network during heating, the operating parameters of the water and the air temperature data, integrating the heat transfer equation of each pipe segment, and obtaining the finite element equation group of the entire heating pipe network is as follows: For the jth pipe segment, define its pipe segment radius as r j , the length of the pipeline is L j , the inner wall temperature of the pipe is T ω,j ; A heat transfer equation is established for each pipe segment, and the expression of the heat transfer equation is: q j =α j ×Π×r j ×L j ×(T ω,j -T out ), where q j represents the heat transfer of the jth tube segment, α j is the convective heat transfer coefficient, Π represents the pi; The convection heat transfer coefficient α j It is calculated based on the thermal conductivity of the pipe material and the pipe radius. The calculation formula is: Where N uj is the Nusselt number of the jth pipe section, which can be obtained by querying the flow condition table. is the thermal conductivity of the pipe material; For the i-th node, obtain all the pipe sections that flow through the node and obtain the pipe section number set J i , calculate the total heat transfer q flowing into the i-th node i , calculate the total heat transfer of all nodes to obtain the total heat transfer sequence of nodes {q 1 ,q 2 ,...,q N }, i∈[1,N],q N is the total heat transfer of the Nth node; The total heat transfer amount q of the i-th node i The calculation formula is: Get the pipe segment number set J that flows through the i-th node i The sum of the pipe volumes of all pipe sections in j , calculate the heat capacity coefficient C of the i-th node i ; The heat capacity coefficient C of the i-th node i The calculation formula is: Among them, Δt is the time step; Get the i-th node and the k-th node on the heating network, and get the cross-sectional area A of the heating pipe section connecting the i-th node and the k-th node ik , get the water flow rate v of the i-th node and the k-th node i 、v k , calculate the heat transfer coefficient D between the i-th node and the k-th node ik ; The heat transfer coefficient D between the i-th node and the k-th node ik The calculation formula is: Where ρ is the density of water, C ω is the specific heat capacity of water; Calculate the heat capacity coefficients of all nodes to obtain the heat capacity coefficient sequence {C 1 ,C 2 ,...,C N }, calculate the heat transfer coefficient between all nodes to obtain the heat transfer coefficient matrix C N is the heat capacity coefficient of the Nth node, D 1N is the heat transfer coefficient between the 1st node and the Nth node, D 2N is the heat transfer coefficient between the 2nd node and the Nth node; The heat transfer equations of each pipe section are integrated and combined with the heat capacity coefficient sequence and heat transfer coefficient matrix at each node to obtain the finite element equations of the entire heating network. The finite element equations are: Among them, ∑D 1k represents the heat transfer coefficient between the first node and all adjacent nodes k, ∑D 2k represents the heat transfer coefficient between the second node and all adjacent nodes k, T N is the node temperature of the Nth node.

4. The method for personalized prediction and control of heating temperature based on machine learning as claimed in claim 3, It is characterized in that The specific method of using the numerical method to solve the finite element equations to obtain the node temperature of each node and using the node temperature and the suitable temperature of the human body to calculate the optimal heating temperature of the primary network is: The finite element equations are solved by numerical methods to obtain the node temperature T of each node per unit time. i (t); Combined with the node temperature and the actual temperature difference that needs to be adjusted, the optimal heating temperature T of the primary network is calculated. s 1 ; The optimal heating temperature of the primary network for: Where, ΔT i Indicates the actual temperature difference that needs to be adjusted, N 0 Represents the set of all resident nodes; The actual temperature difference ΔT that needs to be adjusted i =ΔT i =max{T sp -T i (t),T safe }, where T safe For safety margin.

5. The method for personalized prediction and control of heating temperature based on machine learning as claimed in claim 4, It is characterized in that The specific method of providing heating to residents based on the optimal heating temperature of the primary network, collecting resident feedback data, and using the resident feedback data, real-time temperature data and the optimal heating temperature of the primary network to train an ideal temperature prediction model is: The optimal heating temperature of the primary network is calculated based on the real-time temperature data and the node data of the current residents, and this temperature is used as the heating temperature of the primary network to provide heating to the residents; Collecting household feedback data during the heating process, wherein the household feedback data includes: household expected temperature, actual heating temperature, and household preferred time; A data set is created using household feedback data, real-time temperature data, and the optimal heating temperature of the primary network. The heating demand level of the residents at different times is marked according to the residents' preferred time. The category g of the heating demand level is divided into low demand, medium demand, and high demand, g∈[1, G], G is 3, and the heating demand level, real-time temperature data, and the optimal heating temperature of the primary network are used as feature labels to feature the residents' expected temperature. The heating demand level is encoded into a continuous vector, and the residents' expected temperature, real-time temperature data, and the optimal heating temperature of the primary network are standardized to the interval [-1, 1]; Constructing a machine learning model, wherein the machine learning model includes an LSTM learner, a CNN learner, and an MLP learner, taking the heating demand level, the real-time temperature data, and the optimal heating temperature of the primary network as input data, and outputting a feature concatenation of all the input data; The features of all input data are concatenated as new feature inputs, and GBDT is used as a meta-learner to learn the best combination of feature concatenation; Design a multi-task learning framework, where the main task is to predict the expected temperature of the residents, use a fully connected layer to process the feature input, and use the mean square error loss as the loss function of the main task. The auxiliary task is to predict the heating demand level of the residents at the current time, and use the cross entropy loss as the loss function of the auxiliary task. Jointly optimize the loss function L of the main task reg And the loss function L of the auxiliary task cls , and get the total loss function L ZS ; The functional expression of the total loss function is: Among them, Z is the total number of input data, y μ is the actual household expected temperature of the μth input data, y′ μ is the predicted household expected temperature of the μth input data, G is the number of categories of heating demand level, y μg is an indicator. When the heating demand level of the μth input data is category g, y μg is 1, otherwise it is 0. represents the probability that the μth input data belongs to category g, a is the weight coefficient of the loss function of the main task, and b is the weight coefficient of the loss function of the auxiliary task; The prediction goal is to accurately predict the expected temperature of residents at each time and the corresponding heating demand level at that time, and the training goal is to minimize the total loss function. When the total loss function converges, the training is stopped to obtain the ideal temperature prediction model.

6. The method for personalized prediction and control of heating temperature based on machine learning as claimed in claim 5, It is characterized in that The specific method of using the ideal temperature prediction model to predict the ideal temperature and heating demand level of the residents, and the residents input the ideal temperature and heating demand level into the thermostat and adjust the valve opening to adjust the real-time heating temperature to the ideal temperature is: Collect real-time resident feedback data, real-time temperature data and the optimal heating temperature of the primary network, and use the ideal temperature prediction model to predict the ideal temperature T of the current resident. set and heating demand levels; Get the current indoor temperature T in , external temperature T o ' ut and the current valve opening / closing degree θ cur , set the temperature difference response coefficient W; Thermostats and valves are installed at the household end. The ideal temperature and heating demand level are input into the thermostat, and the temperature difference response coefficient W is adjusted based on the heating demand level. Calculate the adjustment degree Δθ of the valve opening and closing degree, the calculation formula of the adjustment degree Δθ of the valve opening and closing degree is: Δθ=W×(T set -T in )+γ×(T in -T o ' ut ), where γ is the external temperature influence coefficient; According to the adjustment degree of the valve opening and closing degree, the updated valve opening and closing degree θ is obtained new ; The calculation formula of the updated valve opening degree is: θ new =θ cur +Δθ.

7. The method for personalized prediction and control of heating temperature based on machine learning as claimed in claim 6, It is characterized in that The specific method for adjusting the temperature difference response coefficient W based on the heating demand level is: When the category g of the heating demand level is low demand, W is equal to 0.2; When the category g of the heating demand level is medium demand, W is equal to 0.5; When the category g of the heating demand level is high demand, W is equal to 0.

8.

8. A personalized prediction and control system for heating temperature based on machine learning, used to implement the personalized prediction and control method for heating temperature based on machine learning as described in any one of claims 1 to 7, It is characterized in that include: The topology structure and data collection module is used to collect and draw the topology structure model of the heating network, divide the heating network into N nodes and M pipe segments, collect the data of each node and the geometric structure data of each pipe segment, and collect the inner wall temperature of the heating network during heating, the operating parameters of the water, and the air temperature data; The heating network equation integration module is used to establish the heat transfer equation for each pipe segment using the node data, the geometric structure data of the pipe segment, the inner wall temperature of the pipe of the heating network during heating, the water operation parameters and the air temperature data, and integrate the heat transfer equation of each pipe segment to obtain the finite element equation group of the entire heating network; The primary network heating temperature calculation module is used to solve the finite element equations using numerical methods to obtain the node temperature of each node, and calculate the optimal heating temperature of the primary network using the node temperature and the suitable temperature of the human body; The temperature and heating demand prediction module is used to provide heating to residents based on the optimal heating temperature of the primary network, collect resident feedback data, and use the resident feedback data, real-time temperature data and the optimal heating temperature of the primary network to train and obtain an ideal temperature prediction model; The personalized heating temperature adjustment module is used to predict the ideal temperature and heating demand level of the residents using the ideal temperature prediction model. The residents input the ideal temperature and heating demand level into the thermostat and adjust the valve opening to adjust the real-time heating temperature to the ideal temperature.

9. An electronic device, It is characterized in that It includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the steps in the method for personalized prediction and control of heating temperature based on machine learning as described in any one of claims 1 to 7 are implemented.

10. A readable storage medium, It is characterized in that The readable storage medium stores a computer program, which is suitable for being loaded by a processor to execute the steps in the personalized prediction and control method of heating temperature based on machine learning as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Heating station load prediction and optimization control method based on distributed machine learning

    CN116306911A

Cited By

  • Pipeline impurity monitoring Internet of Things system and method based on intelligent gas Internet of Things

    CN120212424A

  • Pipeline impurity monitoring IoT system and method based on smart gas IoT

    CN120212424B