A city heating intelligent management system and method based on big data
Through the urban heating intelligent management system based on big data, it uses MQTT, Kafka, MySQL and other technologies to achieve real-time data collection and analysis, and combines GIS and digital twin technology to solve the problem of insufficient data timeliness and optimization capabilities in traditional heating management solutions. problems, improving the efficiency and safety of the heating system.
Patent Information
- Application Number
- CN202410865613.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-01
- Publication Date
- 2024-10-01
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional urban heating management solutions rely on manual regular inspections and manual data input, which cannot achieve real-time monitoring and data analysis, resulting in low data timeliness and accuracy, inability to effectively optimize the heating system, low resource utilization, high operating costs, and lack of Real-time data analysis and 3D visualization capabilities.
An urban heating intelligent management system based on big data is designed, including user management module, data collection module, data storage module, data analysis module, smart integration module, control and scheduling module and system maintenance module, using MQTT protocol, Apache Kafka, MySQL, Redis, GIS, digital twin technology and machine learning algorithms realize real-time data collection, processing, analysis and virtual simulation, and optimize heating resource allocation and equipment scheduling.
By collecting and processing sensor data in real time, outliers and noise are removed, data quality is improved, real-time monitoring and optimization of the heating system is achieved, system efficiency and reliability are improved, operating costs are reduced, and system stability and safety are ensured.
Smart Images

