MMD algorithm detects PV curtailment anomalies with 97% accuracy
Mathematical morphology denoising method identifies power curtailment anomalies in PV systems without data distribution assumptions.

Researchers have developed a Mathematical Morphology Denoising (MMD) algorithm that detects power curtailment anomalies in photovoltaic systems with a 97.00% recognition rate, according to a study published in Nature. The method outperforms conventional approaches such as the 3-sigma rule and theoretical-output models.
Power curtailment anomalies are unique to the PV sector, caused by mandatory wind and PV curtailment operations. Unlike other system faults, these anomalies produce noise-like signals with no discernible patterns, making them difficult to detect using standard statistical methods that rely on data distribution assumptions.
The MMD algorithm, which draws on mathematical morphology concepts introduced by Matheron and Serra in the 1970s, treats curtailment data as noise in images. It uses dilation and erosion operations — dilation expands an image while erosion shrinks it — to process binary images constructed from irradiance and power data.
Algorithm validation on 30 MW Gansu station
The research team validated the MMD algorithm using 411 days of operational data from a 30 MW photovoltaic power station in Gansu Province, China, collected from September 2017 to December 2018 at 15-minute sampling intervals. A reference dataset of 146 days containing 14,016 data points was used for development, with 400 artificial curtailment points injected over 50 days.
The binary image was constructed with dimensions q1=100 and q2=100, using direct radiation as the irradiance variable. A circular structuring element with radius r=1 was applied. With an optimal redundancy parameter of g=2, the MMD algorithm achieved a 97.00% recognition rate on development data while maintaining a false recognition rate of just 0.10%.
Comparison with conventional methods
The study compared MMD against two established anomaly detection approaches. The 3-sigma rule, which assumes a normal distribution of data, achieved optimal performance when applied across 13 irradiance intervals. The theoretical-output method, which uses an empirical model with a threshold parameter α, reached optimal performance at α=0.3. At α=0.1, this method achieved a 99.75% recognition rate but generated 1,144 false identifications — dramatically more than MMD's false recognition rate.
The researchers also introduced Isolation Forest (iForest), a nonparametric unsupervised anomaly-detection method, as an additional baseline. Day-level data separation was implemented to prevent information leakage between training and testing sets.
Forecasting improvements after MMD filtering
A key finding of the study is that MMD filtering improves day-ahead PV forecasting accuracy. The researchers applied a General Regression Neural Network (GRNN) for forecasting, using nine meteorological variables collected at the station with correlation coefficients calculated for variable selection.
After MMD filtering, the Normalized Root Mean Square Error (NRMSE) improved from 7.37% to 6.00%, and the Normalized Mean Absolute Error (NMAE) improved from 4.09% to 3.37% across 10 forecasting days. These results demonstrate that removing curtailment anomalies from training data enhances forecast model performance.
How the MMD algorithm works
The MMD algorithm operates in three stages: binary image construction, denoising, and identification. Min-max normalization converts the irradiance-power data into binary images where pixels are either black (0) or white (1). The algorithm applies opening operations — erosion followed by dilation — and closing operations — dilation followed by erosion — to remove noise-like curtailment signals.
Power curtailment anomalies accumulate along the irradiance axis, and the algorithm defines a curtailment event as two consecutive anomalous data points. The method requires no predefined probability distribution, unlike the 3-sigma rule which assumes normality, making it more flexible for real-world PV applications.
The empirical theoretical output model used for generating standard data incorporates standard irradiance E_S=1000 W/m², standard module temperature T_S=25 °C, a temperature coefficient ψW=0.43%/°C, azimuth and tilt correction ηp=1, inverter efficiency ηn=98%, line-loss correction η₁=99%, and installed capacity P_AZ=30 MW.
Limitations and future work
The study was limited to evaluating PV power-curtailment anomalies only. The researchers note that future work should address multiple PV anomaly categories and validate the algorithm across different stations and geographic locations. Sequential allocation — ranking curtailment by factor — and proportional allocation — applying curtailment by proportional factors — were used as allocation strategies for the artificial curtailment data.
For solar industry professionals, the MMD approach offers a practical tool for cleaning training data used in PV forecasting models. Power curtailment remains a significant operational challenge in markets with high renewable penetration, and accurate anomaly detection can improve both system monitoring and energy yield predictions.