The invention relates to an
electric power marketing business abnormity real-time detection method and
system based on
stream-oriented computation, and belongs to the technical field of
electric power system optimizing.The method comprises the steps that data snapshots are extracted from an
electric power marketing business
system, difference comparison is conducted on the data snapshots and historical snapshots of an intermediate
library, and standardized increment events are generated and stored; capturing an incremental event in real time through a data change capturing tool and pushing the incremental event to a
message queue; a
streaming computation engine consumes the
event stream, sequentially performs data cleaning, association with a static
dimension table and sliding window statistical feature calculation, and constructs a
feature vector; and performing parallel analysis and weighted fusion on the feature vectors based on a
business rule base and an
online machine learning model to generate a comprehensive risk
score, and outputting an abnormal event when the
score exceeds a threshold value. According to the method, the problems of exception identification lagging and complex work order process in a traditional
batch processing mode are solved, the crossing of the business risk from hour-level detection to minute-level real-
time perception is realized, and the timeliness and accuracy of power marketing risk management and control are improved.