This invention discloses a method and
system for real-time monitoring and prediction of carbon intensity, belonging to the field of carbon emission monitoring technology. The method acquires and processes
electricity-related data such as installed capacity and real-time load of each province hourly through an ETL
data channel; it draws a map of China based on ECharts, dividing it into five color-level intervals according to carbon intensity values: 0-300, 301-500, 501-700, 701-900, and 901-1200 gCO2 / kWh; responding to user clicks on provinces, it displays
detailed data for each province through indicator cards, circular progress charts, and one-sided bar charts; it calls a pre-trained STFCI
hybrid model to predict carbon intensity hourly for the next 24 hours. This model integrates a 2-layer 128-
neuron LSTM unit with an XGBoost unit with 100 trees and a learning rate of 0.1, outputting predicted values after feature
concatenation and a fully connected layer; the prediction results are displayed as a bar chart, marking customizable low-carbon threshold lines, highlighting low-carbon periods, and generating
electricity consumption suggestions. The corresponding
system includes a
data interface,
database,
visualization, prediction, and WeChat service modules. The
database adopts an InfluxDB+MySQL combined architecture, and the WeChat
service module supports mobile text and image queries. The STFCI model of this invention has an average absolute error of only 12.3 gCO2 / kWh, significantly improving prediction accuracy, realizing hourly real-time monitoring and multi-dimensional
visualization of carbon intensity, and providing precise decision support for power dispatching and
energy conservation and emission reduction when combined with mobile services.