Figure CN118396779B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent management technology, and in particular to an intelligent management system and method for urban heating based on big data. Background Art
[0002] Big data is a collection of data that is huge in scale and diverse in types. These data collections are often difficult to capture, manage and process with traditional data processing tools. They usually have three characteristics, namely large capacity, high speed and diversity. The value of big data lies in its ability to discover hidden patterns, trends and associations through data mining and analysis, thereby providing support for decision-making.
[0003] Urban heating refers to the systems and facilities that provide heating services within the city. The systems usually include centralized heating, geothermal heating and other forms. Heat energy is transported from centralized heating stations or other energy conversion facilities to various user units through heating pipelines to meet winter heating needs. Big data technology can be applied to urban heating management. By collecting, storing and analyzing large amounts of data generated by urban heating systems, such as user demand data, energy consumption data, equipment operation data, etc., it helps managers better understand the operating status of the heating system, predict future energy demand, optimize energy utilization plans, and improve the efficiency and reliability of the heating system. Therefore, big data technology is expected to become a tool to provide important support for urban heating management.
[0004] Traditional heating management solutions usually rely on regular manual inspections and manual data input, and cannot achieve real-time monitoring. The timeliness and accuracy of the data are low, the data processing process is relatively simple, and it is often impossible to effectively remove noise and outliers in the data, affecting the accuracy of data analysis results. Traditional database design does not consider partitioning and index optimization. When faced with large-scale data, the query speed is slow, the system performance is poor, and there is a lack of real-time data analysis capabilities. It is impossible to identify operational problems and optimize the heating system in a timely manner. It usually only relies on two-dimensional drawings and manual monitoring, and cannot achieve three-dimensional visualization and virtual simulation. It is difficult to achieve global optimization, resource utilization is low, operating costs are high, response speed is slow, and equipment operating status cannot be adjusted in time.
[0005] In summary, it is necessary to propose an intelligent urban heating management system and method based on big data to solve the above problems. Summary of the invention
[0006] The purpose of the present invention is to provide an intelligent urban heating management system and method based on big data to solve the problems raised in the above background technology.
[0007] To achieve the above object, the present invention provides the following technical solutions:
[0008] An intelligent urban heating management system based on big data, including a user management module, a data acquisition module, a data storage module, a data analysis module, a smart integration module, a control and scheduling module, a system maintenance module and a MyBatisPlus support module;
[0009] The user management module is used for user authority management;
[0010] The data acquisition module is used for sensor data acquisition and preprocessing;
[0011] The data storage module is used for database and cache management;
[0012] The data analysis module is used for real-time data analysis and historical data analysis;
[0013] The smart integration module is used for GIS integration and virtual mapping;
[0014] The control and scheduling module is used for remote control and intelligent scheduling;
[0015] The system maintenance module is used for cross-domain request processing and security management, real-time alarm, log management and system update;
[0016] The MyBatis Plus supports modules for data access and automatic code generation.
[0017] Preferably, the user management module further includes a user registration and login unit and a permission management unit;
[0018] The user registration and login unit provides a user registration interface, creates a form through Vue and Element UI, and after the user enters the registration information, the data is stored in the MySQL database through the Spring Boot backend API, and the user credentials are sent to the backend for verification through the front end. After the verification is successful, a JWT token is generated for subsequent request authentication, and a password reset function is provided. After the user submits a reset request, the backend verifies the user information and sends a reset link or verification code;
[0019] The permission management unit uses Spring Security to manage user permissions to define different roles and configure corresponding permissions, and determines the pages and operations that users can access based on user roles.
[0020] Preferably, the data acquisition module further includes a sensor data acquisition unit and a data preprocessing unit;
[0021] The sensor data acquisition unit deploys temperature sensors and flow meter devices in various locations of the heating system to collect data in real time, transmits the data to the backend through the IoT gateway, and uses MQTT or HTTP protocol to send the collected data to the Spring Boot service for processing;
[0022] After receiving the sensor data at the back end, the data preprocessing unit first cleans and filters the data, removes outliers and noise, standardizes the data, converts it into a unified format, and stores it in an intermediate database or cache.
[0023] Preferably, the data storage module further includes a database management unit and a cache management unit;
[0024] The database management unit stores heating system related data based on MySQL database and uses MyBatisPlus to implement the data access layer;
[0025] The cache management unit uses Redis cache technology to store commonly used data and query results, and configures Redis in SpringBoot to manage cache strategies.
[0026] Preferably, the data analysis module further includes a real-time data analysis unit and a historical data analysis unit;
[0027] The real-time data analysis unit uses Spring Boot combined with Apache Kafka or Flink data stream processing framework to analyze real-time data, generate a real-time status report of the heating system, and provide a visual interface to display the current heating status;
[0028] The historical data analysis unit uses the Hadoop big data processing framework to perform batch analysis on the historical data stored in MySQL, identify heating patterns and trends, and provide data support for optimizing heating scheduling.
[0029] Preferably, the smart integration module further includes a GIS integration unit and a virtual mapping unit;
[0030] The GIS integration unit uses GIS technology to integrate the geographic information data of the heating network into the system, and dynamically displays and interacts with the heating network through the front-end framework Vue and Leaflet or OpenLayers GIS library;
[0031] The virtual mapping unit uses digital twin technology to establish a virtual model of the heating system, simulate the actual operating environment, monitor and optimize the system in the virtual environment, and display the operating status of the virtual model through a front-end visualization interface.
[0032] Preferably, the control and scheduling module further includes a remote control unit and an intelligent scheduling unit;
[0033] The remote control unit sends control instructions to the backend through the Vue interface, and the backend remotely controls the operating status of the heating equipment through the API interface to achieve real-time monitoring and control of the heating equipment;
[0034] The intelligent scheduling unit uses a machine learning algorithm to optimize the heating scheduling strategy based on real-time data and historical data, and implements the scheduling algorithm at the back end to adjust the allocation of heating resources.
[0035] Preferably, the system maintenance module further includes a cross-domain request processing unit, a cross-domain security management unit, a real-time alarm unit, a log management unit and a system update unit;
[0036] The cross-domain request processing unit configures cross-domain request processing in Spring Boot to allow cross-domain communication between the front-end and the back-end;
[0037] The cross-domain security management unit manages the security policy of cross-domain requests and sets the CORS policy by configuring HTTP header information;
[0038] The real-time alarm unit monitors the operating status of the heating system in real time, triggers an alarm when an abnormal situation is detected, and notifies relevant personnel to handle the situation through SMS, email or system notification;
[0039] The security management unit implements system security policies to protect the system from malicious attacks and data leaks, and regularly conducts security audits and risk assessments;
[0040] The log management unit records the system operation log, which is used to record each operation and event, to facilitate troubleshooting and system maintenance, and to analyze the log data using log analysis tools to find potential problems;
[0041] The system update unit supports system version updates and patch management, and is used to regularly update system software, fix vulnerabilities, improve system performance, and achieve continuous integration and updates of the system through the Jenkins automated deployment tool.
[0042] Preferably, the MyBatis Plus support module also includes a data access unit and an automatic code generation unit;
[0043] The data access unit uses MyBatis Plus to simplify database access operations;
[0044] The automatic code generation unit utilizes the code generator of MyBatis Plus to automatically generate database entity classes and Mapper interfaces.
[0045] Based on the above system, the present invention proposes a method for intelligent management of urban heating based on big data, comprising the following steps:
[0046] S1. Use the MQTT protocol to transmit sensor data, develop device drivers, write device interfaces in Java, realize real-time data collection of temperature, flow, and pressure sensors, use Spring Boot to develop data transmission modules, send the collected data to the data processing center through MQTT, deploy the MQTT server in the data processing center, use the Paho MQTT library to receive and parse data, use Apache Kafka as the data storage queue, and store the received sensor data in the Kafka topic;
[0047] S2. Data cleaning and filtering:
[0048] Outlier Detection:
[0049] Use the Z-score method to detect and remove outliers in the data, as shown in formula (1):
[0050] Z = \frac{(X - \mu)}{\sigma} (1);
[0051] Where X is the data point, \mu is the data mean, and \sigma is the data standard deviation;
[0052] Use the moving average algorithm to filter noise, see formula (2):
[0053] MA_n = \frac{(X_1 + X_2 + ... + X_n)}{n} (2);
[0054] Where, MA_n is the moving average of the nth data point;
[0055] The data is formatted using Python's Pandas library, and the Min-Max standardization method is used to standardize the data to the [0,1] interval, as shown in formula (3):
[0056] X' = \frac{(X - X_{min})}{(X_{max} - X_{min})} (3);
[0057] Where X is the original data, X_{min} and X_{max} are the minimum and maximum values of the data respectively;
[0058] Store the cleaned and filtered data in Redis cache for subsequent processing;
[0059] S3. Use MySQL Workbench to design the database table structure, partition the database based on different areas and equipment of the heating system to improve query efficiency, create indexes on key fields, use MySQL B-tree index to optimize data query, use MyBatis Plus to insert data, and regularly use MySQL backup tools to back up data;
[0060] S4. Use Apache Flink to process real-time data streams, monitor the operating status of the heating system in real time, and generate real-time status reports. Use Apache Spark to perform batch analysis on historical data stored in MySQL to identify heating patterns and trends. Use the ECharts library to visualize data on the front end and generate operating status charts of the heating system. Use JasperReports to generate data analysis reports, provide detailed analysis results and suggestions, and provide decision support for the optimization and scheduling of the heating system based on the data analysis results, and generate optimization plans.
[0061] S5. Use ArcGIS to import the geographic information data of the heating network into the system, generate vector data and attribute tables, use the Leaflet library to implement the display and interaction functions of the GIS map in the Vue front end, use Unity 3D to build a digital twin model of the heating system, realize three-dimensional visualization and simulation, develop a virtual environment of the heating system in Unity, simulate the actual operating status, use WebSocket technology to synchronize the virtual model with the actual system data, and reflect the system status in real time;
[0062] S6. Based on historical data and real-time data, use genetic algorithms to optimize the allocation and use of heating resources, and use genetic algorithms to optimize parameters, see formula (4):
[0063] F(x) = \text{max}(E - C) (4);
[0064] In the formula, F(x) is the optimization objective function, E is the heating efficiency, and C is the cost;
[0065] Generate intelligent scheduling strategies based on the optimization results, issue scheduling instructions through Spring Boot services, simulate scheduling strategies in the digital twin environment to verify their effectiveness and feasibility, and apply the verified scheduling strategies to the actual heating system to achieve intelligent scheduling;
[0066] S7. Develop a remote control command interface through Spring Boot to realize remote control of heating equipment. The front end sends control commands through the Vue interface. After receiving the commands, the back end controls the heating equipment through the API interface. Use WebSocket technology to monitor the operating status of the heating equipment in real time. The equipment feedback status is returned through the API interface. The front-end interface updates the operating status in real time. During the execution of the control command, abnormal situations are detected and handled in a timely manner.
[0067] S8. Use Spring Boot to develop a real-time monitoring system, regularly collect and analyze the operating data of the heating system, use decision trees to detect abnormal situations, set alarm thresholds, integrate SMS and email services through Spring Boot, and promptly notify relevant personnel when an alarm is triggered. Record all alarm events and processing processes and store them in a MySQL database. Develop a front-end interface to display alarm information, provide quick response and processing methods, and ensure the safe operation of the system;
[0068] S9. Develop system security strategies, including user authority management, data encryption and access control, use AES algorithm to encrypt and store sensitive data to ensure data security, use Spring Security to implement access control, define different roles and permissions, conduct regular security audits, use log analysis tools to detect and prevent potential security threats, conduct regular risk assessments, identify and evaluate potential security risks in the system, and take measures to prevent them;
[0069] S10. Use Logback to record system operation logs in Spring Boot, including user operations, system events, and error information. Use Elasticsearch and Kibana to analyze logs and detect abnormalities in system operation. Based on the log analysis results, find and solve potential problems in system operation. Use Jenkins for automated deployment and system updates, develop system maintenance plans, and regularly perform system inspections and optimizations.
[0070] S11. Use questionnaires and feedback functions within the system to collect feedback from users and operation and maintenance personnel. Based on user feedback and system operation data, evaluate the system's operating results and user satisfaction. Based on the feedback, use agile development methods to continuously optimize system functions and performance, provide user training and operation guides to help users better use the system, and establish a continuous improvement mechanism.
[0071] Compared with the prior art, the beneficial effects of the present invention are as follows: through the MQTT protocol and Kafka queue, the system can collect and process sensor data in real time to ensure the timeliness and reliability of the data, use the Z-score and moving average algorithms to effectively remove outliers and noise, ensure the quality of the data, use the MySQL database for data partition storage and index optimization, improve the efficiency of data query and access, use Apache Flink and Spark to perform real-time and historical data analysis, identify heating modes and trends, use GIS and digital twin technology to achieve visualization and virtual simulation of the heating system, use an intelligent scheduling strategy based on genetic algorithms to optimize the allocation and use of heating resources, use an anomaly detection algorithm based on machine learning, monitor in real time and trigger an alarm mechanism, adjust the operating status of the heating equipment in real time through a remote control system to ensure system stability and efficiency, and implement a comprehensive security management strategy, including data encryption and access control, conduct regular security audits and risk assessments, protect system data and equipment from malicious attacks and data leakage, and ensure the security and reliability of system operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0072] Figure 1 The topological diagram of the urban heating intelligent management system based on big data of the present invention is shown;
[0073] Figure 2 The flowchart of the intelligent management method of urban heating based on big data of the present invention is shown. DETAILED DESCRIPTION
[0074] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. Example
[0075] See also Figure 1 , an intelligent urban heating management system based on big data, which uses Vue and Element UI as the front-end framework, Spring Boot and MyBatis Plus as the back-end framework, and MySQL as the database;
[0076] The system consists of user management module, data acquisition module, data storage module, data analysis module, intelligent integration module, control and scheduling module, system maintenance module and MyBatis Plus support module;
[0077] Among them, user authority management is carried out through the user management module; sensor data collection and preprocessing are carried out through the data acquisition module; database and cache management are carried out through the data storage module; real-time data analysis and historical data analysis are carried out through the data analysis module; GIS integration and virtual mapping are carried out through the intelligent integration module; remote control and intelligent scheduling are carried out through the control and scheduling module; cross-domain request processing and security management, real-time alarm, log management and system update are carried out through the system maintenance module; data access and automatic code generation are carried out through the MyBatis Plus support module.
[0078] Among them, the user management module of this system also includes a user registration and login unit and a permission management unit;
[0079] The user registration and login unit provides a user registration interface, creates a form through Vue and Element UI, and after the user enters the registration information, the data is stored in the MySQL database through the Spring Boot backend API to implement the user login function. The user credentials are sent to the backend for verification through the frontend. After successful verification, a JWT token is generated for subsequent request authentication. A password reset function is provided. The user submits a reset request, and the backend verifies the user information and sends a reset link or verification code.
[0080] The permission management unit uses Spring Security to manage user permissions, define different roles (such as administrators, ordinary users) and configure corresponding permissions to implement permission control. It determines the pages and operations that users can access based on user roles to ensure system security.
[0081] Among them, the data acquisition module of this system also includes a sensor data acquisition unit and a data preprocessing unit;
[0082] The sensor data acquisition unit deploys temperature sensors and flow meter devices in various locations of the heating system to collect data in real time, transmits the data to the backend through the IoT gateway, and uses MQTT or HTTP protocol to send the collected data to the Spring Boot service for processing;
[0083] After receiving the sensor data at the back end, the data preprocessing unit first cleans and filters the data to remove outliers and noise, standardizes the data, converts it into a unified format, and stores it in an intermediate database or cache for further analysis and storage.
[0084] Among them, the data storage module of this system also includes a database management unit and a cache management unit;
[0085] The database management unit is based on the MySQL database, designs the data table structure, stores the heating system related data, uses MyBatis Plus to implement the data access layer, simplifies database operations, and improves development efficiency;
[0086] The cache management unit uses Redis cache technology to store commonly used data and query results, speed up data access, configure Redis in Spring Boot, manage cache strategies, and reduce database load;
[0087] Among them, the data analysis module of this system also includes a real-time data analysis unit and a historical data analysis unit.
[0088] The real-time data analysis unit uses Spring Boot combined with Apache Kafka or Flink data stream processing framework to analyze real-time data, generate a real-time status report of the heating system, and provide a visual interface to display the current heating status;
[0089] The historical data analysis unit uses the Hadoop big data processing framework to perform batch analysis on historical data stored in MySQL, identify heating patterns and trends, and provide data support for optimizing heating scheduling.
[0090] Among them, the intelligent integration module of this system also includes GIS integration unit and virtual mapping unit;
[0091] The GIS integration unit uses GIS technology to integrate the geographic information data of the heating network into the system to achieve visual display on the map. Through the front-end framework Vue and GIS libraries such as Leaflet or OpenLayers, the dynamic display and interactive operation of the heating network can be realized;
[0092] The virtual mapping unit uses digital twin technology to build a virtual model of the heating system, simulate the actual operating environment, monitor and optimize the system in a virtual environment, and display the operating status of the virtual model through a front-end visualization interface.
[0093] Among them, the control and dispatch module of this system also includes a remote control unit and an intelligent dispatch unit;
[0094] The remote control unit sends control instructions to the backend through the Vue interface. The backend remotely controls the operating status of the heating equipment through the API interface, realizes real-time monitoring and control of the heating equipment, and ensures the flexibility and response speed of the system operation.
[0095] The intelligent scheduling unit uses machine learning algorithms to optimize the heating scheduling strategy based on real-time data and historical data. The back-end implements the scheduling algorithm to adjust the allocation of heating resources and improve heating efficiency and energy saving effects.
[0096] Among them, the system maintenance module of this system also includes a cross-domain request processing unit, a cross-domain security management unit, a real-time alarm unit, a log management unit and a system update unit;
[0097] The cross-domain request processing unit configures cross-domain request processing in Spring Boot, allowing cross-domain communication between the front-end and the back-end, ensuring that data can be transmitted normally, and solving the cross-domain access problem of the front-end;
[0098] The cross-domain security management unit manages the security policy of cross-domain requests to prevent cross-domain attacks. It protects system security by configuring HTTP header information and setting CORS policies.
[0099] The real-time alarm unit monitors the operating status of the heating system in real time, triggers an alarm when an abnormal situation is detected, and promptly notifies relevant personnel to handle the situation through SMS, email or system notification;
[0100] The security management unit implements system security policies, protects the system from malicious attacks and data leaks, and conducts regular security audits and risk assessments to ensure the security of system operations;
[0101] The log management unit records the system operation log, records each operation and event in detail, facilitates troubleshooting and system maintenance, and uses log analysis tools to analyze log data and identify potential problems;
[0102] The system update unit supports system version updates and patch management, regularly updates system software, fixes vulnerabilities, improves system performance, and achieves continuous integration and updates of the system through the Jenkins automated deployment tool.
[0103] Among them, the MyBatis Plus support module of this system also includes data access unit and automatic code generation unit;
[0104] The data access unit uses MyBatis Plus to simplify database access operations, provides an efficient data access interface, and uses the paging plug-in and condition constructor of MyBatis Plus to simplify complex query operations;
[0105] The automatic code generation unit uses the code generator of MyBatis Plus to automatically generate database entity classes and Mapper interfaces, reducing repetitive coding work, improving development efficiency, and ensuring code consistency and standardization. Example
[0106] See also Figure 2 Based on the actual application of the above system in the intelligent management of urban heating, the intelligent management method of urban heating based on big data of the present invention specifically includes the following steps:
[0107] Step S1, real-time data collection:
[0108] Use the MQTT protocol to transmit sensor data to ensure the real-time and reliability of data, develop device drivers, write device interfaces in Java, realize real-time data collection of temperature, flow, and pressure sensors, use Spring Boot to develop data transmission modules, send the collected data to the data processing center through MQTT, deploy the MQTT server in the data processing center, use the Paho MQTT library to receive and parse data, use Apache Kafka as the data storage queue, store the received sensor data in the Kafka topic, and ensure data reliability and scalability;
[0109] Step S2, data cleaning and filtering:
[0110] Outlier Detection:
[0111] Use the Z-score method to detect and remove outliers in the data. The specific formula is:
[0112] ( Z = \frac{(X - \mu)}{\sigma} ), where ( X ) is the data point, ( \mu ) is the data mean, and ( \sigma ) is the data standard deviation;
[0113] Noise filtering, using the moving average algorithm for noise filtering, the calculation formula is:
[0114] ( MA_n = \frac{(X_1 + X_2 + ... + X_n)}{n} ), where ( MA_n ) is the moving average of the nth data point;
[0115] Use Python's Pandas library to format the data to ensure data consistency. Use the Min-Max standardization method to standardize the data to the [0,1] interval. The formula is:
[0116] ( X' = \frac{(X - X_{min})}{(X_{max} - X_{min})} ), where ( X ) is the original data, ( X_{min} ) and ( X_{max} ) are the minimum and maximum values of the data respectively;
[0117] Store the cleaned and filtered data in Redis cache for subsequent processing;
[0118] Step S3, data storage:
[0119] Use MySQL Workbench to design the database table structure to ensure data integrity and standardization. Based on different areas and equipment of the heating system, partition the database for storage to improve query efficiency. Create indexes on key fields and use MySQL's B-tree index to optimize data query. Use MyBatis Plus to insert data to simplify database access code and improve development efficiency. Use MySQL's backup tool to back up data regularly to ensure data security and integrity.
[0120] Step S4, data analysis:
[0121] Use Apache Flink to process real-time data streams, monitor the operating status of the heating system in real time, and generate real-time status reports. Use Apache Spark to perform batch analysis on historical data stored in MySQL to identify heating patterns and trends. Use the ECharts library to visualize data on the front end and generate operating status charts for the heating system. Use JasperReports to generate data analysis reports, provide detailed analysis results and suggestions, and provide decision support for the optimization and scheduling of the heating system based on the data analysis results, and generate optimization plans.
[0122] Step S5, GIS integration and virtual mapping:
[0123] Use ArcGIS to import geographic information data of the heating network into the system, generate vector data and attribute tables, use Leaflet library to implement the display and interaction functions of GIS maps in Vue front-end, use Unity 3D to build a digital twin model of the heating system, realize three-dimensional visualization and simulation, develop a virtual environment of the heating system in Unity, simulate the actual operating status, use WebSocket technology to synchronize the virtual model with the actual system data, and reflect the system status in real time;
[0124] Step S6, intelligent scheduling:
[0125] Based on historical and real-time data, genetic algorithms are used to optimize the allocation and use of heating resources;
[0126] Parameter optimization, using genetic algorithm for parameter optimization, the formula is:
[0127] ( F(x) = \text{max}(E - C) ), where ( F(x) ) is the optimization objective function, ( E ) is the heating efficiency, and ( C ) is the cost;
[0128] Generate intelligent scheduling strategies based on the optimization results, issue scheduling instructions through Spring Boot services, simulate scheduling strategies in the digital twin environment to verify their effectiveness and feasibility, and apply the verified scheduling strategies to the actual heating system to achieve intelligent scheduling;
[0129] Step S7, remote control:
[0130] The remote control command interface is developed through Spring Boot to realize remote control of heating equipment. The front end sends control commands through the Vue interface. After receiving the commands, the back end controls the heating equipment through the API interface. The WebSocket technology is used to monitor the operating status of the heating equipment in real time to ensure the timeliness of the control commands. The equipment feedback status is returned through the API interface, and the front-end interface updates the operating status in real time. During the execution of the control command, abnormal situations are detected and handled in time to ensure system stability.
[0131] Step S8, real-time monitoring and alarm:
[0132] Use Spring Boot to develop a real-time monitoring system, regularly collect and analyze the operating data of the heating system, use decision trees to detect abnormal situations, set alarm thresholds, integrate SMS and email services through Spring Boot, and promptly notify relevant personnel when an alarm is triggered. Record all alarm events and processing processes and store them in the MySQL database for subsequent analysis and processing. Develop a front-end interface to display alarm information, provide quick response and processing methods, and ensure the safe operation of the system;
[0133] Step S9, security management:
[0134] Formulate system security strategies, including user rights management, data encryption and access control, use AES algorithm to encrypt and store sensitive data to ensure data security, use Spring Security to implement access control, define different roles and permissions to ensure system security, conduct regular security audits, use log analysis tools to detect and prevent potential security threats, conduct regular risk assessments, identify and evaluate potential security risks in the system, and take measures to prevent them;
[0135] Step S10, log management and system update:
[0136] Use Logback to record system operation logs in Spring Boot, including user operations, system events, and error information. Use Elasticsearch and Kibana to analyze logs and detect abnormalities in system operation. Based on the log analysis results, find and solve potential problems in system operation to ensure stable system operation. Use Jenkins for automated deployment and system updates, regularly release version updates and patch fixes, develop system maintenance plans, regularly check and optimize the system, and maintain optimal system performance.
[0137] Step S11, user feedback and system optimization:
[0138] Use questionnaires and system feedback functions to collect feedback from users and operation and maintenance personnel. Based on user feedback and system operation data, evaluate the system's operating results and user satisfaction. Based on the feedback, use agile development methods to continuously optimize system functions and performance, provide user training and operation guides to help users better use the system and improve user experience. Establish a continuous improvement mechanism, regularly review and update system functions, and ensure continuous improvement and improvement of the system.
[0139] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A method for intelligent management of urban heating based on big data, which is implemented by an intelligent management system for urban heating based on big data, and is characterized in that: The urban heating intelligent management system based on big data includes a user management module, a data acquisition module, a data storage module, a data analysis module, a smart integration module, a control and scheduling module, a system maintenance module and a MyBatis Plus support module; The user management module is used for user authority management; The data acquisition module is used for sensor data acquisition and preprocessing; The data storage module is used for database and cache management; The data analysis module is used for real-time data analysis and historical data analysis; The smart integration module is used for GIS integration and virtual mapping; The control and scheduling module is used for remote control and intelligent scheduling; The system maintenance module is used for cross-domain request processing and security management, real-time alarm, log management and system update; The MyBatis Plus support module is used for data access and automatic code generation; The user management module also includes a user registration and login unit and a rights management unit; The user registration and login unit provides a user registration interface, creates a form through Vue and Element UI, and after the user enters the registration information, the data is stored in the MySQL database through the Spring Boot backend API, and the user credentials are sent to the backend for verification through the front end. After the verification is successful, a JWT token is generated for subsequent request authentication, and a password reset function is provided. After the user submits a reset request, the backend verifies the user information and sends a reset link or verification code; The permission management unit uses Spring Security to manage user permissions to define different roles and configure corresponding permissions, and determines the pages and operations that users can access based on their roles; The data acquisition module also includes a sensor data acquisition unit and a data preprocessing unit; The sensor data acquisition unit deploys temperature sensors and flow meter devices in various locations of the heating system to collect data in real time, transmits the data to the backend through the IoT gateway, and uses MQTT or HTTP protocol to send the collected data to the Spring Boot service for processing; After receiving the sensor data at the back end, the data preprocessing unit first cleans and filters the data, removes outliers and noise, standardizes the data, converts it into a unified format, and stores it in an intermediate database or cache; The data storage module also includes a database management unit and a cache management unit; The database management unit stores heating system related data based on MySQL database and uses MyBatis Plus to implement the data access layer; The cache management unit uses Redis cache technology to store common data and query results, and configures Redis in Spring Boot to manage cache strategies; The data analysis module also includes a real-time data analysis unit and a historical data analysis unit; The real-time data analysis unit uses Spring Boot combined with Apache Kafka or Flink data stream processing framework to analyze real-time data, generate a real-time status report of the heating system, and provide a visual interface to display the current heating status; The historical data analysis unit uses the Hadoop big data processing framework to perform batch analysis on the historical data stored in MySQL, identify heating patterns and trends, and provide data support for optimizing heating scheduling; The smart integration module also includes a GIS integration unit and a virtual mapping unit; The GIS integration unit uses GIS technology to integrate the geographic information data of the heating network into the system, and dynamically displays and interacts with the heating network through the front-end framework Vue and Leaflet or OpenLayers GIS library; The virtual mapping unit uses digital twin technology to establish a virtual model of the heating system, simulate the actual operating environment, monitor and optimize the system in the virtual environment, and display the operating status of the virtual model through a front-end visual interface; The control and scheduling module also includes a remote control unit and an intelligent scheduling unit; The remote control unit sends control instructions to the backend through the Vue interface, and the backend remotely controls the operating status of the heating equipment through the API interface to achieve real-time monitoring and control of the heating equipment; The intelligent scheduling unit uses machine learning algorithms to optimize the heating scheduling strategy based on real-time data and historical data, and the back-end implements the scheduling algorithm to adjust the allocation of heating resources; The system maintenance module also includes a cross-domain request processing unit, a cross-domain security management unit, a real-time alarm unit, a log management unit and a system update unit; The cross-domain request processing unit configures cross-domain request processing in Spring Boot to allow cross-domain communication between the front-end and the back-end; The cross-domain security management unit manages the security policy of cross-domain requests and sets the CORS policy by configuring HTTP header information; The real-time alarm unit monitors the operating status of the heating system in real time, triggers an alarm when an abnormal situation is detected, and notifies relevant personnel to handle the situation through SMS, email or system notification; The security management unit implements system security policies to protect the system from malicious attacks and data leaks, and regularly conducts security audits and risk assessments; The log management unit records the system operation log, which is used to record each operation and event, to facilitate troubleshooting and system maintenance, and to analyze the log data using log analysis tools to find potential problems; The system update unit supports system version updates and patch management, and is used to regularly update system software, fix vulnerabilities, and achieve continuous integration and updates of the system through the Jenkins automated deployment tool; The MyBatis Plus support module also includes a data access unit and an automatic code generation unit; The data access unit uses MyBatis Plus to simplify database access operations; The automatic code generation unit utilizes the code generator of MyBatis Plus to automatically generate database entity classes and Mapper interfaces; The urban heating intelligent management method based on big data comprises the following steps: S1. Use the MQTT protocol to transmit sensor data, develop device drivers, write device interfaces in Java, realize real-time data collection of temperature, flow, and pressure sensors, use Spring Boot to develop data transmission modules, send the collected data to the data processing center through MQTT, deploy the MQTT server in the data processing center, use the Paho MQTT library to receive and parse data, use Apache Kafka as the data storage queue, and store the received sensor data in the Kafka topic; S2. Data cleaning and filtering: Outlier Detection: Use the Z-score method to detect and remove outliers in the data, as shown in formula (1): Z = \frac{(X - \mu)}{\sigma} (1); Where X is the data point, \mu is the data mean, and \sigma is the data standard deviation; Use the moving average algorithm to filter noise, see formula (2): MA_n = \frac{(X_1 + X_2 + ... + X_n)}{n} (2); Where, MA_n is the moving average of the nth data point; The data is formatted using Python's Pandas library, and the Min-Max standardization method is used to standardize the data to the [0,1] interval, as shown in formula (3): X' = \frac{(X - X_{min})}{(X_{max} - X_{min})} (3); Where X is the data point, X_{min} and X_{max} are the minimum and maximum values of the data respectively; Store the cleaned and filtered data in Redis cache; S3. Use MySQL Workbench to design the database table structure, partition the database based on different areas and equipment of the heating system to improve query efficiency, create indexes on key fields, use MySQL B-tree index to optimize data query, use MyBatis Plus to insert data, and regularly use MySQL backup tools to back up data; S4. Use Apache Flink to process real-time data streams, monitor the operating status of the heating system in real time, and generate real-time status reports. Use Apache Spark to perform batch analysis on historical data stored in MySQL to identify heating patterns and trends. Use the ECharts library to visualize data on the front end and generate operating status charts of the heating system. Use JasperReports to generate data analysis reports, provide detailed analysis results and suggestions, and provide decision support for the optimization and scheduling of the heating system based on the data analysis results, and generate optimization plans. S5. Use ArcGIS to import the geographic information data of the heating network into the system, generate vector data and attribute tables, use the Leaflet library to implement the display and interaction functions of the GIS map in the Vue front end, use Unity to build a digital twin model of the heating system, realize three-dimensional visualization and simulation, develop a virtual environment of the heating system in Unity, simulate the actual operating status, use WebSocket technology to synchronize the virtual model with the actual system data, and reflect the system status in real time; S6. Based on historical data and real-time data, use genetic algorithms to optimize the allocation and use of heating resources, and use genetic algorithms to optimize parameters, see formula (4): F(x) = \text{max}(E - C) (4); In the formula, F(x) is the optimization objective function, E is the heating efficiency, and C is the cost; Generate intelligent scheduling strategies based on the optimization results, issue scheduling instructions through Spring Boot services, simulate scheduling strategies in the digital twin environment to verify their effectiveness and feasibility, and apply the verified scheduling strategies to the actual heating system to achieve intelligent scheduling; S7. Develop a remote control command interface through Spring Boot to realize remote control of heating equipment. The front end sends control commands through the Vue interface. After receiving the commands, the back end controls the heating equipment through the API interface. Use WebSocket technology to monitor the operating status of the heating equipment in real time. The equipment feedback status is returned through the API interface. The front-end interface updates the operating status in real time. During the execution of the control command, abnormal situations are detected and handled in a timely manner. S8. Use Spring Boot to develop a real-time monitoring system, regularly collect and analyze the operating data of the heating system, use decision trees to detect abnormal situations, set alarm thresholds, integrate SMS and email services through Spring Boot, and promptly notify relevant personnel when an alarm is triggered. Record all alarm events and processing processes and store them in a MySQL database. Develop a front-end interface to display alarm information and provide quick response and processing methods; S9. Develop system security strategies, including user authority management, data encryption and access control, use AES algorithm to encrypt and store sensitive data to ensure data security, use Spring Security to implement access control, define different roles and permissions, conduct regular security audits, use log analysis tools to detect and prevent potential security threats, conduct regular risk assessments, identify and evaluate potential security risks in the system, and take measures to prevent them; S10. Use Logback to record system operation logs in Spring Boot, including user operations, system events, and error information. Use Elasticsearch and Kibana to analyze logs and detect abnormalities in system operation. Based on the log analysis results, find and solve potential problems in system operation. Use Jenkins for automated deployment and system updates, develop system maintenance plans, and regularly perform system inspections and optimizations. S11. Use questionnaires and system feedback functions to collect feedback from users and operation and maintenance personnel. Based on user feedback and system operation data, evaluate the system's operating results and user satisfaction. Based on the feedback, use agile development methods to continuously optimize system functions and performance, and provide user training and operation guides.
