Next Article in Journal
Weight Reduction and Structural Optimization of a Face Milling Cutter Using DfAM
Previous Article in Journal
A Masterpiece from the Renaissance: The Offiziolo Durazzo
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Predictive Maintenance of DC Fast-Charging Stations Using Unsupervised Anomaly Detection

by
Antonio García-Garví
*,
Belén Arroyo-Torres
and
Caterina Tormo-Domènech
*
ITE, Instituto Tecnológico de la Energía, 46980 Paterna, Spain
*
Authors to whom correspondence should be addressed.
Appl. Sci. 2026, 16(14), 7052; https://doi.org/10.3390/app16147052
Submission received: 5 June 2026 / Revised: 10 July 2026 / Accepted: 11 July 2026 / Published: 14 July 2026

Abstract

The reliability of electric vehicle fast-charging infrastructure is becoming increasingly critical as deployment accelerates and the number of unavailable charging points grows. This work presents an unsupervised anomaly detection framework aimed at supporting predictive maintenance in DC fast-charging stations. The approach uses real minute-resolution operational data from a real charging station, including active, reactive and apparent power, power factor, phase power measurements and charger-side power measurements. Three complementary anomaly detection models were designed to capture different abnormal operating conditions: deviations in consumption patterns, efficiency losses between charger and grid analyser measurements, and phase imbalance in three-phase operation. Local Outlier Factor and Isolation Forest algorithms were integrated into an automated monitoring pipeline. Since labelled fault data were not available, validation was based on controlled injection of synthetic anomalies into real test signals, including physically coherent power disturbances, sensor or communication inconsistencies, progressive efficiency degradation and phase imbalance events. The results show that the framework is effective for detecting anomaly families that produce clear or sustained deviations, while more subtle temporal behaviours remain more challenging. Overall, the proposed framework provides a practical condition monitoring and early-warning approach that can support predictive maintenance decisions in DC charging infrastructure, while further temporal modelling is required for explicit degradation forecasting.

1. Introduction

The deployment of electric vehicle (EV) charging infrastructure is accelerating as part of the transition towards low-emission mobility. According to the International Energy Agency, the global stock of publicly accessible charging points exceeded 7 million by the end of 2025, after nearly 1.8 million public chargers were added during that year, representing an increase of more than 33% compared with 2024 [1]. However, the expansion of installed charging infrastructure does not by itself guarantee service availability. As charging networks grow, ensuring the reliability, operational safety and maintainability of charging stations becomes increasingly important.
This issue is particularly relevant for DC fast-charging stations, which integrate power conversion, charging control, protection and communication functions within the infrastructure itself [2]. Unlike AC charging points, where the vehicle’s on-board charger largely determines the electrical charging behaviour, DC fast chargers actively regulate the charging process. Consequently, abnormal electrical behaviour observed in DC fast-charging stations is more directly related to the infrastructure under monitoring and may provide valuable information for maintenance and fault diagnosis.
Predictive maintenance aims to monitor the condition of equipment during operation in order to anticipate faults before they lead to service interruption [3,4]. Within this framework, anomaly detection [5] plays a central role by identifying deviations from normal operating behaviour in multivariate operational data. In DC fast-charging stations, such deviations may appear as abnormal power consumption patterns, efficiency losses between measurement points, phase imbalance, measurement inconsistencies or unexpected transient behaviour.
Despite the potential of anomaly detection for charging infrastructure, its deployment in real operational environments remains challenging. Documented fault data are scarce, heterogeneous and rarely available in sufficient quantity for supervised learning. In addition, the electrical behaviour of charging stations is multivariate, nonlinear and affected by changing operating conditions. These limitations motivate the use of unsupervised anomaly detection methods, which can learn normal operating patterns without requiring labelled examples of faults.
This work presents an unsupervised anomaly detection framework for DC fast-charging stations using real operational data from a real charging station. The proposed approach focuses on three complementary anomaly categories: abnormal electrical consumption behaviour, efficiency deviations between charger-side and grid-side power measurements, and phase imbalance in three-phase operation. Since no labelled dataset of real faults was available, the validation strategy is based on the controlled injection of synthetic anomalies into real test signals. This allows model performance to be evaluated under known abnormal conditions while preserving the variability and temporal structure of real operational data.
The main contribution of this work is the development and validation of a practical data-driven framework for condition monitoring and early anomaly detection in DC fast-charging infrastructure. The methodology combines real monitoring data, unsupervised machine learning models and synthetic anomaly injection to identify abnormal operating periods that may support predictive maintenance decisions and technical diagnosis in operational EV charging environments. In this context, the framework focuses on anomaly-based monitoring and maintenance prioritisation, while explicit fault prognosis and remaining useful life estimation remain outside the scope of the present study.

2. Related Work

Anomaly detection in EV charging infrastructure has been addressed using different methodological approaches, ranging from deterministic rules and statistical monitoring to machine learning and deep learning techniques [6]. The choice of method depends strongly on the availability of labelled fault data, the complexity of the monitored system and the type of anomalies to be detected.
Early approaches in charging infrastructure and related electrical systems often relied on deterministic rules, fixed thresholds or statistical monitoring techniques. These methods typically define limits on variables such as voltage, current, power, temperature or efficiency indicators [7]. Statistical tools such as z-score analysis, interquartile range methods and control charts have also been used to identify observations that deviate from expected operating ranges. Their main advantages are simplicity, interpretability and low computational cost. However, their performance is limited when the monitored system presents nonlinear behaviour, variable operating regimes or strong interactions between variables. In DC fast-charging stations, where operating conditions can change significantly between charging sessions, fixed thresholds may generate false alarms or fail to detect subtle degradation patterns.
Supervised machine learning methods have also been explored for fault and anomaly detection by formulating the problem as a classification task between normal and abnormal states. Algorithms such as support vector machines, random forests, gradient boosting, k-nearest neighbours and neural networks can achieve high detection performance when representative labelled data are available. Nevertheless, this requirement is a major limitation in real charging infrastructure. Faults are relatively rare, heterogeneous and often poorly documented, while many abnormal behaviours may not have occurred previously in the monitored system. As a result, purely supervised approaches are difficult to deploy in operational environments where labelled anomaly datasets are not available.
Unsupervised anomaly detection has therefore become a particularly relevant approach for EV charging applications. These methods do not require labelled fault examples and instead learn the structure of normal operation, identifying observations that deviate from the expected data distribution. Classical unsupervised algorithms such as Isolation Forest, Local Outlier Factor, One-Class SVM, clustering-based methods and dimensionality reduction approaches have been widely used for this purpose [8,9]. Isolation Forest detects anomalies according to how easily each observation can be isolated through random partitions of the feature space, whereas Local Outlier Factor identifies samples located in regions of lower local density compared with their neighbours. These methods are attractive for charging infrastructure because they offer a practical compromise between computational cost, interpretability and applicability to real operational data.
Recent work has also incorporated explainability into anomaly detection for EV charging stations. In operational maintenance contexts, an anomaly label alone is often insufficient since technical teams require additional information to understand which variables contributed to the abnormal behaviour and to prioritise interventions. For this reason, feature importance techniques and explainable anomaly detection methods have been proposed to improve the diagnostic value of machine learning-based monitoring systems [10].
In parallel, deep learning methods have increasingly been applied to anomaly detection and monitoring in EV charging and smart-grid environments [11,12,13,14,15,16]. Autoencoders, convolutional neural networks, recurrent neural networks and LSTM-based architectures can model nonlinear relationships and temporal dependencies in multivariate time series. These approaches are especially useful when large volumes of data are available and the objective is to learn complex representations of normal operation. However, they generally require more data, greater computational resources and more careful tuning than classical unsupervised methods. In addition, their reduced interpretability may limit adoption in maintenance-oriented applications unless combined with explanation mechanisms.
Another relevant research line addresses anomaly detection from a cybersecurity perspective [8,12,17,18]. Charging stations are cyber–physical systems connected to vehicles, back-end platforms and, in some cases, grid services. This exposes them to attacks such as manipulation of charging profiles, false data injection, denial-of-service events or communication tampering. Some works propose intrusion detection systems that combine forecasting models, supervised classifiers and novelty detection to identify both known and previously unseen attacks during charging sessions. Although this perspective is not identical to predictive maintenance, it is closely related because cyber-induced deviations and technical faults may both appear as abnormal patterns in operational data.
Despite these advances, several challenges remain open. First, the generalisation of anomaly detection models across different charger types, manufacturers, power levels, vehicles and operating conditions is still limited. Second, the absence of labelled real faults complicates objective validation and comparison between methods. Third, the choice of detection thresholds is often empirical and sensitive to data drift, which may increase false positives over time. Finally, many existing approaches focus on generic session-level anomalies or cybersecurity events, while fewer works address infrastructure-oriented indicators such as efficiency deviations between measurement points or phase imbalance in three-phase DC fast-charging operation.
In this context, the present work focuses on unsupervised anomaly detection for DC fast-charging infrastructure using real operational data. Unlike approaches based only on generic charging session indicators, the proposed framework combines classical unsupervised models with domain-specific monitoring variables related to consumption behaviour, efficiency and phase balance. In addition, the use of controlled synthetic anomaly injection enables quantitative validation in the absence of labelled real faults, which remains one of the main limitations for deploying anomaly detection systems in real charging infrastructure.

3. Materials and Methods

3.1. Dataset

The dataset used in this study was collected from the Smart Mobility Lab of the Instituto Tecnológico de la Energía (ITE) [19]. It includes several electric vehicle charging stations with different power levels and technologies. However, this work focuses exclusively on the DC fast-charging station since, in this type of infrastructure, the main power conversion, charging control, regulation, protection and communication functions are integrated into the charging station itself. Therefore, the electrical behaviour observed during charging is more directly related to the infrastructure under monitoring than in AC charging, where the vehicle on-board charger has a dominant influence on the charging profile.
The monitored DC charging point corresponds to a Power Electronics NBW30 fast charger (Power Electronics España S.L., Llíria, Spain), with a rated power of 30 kW [20]. The station is supplied from a three-phase grid and is monitored through two complementary measurement points, as shown in Figure 1. The first measurement point is located at the grid side and corresponds to a Siemens PAC2200 network analyser (Siemens AG, Munich, Germany), which provides active power, reactive power, apparent power, power factor and active power per phase. The second measurement point is located at the charger side and provides the active power reported by the charging management system. All measurements are recorded with a one-minute temporal resolution. The availability of these two measurement points enables both the characterisation of the electrical behaviour of the charger and the comparison between grid-side and charger-side power measurements.
Table 1 summarises the variables included in the dataset.
The dataset covers approximately two years of operation of the monitored DC fast-charging station and includes around 100 active DC fast-charging sessions. This number of charging events reflects the operational context of the installation, which corresponds to a private company charging point where additional lower-power chargers are also available and are more frequently used for regular charging needs. Consequently, active DC charging represents only a limited fraction of the monitored period. However, the station was continuously monitored at one-minute resolution, and the complete non-charging and standby operation was also recorded throughout the observation period. This is relevant for the proposed framework because non-charging consumption is explicitly modelled as an independent monitoring task aimed at detecting abnormal standby behaviour, residual consumption, unexpected power peaks and unregistered charging activity. Since labelled real faults were not available, these operational data were used as the basis for the controlled injection of synthetic anomalies during the validation stage.

3.2. Proposed Anomaly Detection Framework

The proposed framework (Figure 2) is designed to detect abnormal operating conditions in DC fast-charging infrastructure using real operational measurements and unsupervised learning models. Based on the available electrical variables, three complementary anomaly detection tasks are defined: consumption anomaly detection, efficiency deviation detection and phase imbalance anomaly detection. Each task focuses on a different aspect of the charging process and is intended to capture a different family of abnormal behaviours. The complete processing path consists of raw data harmonisation, operating-state segmentation, task-specific feature construction, model training on historical data, anomaly scoring and validation through synthetic anomaly injection.

3.2.1. Methodological Formulation

The proposed framework is formulated as an unsupervised anomaly detection problem for condition monitoring of DC fast-charging infrastructure. Let X = { x t } denote the multivariate operational time series collected from the charging station, where each x t contains the electrical measurements recorded at timestamp t . Since labelled fault examples are not available, the objective is to learn the normal operating behaviour of the charger from historical data and to identify observations that deviate from this behaviour.
After defining the monitoring tasks, each task is associated with a specific input representation. For the consumption task, the feature vector is built from the main electrical consumption variables. For the efficiency deviation task, the representation is based on the relationship between charger-side and grid-side active power measurements. For the phase imbalance task, the representation is based on the distribution of active power among the three phases.
An unsupervised model then assigns an anomaly score s t , k , m = f k , m ( z t k ) , where k denotes the monitoring task and m { L O F , I F } denotes the selected unsupervised model.
More formally, for each monitoring task k , the raw measurement vector x t is transformed into a task-specific input vector:
z t k = g k ( x t )
where g k ( ) represents the feature construction function associated with the corresponding monitoring task. The anomaly score is then obtained using an unsupervised detector:
s t , k , m = f k , m ( z t k ) , m { L O F , I F }
where m denotes the anomaly detection model used for task k . For consistency between models, the scores are expressed so that larger values indicate a greater degree of abnormality; when necessary, the sign of the original model output is reversed.
The threshold for task k and model m is then determined from the training score distribution as:
τ k , m = Q 1 α k , m s i , k , m t r a i n i = 1 N t r a i n ,
where Q 1 α k , m is the empirical quantile of order 1 α k , m of the training anomaly score distribution and α k , m is the contamination factor defined for task k and model m .
Thus, approximately the fraction α k , m of the training observations with the highest anomaly scores lies above the threshold. The threshold is fixed after model fitting and subsequently applied to unseen test or operational samples.
Finally, the anomaly flag is obtained by applying a task- and model-specific operational threshold:
a t , k , m = 1 , s t , k , m τ k , m 0 , s t , k , m < τ k , m
where a t , k , m = 1 denotes an anomalous observation. Under this formulation, the same anomaly detection logic is applied to the different monitoring tasks, while the input representation z t k , the scoring function f k , m , the contamination factor α k , m and the threshold τ k , m are defined for each task and model.

3.2.2. Consumption Anomaly Detection

The consumption anomaly detection task aims to identify abnormal electrical behaviour in the DC fast-charging station using the main grid-side variables: active power, reactive power, apparent power and power factor. These variables jointly characterise the global electrical operation of the charger and allow the detection of deviations such as unexpected power drops, transient peaks, unstable charging profiles or inconsistencies between electrical magnitudes.
Formally, for each operating regime r { c h , n c } , the consumption-monitoring input vector at timestamp t is defined as:
z t C r = P ~ t Q ~ t S ~ t P F ~ t P ~ L 1 , t P ~ L 2 , t P ~ L 3 , t T , t T r , r { c h , n c }
where P t , Q t , S t , P F t , P L 1 , t , P L 2 , t , and P L 3 , t denote the original active power, reactive power, apparent power, power factor, and active power measured in phases L1, L2, and L3, respectively. The tilde indicates the corresponding scaled variable used as model input, T r is the set of timestamps belonging to operating regime r , and c h and n c denote active charging and non-charging operations, respectively.
For each operating regime and model m { L O F , I F } , an anomaly score is computed as:
s t , C , r , m = f C , r , m      z t C r
The corresponding anomaly flag is then obtained as:
a t , C , r , m = 1 , if   s t , C , r , m τ C , r , m , 0 , otherwise .
where τ C , r , m is the operational threshold associated with the selected model and contamination factor. Under this formulation, a consumption anomaly is not defined by a fixed threshold on a single electrical variable but by the joint deviation of the multivariate consumption vector from the normal operating distribution learned for the corresponding operating regime.
Since the station behaviour differs substantially between active charging and idle operation, two separate models are used: one for charging periods and one for non-charging periods. This separation prevents the model from mixing operating regimes with different normal patterns. For instance, high active power is expected during charging but anomalous in standby, whereas very low power is normal during idle operation but may indicate an interruption during charging.
The charging model therefore focuses on deviations in the power profile during energy delivery, while the non-charging model detects abnormal standby behaviour, such as residual consumption, unexpected peaks or unregistered charging activity. Together, both models provide a general monitoring layer for identifying abnormal consumption patterns in different operating states of the DC charger.

3.2.3. Efficiency Deviation Detection

The efficiency deviation detection task analyses the relationship between the active power reported by the charging station and the active power measured at the grid-side analyser. This relationship is represented by an efficiency-related indicator defined as:
η ( t ) = P c h a r g e r ( t ) P g r i d ( t )
where P c h a r g e r ( t ) is the active power reported by the charging station and P g r i d ( t ) is the active power measured by the grid-side analyser.
For this task, the input variable at the input variable at timestamp t is defined as:
z t E = η ~ t , t T c h s t a b l e
where η t denotes the efficiency-related indicator, the tilde indicates the corresponding scaled variable used as model input, and T c h s t a b l e represents the set of stable charging timestamps after preprocessing.
For each model m { L O F , I F } , the anomaly score is obtained as:
s t , E , m = f E , m      z t E
and the corresponding anomaly flag is defined as:
a t , E , m = 1 , s t , E , m τ E , m , 0 , s t , E , m < τ E , m .
where τ E , m is the operational threshold associated with the selected model and contamination factor.
This indicator is computed only during active charging periods since the ratio is not physically meaningful when the delivered power is close to zero and may be strongly affected by noise, transients or temporal misalignment between data sources. In this work, the indicator should be interpreted as a consistency measure between charger-side and grid-side active power measurements, rather than as a precise converter efficiency measurement. Persistent deviations may therefore indicate abnormal losses, but they may also reflect measurement inconsistencies, communication delays or timestamp alignment issues between acquisition systems. The model provides a complementary monitoring layer for identifying deviations in the relationship between purchased energy and the energy accounted for at the charging point, which may be relevant to operating costs, billing accuracy and maintenance prioritisation.

3.2.4. Phase Imbalance Anomaly Detection

The third task addresses the detection of abnormal phase imbalance in three-phase operation. For this purpose, the active power measured in each phase is used to compute a normalised phase balance indicator:
I i m b ( t ) = m a x ( P L 1 ( t ) , P L 2 ( t ) , P L 3 ( t ) ) m i n ( P L 1 ( t ) , P L 2 ( t ) , P L 3 ( t ) ) P L 1 ( t ) + P L 2 ( t ) + P L 3 ( t ) 3
where P L 1 ( t ) , P L 2 ( t ) and P L 3 ( t ) are the active powers measured in phases L1, L2 and L3, respectively. Values close to zero indicate balanced operation, while higher values indicate increasing asymmetry in the phase power distribution.
For this task, the input variable at timestamp t is defined as:
z t i m b = I ~ i m b , t , t T c h s t a b l e
where I i m b , t denotes the phase balance indicator, the tilde indicates the corresponding scaled variable used as model input, and T c h s t a b l e represents the set of stable active-charging timestamps after preprocessing.
For each model m { L O F , I F } , the anomaly score is obtained as:
s t , i m b , m = f i m b , m      z t i m b
and the corresponding anomaly flag is defined as:
a t , i m b , m = 1 , s t , i m b , m τ i m b , m , 0 , s t , i m b , m < τ i m b , m .
where τ i m b , m is the operational threshold associated with the selected model and contamination factor. Under this formulation, phase imbalance anomalies are not defined only by a fixed engineering threshold on the imbalance indicator. Instead, the model identifies deviations from the normal phase balance distribution observed during stable charging operation.
This task is relevant because phase imbalance may lead to inefficient operation, local overloads, increased losses, voltage asymmetries or stress on electrical components. In three-phase DC fast-charging infrastructure, monitoring the distribution of active power across phases can help identify abnormal conditions that may not be evident from total power alone. For example, the total power consumed by the charger may appear normal while one phase presents a significant deviation with respect to the others.
The phase imbalance anomaly detection model therefore provides a specific monitoring layer for the electrical symmetry of the installation. Its inclusion is particularly useful for infrastructure-level diagnosis, as it allows the detection of anomalies related to the distribution of power among phases rather than only to the aggregate consumption of the charger.
Together, these three tasks provide a multi-perspective anomaly detection framework. The consumption model captures global deviations in the electrical behaviour of the DC charger, the efficiency model evaluates the coherence between charger-side and grid-side measurements, and the phase imbalance model analyses the symmetry of the three-phase power distribution. The following section describes the preprocessing steps required to construct these inputs from the raw operational data before applying the unsupervised anomaly detection models.

3.3. Data Preprocessing

The raw operational data were preprocessed to obtain temporally consistent and physically meaningful input signals for each anomaly detection task. Since measurements were obtained from different acquisition systems, all timestamps were converted to a common time reference, duplicated records were removed, the time index was sorted and missing or invalid values in the required variables were discarded.
The operating state of the charger was identified using the active power measured at the grid-side analyser. Charging sessions were first identified using the transaction start and end timestamps provided by the charging management system. Within these transaction windows, an active power threshold was applied as an additional filtering criterion to retain only periods with effective energy delivery. This step avoids the need to consider intervals in which the vehicle remains connected after the charging process has effectively finished as active charging. This separation was used to construct two independent consumption datasets: one for active charging and one for non-charging operation. This prevents the models from mixing regimes with different normal behaviours.
For the efficiency and phase imbalance tasks, only active charging periods were retained. These indicators are not meaningful during non-charging operation because the efficiency ratio may involve divisions by values close to zero and the phase balance index may become unstable when the mean phase power is very low.
To reduce the influence of normal transients and possible temporal misalignment between data sources, the first and last N = 5 min of each charging session were removed before constructing the efficiency and phase balance datasets. This criterion was selected empirically after inspecting the charging sessions. In the analysed data, the start of a transaction did not always coincide exactly with the beginning of effective power delivery, and a short transition period was commonly observed before the charging process reached a stable operating region. A similar situation occurred near the end of some sessions, where the transaction could remain active while the delivered power was already decreasing or the charger was entering the shutdown phase. The five-minute margin was therefore used as a conservative filtering criterion to exclude these start-up and end-of-charge regions. It was not optimised to maximise detection performance, but it was introduced to avoid computing efficiency and phase balance indicators during transition intervals in which abrupt power variations or small time offsets between the grid-side analyser and charger-side monitoring system could generate non-representative values.
After preprocessing, four task-specific datasets were obtained: charging consumption, non-charging consumption, charging efficiency and charging phase balance. These datasets were then used as inputs to the unsupervised anomaly detection models. Before model training, the input features were scaled to prevent variables with larger numerical ranges from dominating the anomaly detection process. The scaler was fitted only on the training data and subsequently applied to the test and inference samples, avoiding information leakage and ensuring consistency between validation and deployment.

3.4. Unsupervised Anomaly Detection Models

Due to the absence of a labelled dataset of real faults, the anomaly detection problem was addressed using unsupervised learning models. This approach allows abnormal observations to be identified from deviations with respect to the normal operating patterns learned from historical data. Two algorithms were selected, namely, Local Outlier Factor (LOF) and Isolation Forest (IF), as they offer a suitable compromise between detection capability, computational cost and practical deployment in operational monitoring environments.
Both algorithms were applied in a novelty detection setting. The models were trained only on the training subset of each monitoring task, after feature scaling, and were then used to assign anomaly scores to test or inference samples. For each task and model, the final anomaly flag was obtained by comparing the anomaly score with the operational threshold defined by the contamination parameter.

3.4.1. Local Outlier Factor

Local Outlier Factor [21] is a density-based anomaly detection algorithm that evaluates the degree of isolation of each observation with respect to its local neighbourhood. The method estimates the local density around each sample using its nearest neighbours and compares this density with that of neighbouring samples. Observations located in regions with significantly lower density than their neighbours are assigned higher anomaly scores and are considered more likely to be anomalous.
Formally, let N K ( z i ) denote the set of K -nearest neighbours of sample z i . LOF evaluates whether z i lies in a region of lower local density than its neighbours. The local reachability density can be expressed as:
l r d K ( z i ) = 1 N K ( z i ) z j N K ( z i ) r e a c h d i s t K ( z i , z j ) 1
where r e a c h d i s t K ( z i , z j ) is the reachability distance between samples z i and z j . The anomaly score assigned by the Local Outlier Factor is then computed as:
L O F K ( z i ) = 1 N K ( z i ) z j N K ( z i ) l r d K ( z j ) l r d K ( z i )
Higher LOF values indicate that the sample has a lower local density than its neighbours and is therefore more likely to be anomalous.
The main hyperparameters considered were the number of neighbours, n n e i g h b o r s , and the contamination factor. The number of neighbours controls the size of the local region used to estimate the density. Smaller values make the model more sensitive to local deviations, whereas larger values provide smoother and more stable density estimates. In this work, n n e i g h b o r s = 20 was used, following the default configuration of the scikit-learn implementation [22]. The objective was not to perform an exhaustive hyperparameter optimisation but to use a reproducible and operationally simple configuration to evaluate the proposed monitoring framework.
The contamination factor defines the expected proportion of anomalous observations and is used to set the decision threshold. A value of 1% was used for the active charging, efficiency and phase imbalance models, while a more restrictive value of 0.1% was used for the non-charging consumption model, where anomalous events are expected to be less frequent. These values were selected as conservative operational settings under the assumption that anomalies are rare during normal operation. Therefore, they should not be interpreted as globally optimal thresholds but as baseline configurations for assessing the feasibility of the proposed approach.

3.4.2. Isolation Forest

Isolation Forest [23] is an ensemble-based anomaly detection algorithm that relies on the principle of isolation. Instead of modelling the distribution of normal data explicitly, the algorithm builds a set of random binary trees by recursively partitioning the feature space. Anomalous observations, which are assumed to be rare and different from the majority of the data, tend to be isolated in fewer partitions and therefore have shorter average path lengths within the trees.
Formally, let h ( z i ) be the path length of sample z i , and let E [ h ( z i ) ] be its average value over all trees. The anomaly score can be expressed as:
s I F ( z i ) = 2 E [ h ( z i ) ] c ( n )
where c ( n ) is the average path length of unsuccessful searches in a binary tree with n samples. Samples with shorter average path lengths obtain higher anomaly scores because they are easier to isolate and are therefore considered more anomalous.
The main hyperparameters considered were the number of trees, n e s t i m a t o r s , the subsampling size, m a x s a m p l e s , and the contamination factor. The number of trees controls the stability of the anomaly score estimation; in this work, n e s t i m a t o r s = 100 was used, following the default configuration of the scikit-learn implementation [24], as a compromise between robustness and computational cost.
The m a x s a m p l e s parameter determines the number of samples used to train each tree and was kept at its default value. The contamination factor was configured consistently with the LOF models: 1% for active charging, efficiency and phase imbalance detection and 0.1% for non-charging consumption detection. These values were selected as conservative operational settings under the assumption that anomalies are rare during normal operation. Therefore, they should not be interpreted as globally optimal thresholds, but as baseline configurations for assessing the feasibility of the proposed approach. Moderate variations in these parameters were explored during development, but they did not provide consistent improvements. A more extensive optimisation was not pursued in order to avoid overfitting the configuration to the specific synthetic validation scenarios and monitored dataset.

3.5. Validation by Synthetic Anomaly Injection

3.5.1. Validation Protocol

During the monitored period, no documented failures or maintenance interventions associated with abnormal operation of the analysed DC fast-charging station were recorded. Therefore, no labelled real fault events were available for direct validation. For this reason, validation was performed through controlled synthetic anomaly injection over real operational data.
This strategy allows the models to be evaluated using known anomaly labels while preserving the variability, noise and temporal structure of real charging signals.
The validation process consisted of four main steps. First, historical operational data were preprocessed using the same procedure defined for the anomaly detection pipeline. Second, the dataset was split temporally into training and test subsets. Third, the models were trained only with unmodified real data. Finally, synthetic anomalies were injected exclusively into the test set, and the injected intervals were used as ground-truth labels for quantitative evaluation.

3.5.2. Synthetic Anomaly Design

The synthetic anomalies were designed to represent plausible abnormal behaviours rather than arbitrary numerical perturbations. They were injected only into the test set, while the training data remained unchanged. Each anomaly was generated as a temporally continuous event, with duration and magnitude defined according to the anomaly family and severity level. The generated labels included the binary anomaly indicator, anomaly type, severity level and event identifier, enabling both sample-level and event-level evaluation.
The location of the injected events was constrained according to the detection task. For consumption anomaly detection, events were injected only within complete windows belonging to the corresponding operating regime, either charging or non-charging, avoiding transitions between regimes. For efficiency deviation detection, candidate windows were restricted to stable charging intervals with physically plausible efficiency values. For phase imbalance detection, anomalies were introduced by modifying the individual phase powers and recalculating the imbalance indicator, rather than directly altering the derived index.
Different anomaly families were defined for each detection task, as summarised in Table 2. This table provides a compact overview of the anomaly groups considered in the main validation analysis and their associated plausible operational issues. A more detailed description of the individual anomaly definitions, together with the duration ranges, severity-dependent perturbation factors and injection constraints used by the simulator, is provided in Appendix A.
This validation strategy enables the comparison of different anomaly detection models under controlled abnormal conditions without using synthetic data for training. It also provides a reproducible way to assess detection performance in a realistic scenario where real labelled faults are not available. Nevertheless, the resulting metrics should be interpreted as controlled detectability indicators rather than as a direct estimate of performance on all possible real faults.

3.6. Evaluation Metrics

The performance of the anomaly detection models was evaluated by comparing the detected anomalies with the labels generated during the synthetic anomaly injection process. Since anomaly detection is a highly imbalanced problem, where abnormal samples represent only a small fraction of the total observations, the evaluation focused on metrics that are appropriate for rare event detection.
For each model, the predictions were summarised using a confusion matrix composed of true positives (TPs), false positives (FPs), true negatives (TNs) and false negatives (FNs). Based on these values, precision, recall and F1-score were computed.
Precision measures the proportion of detected anomalies that correspond to actual injected anomalies:
P r e c i s i o n = T P T P + F P
Recall measures the proportion of injected anomalies that were correctly detected by the model:
R e c a l l = T P T P + F N
The F1-score was used as a balanced metric between precision and recall:
F 1 = 2 P r e c i s i o n R e c a l l P r e c i s i o n + R e c a l l
In addition, precision–recall (PR) curves were used to analyse the behaviour of each model across different decision thresholds. This is particularly relevant in imbalanced anomaly detection problems, where accuracy can be misleading due to the predominance of normal samples. The area under the precision–recall curve (PR-AUC) was also computed as a global indicator of the model’s ability to discriminate between normal and anomalous observations.

4. Results

The validation results are reported separately for each anomaly detection task. Table 3, Table 4, Table 5 and Table 6 show the mean ± standard deviation obtained across repeated synthetic anomaly injection runs for three complementary metrics: F1-score, PR-AUC and Recall-any. The F1-score evaluates point-wise detection performance using the operational threshold of each unsupervised model. PR-AUC evaluates the ranking capability of the anomaly score independently of a fixed threshold. Recall-any provides an event-level evaluation, considering an injected anomaly as detected when at least one sample within its temporal window is classified as anomalous.

4.1. Charging Consumption Anomaly Detection Results

Table 3 summarises the results obtained for consumption anomalies during active charging operation. This was the most heterogeneous detection task, with performance depending strongly on the type and severity of the injected anomaly.
The best results were obtained for strong power drops and physical inconsistencies between active power, apparent power and power factor. These anomalies produced clear deviations in the multivariate electrical behaviour of the charger and were more reliably detected, particularly by LOF. Power peaks showed intermediate performance, with higher detection capability for stronger deviations.
Progressive power drift and unstable charging produced lower F1-scores for both LOF and Isolation Forest. Although some events were detected at least partially, as reflected by Recall-any, point-wise detection remained limited compared with more abrupt or physically inconsistent anomalies.
Figure 3 provides a representative example of the charging consumption anomaly detection task. The visual comparison between the original signal, the signal after synthetic anomaly injection and the model detections illustrates the heterogeneous behaviour observed in Table 3. Abrupt deviations and physically inconsistent perturbations are more clearly identified, whereas progressive or unstable patterns may only be partially detected.

4.2. Non-Charging Consumption Anomaly Detection Results

Table 4 presents the results for consumption anomalies during non-charging operation. In this case, the models performed well when the injected anomaly generated abnormal power levels during periods in which the charger should remain close to standby operation.
Isolation Forest achieved strong performance for residual consumption and unregistered charging events, with high F1-score, PR-AUC and Recall-any values. These anomalies were clearly distinguishable from normal non-charging behaviour. Standby peaks also showed high PR-AUC values, although the point-wise F1-score was lower, indicating that the anomaly score ranked the events correctly, but the operational threshold did not always classify all anomalous samples.
Frozen sensor events were the most difficult non-charging anomaly. Both models obtained very low point-wise performance, indicating that this type of anomaly was not effectively captured using the current point-wise feature representation.
Figure 4 shows a representative non-charging consumption scenario. The example illustrates that abnormal power levels during standby periods can be clearly detected when they produce a visible departure from the normal non-charging baseline. In contrast, anomalies such as frozen sensor values are less evident in a point-wise representation, which is consistent with the lower quantitative performance reported in Table 4.

4.3. Efficiency Deviation Detection Results

Table 5 reports the results for the efficiency deviation detection task. In general, efficiency-related anomalies were detected more reliably than consumption anomalies, especially when the deviation was sustained or physically implausible.
Sustained low-efficiency events achieved consistently high performance for both models, with strong F1-score, PR-AUC and Recall-any values. Physically implausible efficiency values were also detected reliably, particularly by LOF. Progressive efficiency degradation showed intermediate performance, with better results at strong severity than at medium severity.
Punctual efficiency drops and unstable efficiency patterns were more challenging in terms of the point-wise F1-score. However, Recall-any remained high, indicating that the occurrence of these events was generally detected even when not all anomalous samples were correctly labelled.
Figure 5 illustrates the efficiency deviation detection task. The visual example shows how deviations between charger-side and grid-side measurements can generate identifiable departures from the normal efficiency-related signal. This supports the quantitative results in Table 5, where sustained or physically implausible efficiency deviations are detected more reliably than punctual or unstable patterns.

4.4. Phase Imbalance Anomaly Detection Results

Table 6 shows the results obtained for phase imbalance anomaly detection. This task achieved the most consistent performance across anomaly families and severities.
Moderate and severe phase imbalances were detected reliably by both LOF and Isolation Forest. Similar behaviour was observed for partial phase drops and near-total phase loss events, which achieved high F1-score, PR-AUC and Recall-any values. These results indicate that the phase balance indicator provides a highly informative representation for detecting abnormal asymmetries in three-phase operation.
Unstable phase behaviour was more challenging than the other phase-related anomalies, particularly at medium severity. Nevertheless, performance improved for stronger deviations, and Recall-any values remained high, indicating that most injected phase instability events were detected at least partially.
Figure 6 provides a representative example of the phase imbalance anomaly detection task. The injected imbalance produces a clear deviation in the phase balance indicator, which explains the high and consistent performance reported in Table 6. The figure also illustrates the diagnostic value of using a physically informed indicator for this specific monitoring objective.

5. Discussion

The results demonstrate the feasibility of the approach in the monitored DC fast-charging station, while further validation across additional chargers, power levels and operating conditions is required. The strongest performance was obtained for anomalies that generated clear deviations in the feature space, such as sustained efficiency losses, physically implausible efficiency values, phase imbalance, partial phase drops, near-total phase loss, residual consumption and unregistered charging during non-charging operation. These results support the use of unsupervised anomaly detection as an early-warning tool for monitoring DC fast-charging stations.
The three detection tasks provide complementary diagnostic information. Consumption anomaly detection captures global deviations in the electrical behaviour of the charger. Efficiency deviation detection evaluates the consistency between grid-side and charger-side power measurements, which is relevant for identifying abnormal losses, measurement inconsistencies or degraded operating conditions that may affect operating costs and billing accuracy. Phase imbalance detection provides additional information on the symmetry of the three-phase electrical supply, allowing abnormal phase distributions to be detected even when total power consumption may appear normal.
The results also show that model performance depends strongly on the physical nature of the anomaly. Point-wise deviations, sustained abnormal states and physically inconsistent values were easier to detect because they produce samples that are clearly separated from normal operation. In contrast, progressive drifts, unstable behaviours and frozen sensor events were more difficult. This limitation is expected because LOF and Isolation Forest were applied to point-wise feature representations and do not explicitly model temporal dependencies. In these cases, each individual sample may remain close to the normal operating region, while the anomaly is mainly expressed through the evolution of the signal over time.
No single model consistently outperformed the other across all tasks. LOF tended to perform well when anomalies produced local deviations in the feature space, as observed in several efficiency and charging consumption scenarios. Isolation Forest showed strong performance for non-charging consumption anomalies that generated clear global deviations from standby behaviour. In the phase imbalance task, both models achieved similar and consistently high performance, suggesting that the phase balance indicator itself is highly informative for this monitoring objective.
The different behaviour of LOF and Isolation Forest can be explained by their anomaly scoring mechanisms. LOF relies on local density contrasts and is therefore sensitive to samples that lie in regions of lower density than their neighbourhood. This can be advantageous for local deviations in multivariate charging behaviour. Isolation Forest, on the other hand, isolates observations through random partitions and may perform better when abnormal samples occupy globally unusual regions of the feature space, which occurred for several non-charging consumption anomalies. The similar performance of both models in the phase imbalance task suggests that, in that case, the discriminative power came mainly from the physically informed phase balance indicator rather than from the specific anomaly detection algorithm.
An important aspect of the results is the difference between PR-AUC and F1-score. In some scenarios, high PR-AUC values were obtained together with moderate or low F1-scores. This indicates that the anomaly scores were able to rank injected anomalies above normal samples, but the operational threshold derived from the unsupervised model configuration was not always optimal for the test distribution. Therefore, PR-AUC should be interpreted as the intrinsic ranking capability of the anomaly score, whereas F1-score represents the performance obtained with the current thresholding strategy.
From an operational perspective, the proposed framework should be interpreted as a condition monitoring and early-warning tool rather than as a complete prognostic maintenance system. The models identify abnormal operating periods that may support inspection planning and maintenance prioritisation, but they do not estimate remaining useful life or explicitly forecast future failures. Moreover, exceeding a decision threshold indicates a deviation from the learned normal operating behaviour, but does not by itself identify a specific physical fault. Fault attribution therefore requires corroboration with additional diagnostic information, such as charger alarms, maintenance records or complementary monitored variables.
The main limitation of this study is the absence of labelled real fault data. Although the synthetic anomalies were injected into real operational signals and were designed to represent plausible abnormal behaviours, they may not fully capture the complexity of real failure modes. Real faults may involve interacting electrical, thermal, communication and control effects, as well as irregular temporal patterns that are difficult to reproduce through controlled injection. In this study, only electrical operational variables were available, so thermal measurements, detailed communication logs and internal control variables could not be incorporated into the models or validation procedure. In addition, the efficiency-related indicator may be affected by residual timestamp mismatches between the charger-side and grid-side acquisition systems, particularly during rapid power variations. Therefore, the reported metrics should be interpreted as a controlled evaluation of anomaly detectability, rather than as a direct estimate of performance on all possible real faults. A second limitation is the restricted number of active DC fast-charging sessions available in the monitored period. This mainly affects the characterisation of normal behaviour during active charging, efficiency analysis and phase balance analysis. In contrast, the non-charging operating regime is represented over the complete monitoring period, which provides a broader basis for characterising standby behaviour.
Nevertheless, the validation was performed on a specific 30 kW DC fast-charging station. Therefore, the trained models and operational thresholds should be considered station-specific, and their direct generalisation to other charger models, power levels, manufacturers and operating conditions should not be assumed.
Another limitation is the use of fixed operational thresholds derived from the unsupervised model configuration, rather than thresholds calibrated on an independent validation set.
Future work should focus on several directions. First, the framework should be validated using additional DC fast-charging stations and, when available, real documented fault events, charger alarms and maintenance records. Second, additional monitoring variables, such as temperature measurements, communication logs and internal charger status signals, should be incorporated to better characterise failures involving thermal, communication or control effects. Third, threshold calibration strategies should be evaluated using an independent validation set with synthetic anomaly injection, followed by final assessment on a separate test set. Finally, temporal features or sequence-based models should be incorporated to improve the detection of progressive drifts, unstable behaviours and frozen sensor events. Examples include rolling statistics, first differences, constant-value duration features, change-point detection methods or temporal deep learning models.

Author Contributions

Conceptualisation, A.G.-G. and C.T.-D.; methodology, A.G.-G. and C.T.-D.; software, A.G.-G.; validation, A.G.-G., C.T.-D. and B.A.-T.; formal analysis, A.G.-G.; investigation, A.G.-G.; resources, C.T.-D.; data curation, A.G.-G.; writing—original draft preparation, A.G.-G.; writing—review and editing, A.G.-G. and B.A.-T.; visualisation, A.G.-G.; supervision, C.T.-D.; project administration, C.T.-D.; funding acquisition, C.T.-D. All authors have read and agreed to the published version of the manuscript.

Funding

This research was developed within the framework of the MUSoL (Movilidad Urbana Sostenible para comunidades Locales) project. It was funded by IVACE+i and the European Union under the FEDER Operational Programme of the Valencian Region 2021–2027 (IMDEEA/2025/51).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data supporting the conclusions of this article will be made available by the authors on request.

Acknowledgments

During the preparation of this manuscript, the authors used ChatGPT (OpenAI, GPT-5.5) for English language polishing. The authors have reviewed and edited the output and take full responsibility for the content of this publication.

Conflicts of Interest

The authors declare no conflicts of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript; or in the decision to publish the results.

Abbreviations

The following abbreviations are used in this manuscript:
ACAlternating Current
DCDirect Current
EVElectric vehicle
FNFalse negative
FPFalse positive
IFIsolation Forest
ITEInstituto Tecnológico de la Energía
LOFLocal Outlier Factor
LSTMLong Short-Term Memory
PR-AUCArea under the precision–recall curve
SVMSupport vector machine
TNTrue negative
TPTrue positive

Appendix A. Synthetic Anomaly Simulator

Appendix A.1. Detailed Anomaly Definitions

Table A1. Charging consumption anomaly families and associated plausible operational issues.
Table A1. Charging consumption anomaly families and associated plausible operational issues.
Synthetic Anomaly FamilyPlausible Operational Issue
Power dropTemporary output limitation, derating, charging interruption, vehicle–charger communication issue, or partial malfunction of the power conversion stage.
Power peakSwitching transient, control instability, grid-side disturbance, measurement spike, or short communication artefact.
Unstable chargingIrregular power regulation, intermittent vehicle–charger communication, unstable control loop, or incipient power electronics or cooling issue.
Progressive power driftGradual derating, thermal limitation, ageing of power electronics, increasing losses, or slow changes in charging control behaviour.
P–S–PF inconsistencySensor error, calibration issue, corrupted monitoring data, or mismatch between electrical variables.
Table A2. Non-charging consumption anomaly families and associated plausible operational issues.
Table A2. Non-charging consumption anomaly families and associated plausible operational issues.
Synthetic Anomaly FamilyPlausible Operational Issue
Residual consumptionAbnormal auxiliary consumption, parasitic standby load, relay or contactor issue, or degraded standby behaviour.
Standby peakUnexpected auxiliary system activation, short control event, measurement spike, or intermittent abnormal idle consumption.
Unregistered charging activityCharging event not correctly recorded, transaction logging failure, or mismatch between electrical consumption and back-end records.
Frozen sensor valuesSensor malfunction, communication loss, stale measurements, or data acquisition freeze.
Table A3. Efficiency anomaly families and associated plausible operational issues.
Table A3. Efficiency anomaly families and associated plausible operational issues.
Synthetic Anomaly FamilyPlausible Operational Issue
Punctual efficiency dropShort measurement mismatch, transient losses, communication delay, or temporary abnormal power conversion.
Progressive efficiency degradationIncreasing internal losses, ageing of power electronics, degraded connectors, cooling deterioration, or measurement drift.
Sustained low efficiencyPersistent abnormal losses, degraded conversion stage, systematic measurement mismatch, calibration problem, or cooling limitation.
Unstable efficiencyIntermittent measurement mismatch, communication delay, unstable conversion behaviour, or irregular charger-side power reporting.
Physically implausible efficiencySensor error, timestamp misalignment, incorrect scaling, data corruption, or invalid derived efficiency values.
Table A4. Phase imbalance anomaly families and associated plausible operational issues.
Table A4. Phase imbalance anomaly families and associated plausible operational issues.
Synthetic Anomaly FamilyPlausible Operational Issue
Moderate phase imbalanceAsymmetric loading, supply-side imbalance, uneven current distribution, or an incipient phase connection issue.
Severe phase imbalanceSignificant supply asymmetry, faulty phase connection, local overload risk, or serious phase power imbalance.
Partial phase dropPartial loss of one phase, degraded connection, fuse/protection issue, or wiring/contact problem.
Near-total phase lossLoss of one phase, protection trip, fuse operation, or critical supply-side fault.
Unstable phase behaviourIntermittent phase connection, fluctuating supply conditions, unstable phase distribution, or phase power measurement instability.

Appendix A.2. Injection Parameters and Constraints

The following tables summarise the parameterisation used to generate the synthetic anomalies considered in the validation campaign.
Table A5. Charging consumption anomaly parameters.
Table A5. Charging consumption anomaly parameters.
Anomaly TypeDurationMedium SeverityHigh Severity
Power drop5–30 minMultiplicative factor: 0.50–0.70Multiplicative factor: 0.20–0.40
Power peak1–3 minPositive peak: 1.20–1.40; negative peak: 0.65–0.85Positive peak: 1.40–1.70; negative peak: 0.40–0.65
Unstable charging5–20 minMultiplicative noise with σ = 0.10Multiplicative noise with σ = 0.18
Progressive drift15–60 minLinear transition towards a medium-severity final drop or spike factorLinear transition towards a high-severity final drop or spike factor
Electrical inconsistency3–15 minInconsistent modification of power factor, active power or apparent power using medium-severity rangesInconsistent modification of power factor, active power or apparent power using high-severity ranges
Table A6. Non-charging consumption anomaly parameters.
Table A6. Non-charging consumption anomaly parameters.
Anomaly TypeDurationMedium SeverityHigh Severity
Residual consumption10–120 min80–250 W250–600 W
Standby peak1–4 min200–500 W500–1000 W
Unregistered charging activity5–60 min5–10 kW15–30 kW
Frozen sensor values10–60 minTwo electrical variables frozenAll available electrical variables frozen
Non-charging-consumption anomalies were injected only within complete standby windows. For residual consumption, standby peaks and unregistered charging activity, the related electrical variables were updated consistently, including apparent power, reactive power, power factor and phase powers.
Table A7. Efficiency anomaly parameters.
Table A7. Efficiency anomaly parameters.
Anomaly TypeDurationMedium SeverityHigh Severity
Punctual efficiency drop1–5 minTarget efficiency: 85–92%Target efficiency: 70–85%
Progressive degradation10–60 minFinal target efficiency: 88–93%Final target efficiency: 75–88%
Sustained low efficiency5–45 minTarget efficiency: 85–92%Target efficiency: 70–85%
Unstable efficiency5–30 minOscillation amplitude: 3–6 percentage pointsOscillation amplitude: 6–12 percentage points
Implausible efficiency1–5 minHigh values: 110–130%; low values: 50–75%High values: 130–180%; low values: 0–50%
Efficiency anomalies were injected only in valid and stable charging windows. Candidate windows required original efficiency values between 80% and 110%, a maximum local standard deviation of 0.6 percentage points and a maximum local range of 2.0 percentage points within a five-sample context. A minimum separation of 10 samples from previous synthetic events was imposed.
Table A8. Phase imbalance anomaly parameters.
Table A8. Phase imbalance anomaly parameters.
Anomaly TypeDurationMedium SeverityHigh Severity
Moderate imbalance5–30 minAffected phase factor: 0.80–0.90Affected phase factor: 0.70–0.80
Strong imbalance5–45 minAffected phase factor: 0.50–0.70Affected phase factor: 0.30–0.50
Partial phase drop3–20 minAffected phase factor: 0.50–0.75Affected phase factor: 0.20–0.50
Near-total phase loss1–15 minAffected phase factor: 0.02–0.15Affected phase factor: 0.02–0.15
Unstable phase behaviour5–30 minOscillation amplitude: 8–15%Oscillation amplitude: 15–30%
Phase imbalance anomalies were generated by modifying one randomly selected phase and then recalculating the imbalance indicator from the modified phase powers. Candidate windows required finite phase power values and an absolute mean phase power of at least 100 W, avoiding windows where the imbalance calculation could be dominated by division by very small values.

References

  1. Global EV Outlook 2026—Analysis. Available online: https://www.iea.org/reports/global-ev-outlook-2026 (accessed on 22 May 2026).
  2. Ziyat, I.; Gola, A.; Palmer, P.R.; Makonin, S.; Popowich, F. EV Charging Profiles and Waveforms Dataset (EV-CPW) and Associated Power Quality Analysis. IEEE Access 2023, 11, 138445–138456. [Google Scholar] [CrossRef] [Scilit]
  3. Zonta, T.; da Costa, C.A.; da Rosa Righi, R.; de Lima, M.J.; da Trindade, E.S.; Li, G.P. Predictive Maintenance in the Industry 4.0: A Systematic Literature Review. Comput. Ind. Eng. 2020, 150, 106889. [Google Scholar] [CrossRef] [Scilit]
  4. Hamdi Alaoui, A.; Meddaoui, A.; Hain, M. AI-Driven Predictive Maintenance for Industry 4.0: A Systematic Review of Models, Methods, and Challenges. Int. J. Adv. Manuf. Technol. 2026, 143, 4861–4876. [Google Scholar] [CrossRef] [Scilit]
  5. Chandola, V.; Banerjee, A.; Kumar, V. Anomaly Detection: A Survey. ACM Comput. Surv. 2009, 41, 15:1–15:58. [Google Scholar] [CrossRef] [Scilit]
  6. Derse, C.; Chakraborty, S.; Hegazy, O. Recent Techniques Used for Anomaly Detection in the Automotive Sector: A Comprehensive Survey. Appl. Sci. 2026, 16, 2584. [Google Scholar] [CrossRef] [Scilit]
  7. Murshed, I.; Islam, F.; Sadman Anjum Joarder, M.; Mominul Islam, M.; Yousup Ali, M.; Ahshan, R. Operational Anomaly Detection in EV Charging Systems Using Multi-Parameter Data Analysis. IEEE Access 2026, 14, 2552–2565. [Google Scholar] [CrossRef] [Scilit]
  8. Kern, D.; Krauß, C.; Hollick, M. Detection of Anomalies in Electric Vehicle Charging Sessions. In Proceedings of the 39th Annual Computer Security Applications Conference; Association for Computing Machinery: New York, NY, USA, 2023; pp. 298–309. [Google Scholar] [CrossRef] [Scilit]
  9. Matrone, S.; Ogliari, E.; Leva, S.; Devalle, F.; Vitti, F.; Gilberto, G. Clustering Based Method Anomaly Definition in Electric Vehicles Charging Curves. In Proceedings of the 2023 IEEE International Conference on Environment and Electrical Engineering and 2023 IEEE Industrial and Commercial Power Systems Europe (EEEIC/I&CPS Europe), Madrid, Spain, 6–9 June 2023; pp. 1–6. [Google Scholar] [CrossRef] [Scilit]
  10. Cederle, M.; Mazzucco, A.; Demartini, A.; Mazza, E.; Suriani, E.; Vitti, F.; Susto, G.A. Explainable Anomaly Detection for Electric Vehicles Charging Stations⁎. IFAC-PapersOnLine 2025, 59, 301–304. [Google Scholar] [CrossRef] [Scilit]
  11. Liu, Z.; Li, L.; Ding, X.; Wang, X.; Liu, Z.; Wang, Y.; Hu, C. Anomaly Detection for Real-World Electric Vehicle Charging Data Using a Convolutional Autoencoder with Multiscale Convolution, Attention Mechanism, and BiLSTM. Energy 2025, 337, 138617. [Google Scholar] [CrossRef] [Scilit]
  12. Hussain, A.; Yadav, A.; Ravikumar, G. Anomaly Detection Using Bi-Directional Long Short-Term Memory Networks for Cyber-Physical Electric Vehicle Charging Stations. IEEE Trans. Ind. Cyber-Phys. Syst. 2024, 2, 508–518. [Google Scholar] [CrossRef] [Scilit]
  13. Sakwa, M.; Nespoli, A.; Matrone, S.; Leva, S.; Guerini, A.; Demartini, A.; Ogliari, E. Electric Vehicle Supply Equipment Monitoring and Early Fault Detection through Autoencoders. Sustain. Energy Grids Netw. 2024, 40, 101497. [Google Scholar] [CrossRef] [Scilit]
  14. Pei, F.; Zou, W. A Deep Learning Method for Electric Vehicle Charging Anomaly Detection Based on Transformer. In Advances in Information, Computing and Technology; Springer: Cham, Switzerland, 2026; pp. 87–96. [Google Scholar] [CrossRef] [Scilit]
  15. Mavikumbure, H.S.; Cobilean, V.; Wickramasinghe, C.S.; Phillips, T.; Varghese, B.J.; Carlson, B.; Rieger, C.; Pennington, T.; Manic, M. Physical Anomaly Detection in EV Charging Stations: Physics-Based vs. ResNet AE. In Proceedings of the 2023 IEEE 32nd International Symposium on Industrial Electronics (ISIE), Helsinki, Finland, 19–21 June 2023; pp. 1–7. [Google Scholar] [CrossRef] [Scilit]
  16. Feng, Q.; Li, H.; Zhou, Y.; Feng, D.; Wang, Y.; Su, Y. Review of Electric Vehicles’ Charging Data Anomaly Detection Based on Deep Learning. In Proceedings of the 2022 Power System and Green Energy Conference (PSGEC), Shanghai, China, 25–27 August 2022; pp. 337–341. [Google Scholar] [CrossRef] [Scilit]
  17. C, B.K.; Hilal, A.; Thapa, P. Anomaly Detection in Electric Vehicle Charging Stations Using Federated Learning. arXiv 2025, arXiv:2509.18126. [Google Scholar] [CrossRef] [Scilit]
  18. Makhmudov, F.; Kilichev, D.; Giyosov, U.; Akhmedov, F. Online Machine Learning for Intrusion Detection in Electric Vehicle Charging Systems. Mathematics 2025, 13, 712. [Google Scholar] [CrossRef] [Scilit]
  19. Smart Mobility Lab. Available online: https://www.ite.es/planta-piloto/smart-mobility-lab/ (accessed on 26 May 2026).
  20. NBw30|Power Electronics. Available online: https://power-electronics.com (accessed on 22 May 2026).
  21. Breunig, M.M.; Kriegel, H.-P.; Ng, R.T.; Sander, J. LOF: Identifying Density-Based Local Outliers. In Proceedings of the 2000 ACM SIGMOD International Conference on Management of Data; Association for Computing Machinery: New York, NY, USA, 2000; pp. 93–104. [Google Scholar] [CrossRef] [Scilit]
  22. LocalOutlierFactor. Available online: https://scikit-learn.org/stable/modules/generated/sklearn.neighbors.LocalOutlierFactor.html (accessed on 1 June 2026).
  23. Liu, F.T.; Ting, K.M.; Zhou, Z.-H. Isolation Forest. In Proceedings of the Eighth IEEE International Conference on Data Mining, Pisa, Italy, 15–19 December 2008; pp. 413–422. [Google Scholar] [CrossRef] [Scilit]
  24. IsolationForest. Available online: https://scikit-learn.org/stable/modules/generated/sklearn.ensemble.IsolationForest.html (accessed on 1 June 2026).
Figure 1. Schematic representation of the DC fast-charging installation and measurement points (grid-side analyser and charger side) used in the dataset. L1–L3 denote the three phases of the three-phase electrical connection.
Figure 1. Schematic representation of the DC fast-charging installation and measurement points (grid-side analyser and charger side) used in the dataset. L1–L3 denote the three phases of the three-phase electrical connection.
Applsci 16 07052 g001
Figure 2. Overview of the proposed anomaly detection and validation pipeline. Operational data are preprocessed and segmented into task-specific datasets for charging consumption, non-charging consumption, efficiency deviation and phase imbalance analysis. Unsupervised models are applied to each task, and validation is performed by injecting synthetic anomalies into the test set.
Figure 2. Overview of the proposed anomaly detection and validation pipeline. Operational data are preprocessed and segmented into task-specific datasets for charging consumption, non-charging consumption, efficiency deviation and phase imbalance analysis. Unsupervised models are applied to each task, and validation is performed by injecting synthetic anomalies into the test set.
Applsci 16 07052 g002
Figure 3. Charging consumption anomalies. (a) Power peak; (b) power drop; (c) unstable charging; (d) power drift.
Figure 3. Charging consumption anomalies. (a) Power peak; (b) power drop; (c) unstable charging; (d) power drift.
Applsci 16 07052 g003
Figure 4. Non-charging consumption anomalies. (a) Unregistered charging; (b) standby peak; (c) residual consumption; (d) frozen sensor.
Figure 4. Non-charging consumption anomalies. (a) Unregistered charging; (b) standby peak; (c) residual consumption; (d) frozen sensor.
Applsci 16 07052 g004
Figure 5. Efficiency deviation anomalies. (a) Sustained low efficiency; (b) punctual efficiency drop; (c) progressive efficiency degradation; (d) unstable efficiency.
Figure 5. Efficiency deviation anomalies. (a) Sustained low efficiency; (b) punctual efficiency drop; (c) progressive efficiency degradation; (d) unstable efficiency.
Applsci 16 07052 g005
Figure 6. Phase imbalance anomalies. (a) Moderate phase imbalance; (b) unstable phase behaviour; (c) severe phase imbalance; (d) partial phase drop.
Figure 6. Phase imbalance anomalies. (a) Moderate phase imbalance; (b) unstable phase behaviour; (c) severe phase imbalance; (d) partial phase drop.
Applsci 16 07052 g006
Table 1. Variables included in the dataset.
Table 1. Variables included in the dataset.
VariableDescriptionSource
Active powerTotal active power consumed by the DC chargerGrid-side analyser
Reactive powerTotal reactive power associated with charger operationGrid-side analyser
Apparent powerTotal apparent powerGrid-side analyser
Power factorRatio between active and apparent powerGrid-side analyser
Phase active power L1Active power measured in phase L1Grid-side analyser
Phase active power L2Active power measured in phase L2Grid-side analyser
Phase active power L3Active power measured in phase L3Grid-side analyser
Charger-side active powerActive power reported by the charging stationCharging management system
Table 2. Anomaly families simulated for validation of each detection task. Synthetic anomaly groups and associated plausible operational issues.
Table 2. Anomaly families simulated for validation of each detection task. Synthetic anomaly groups and associated plausible operational issues.
Detection TaskSynthetic Anomaly GroupsPlausible Operational Issues
Charging consumptionPower drops, peaks, unstable charging, progressive drift, electrical inconsistencyPower derating, transient control instability, charging interruption, abnormal regulation, or measurement or data acquisition inconsistencies
Non-charging consumptionResidual consumption, standby peaks, unregistered charging activity, frozen sensor valuesAbnormal auxiliary consumption, parasitic standby load, unrecorded charging event, transaction logging failure, sensor freeze or communication loss
Efficiency deviationPunctual drop, progressive degradation, sustained low efficiency, unstable or implausible efficiencyIncreased losses, degraded power conversion behaviour, cooling-related limitations, timestamp mismatch, measurement drift or communication artefacts
Phase imbalanceModerate/severe imbalance, partial phase drop, near-total phase loss, unstable phase behaviourSupply-side asymmetry, degraded phase connection, fuse/protection issue, intermittent phase fault or abnormal phase power distribution
Table 3. Charging consumption anomaly detection results.
Table 3. Charging consumption anomaly detection results.
Anomaly FamilySeverityLOF F1-ScoreIF F1-ScoreLOF PR-AUCIF PR-AUCLOF Recall-AnyIF Recall-Any
P-S-PF inconsistencyMedium0.10 ± 0.140.54 ± 0.160.46 ± 0.130.64 ± 0.080.08 ± 0.110.64 ± 0.16
P-S-PF inconsistencyStrong0.74 ± 0.090.59 ± 0.130.68 ± 0.080.65 ± 0.080.91 ± 0.100.69 ± 0.18
Power driftMedium0.14 ± 0.100.05 ± 0.080.43 ± 0.080.27 ± 0.050.72 ± 0.420.22 ± 0.24
Power driftStrong0.47 ± 0.140.23 ± 0.150.67 ± 0.070.37 ± 0.080.95 ± 0.160.77 ± 0.34
Power dropMedium0.47 ± 0.190.12 ± 0.150.63 ± 0.130.32 ± 0.080.58 ± 0.280.23 ± 0.23
Power dropStrong0.89 ± 0.050.47 ± 0.230.98 ± 0.040.52 ± 0.151.00 ± 0.000.41 ± 0.22
Power peakMedium0.25 ± 0.070.31 ± 0.080.45 ± 0.050.43 ± 0.050.26 ± 0.080.32 ± 0.09
Power peakStrong0.57 ± 0.040.49 ± 0.060.70 ± 0.040.47 ± 0.040.80 ± 0.050.54 ± 0.06
Unstable chargingMedium0.11 ± 0.020.11 ± 0.050.31 ± 0.030.30 ± 0.070.56 ± 0.140.33 ± 0.11
Unstable chargingStrong0.17 ± 0.050.19 ± 0.070.37 ± 0.030.32 ± 0.080.65 ± 0.180.48 ± 0.16
Table 4. Non-charging consumption anomaly detection results.
Table 4. Non-charging consumption anomaly detection results.
Anomaly FamilySeverityLOF F1-ScoreIF F1-ScoreLOF PR-AUCIF PR-AUCLOF Recall-AnyIF Recall-Any
Frozen sensorMedium0.02 ± 0.020.00 ± 0.000.03 ± 0.060.01 ± 0.010.70 ± 0.270.00 ± 0.00
Frozen sensorStrong0.00 ± 0.010.00 ± 0.000.00 ± 0.000.00 ± 0.000.05 ± 0.160.00 ± 0.00
Residual consumptionMedium0.09 ± 0.020.99 ± 0.001.00 ± 0.001.00 ± 0.001.00 ± 0.001.00 ± 0.00
Residual consumptionStrong0.09 ± 0.020.99 ± 0.001.00 ± 0.001.00 ± 0.001.00 ± 0.001.00 ± 0.00
Standby peakMedium0.05 ± 0.000.56 ± 0.061.00 ± 0.000.97 ± 0.001.00 ± 0.001.00 ± 0.00
Standby peakStrong0.05 ± 0.000.56 ± 0.061.00 ± 0.000.97 ± 0.001.00 ± 0.001.00 ± 0.00
Unregistered chargingMedium0.07 ± 0.010.99 ± 0.001.00 ± 0.001.00 ± 0.001.00 ± 0.001.00 ± 0.00
Unregistered chargingStrong0.07 ± 0.010.99 ± 0.001.00 ± 0.001.00 ± 0.001.00 ± 0.001.00 ± 0.00
Table 5. Efficiency deviation detection results.
Table 5. Efficiency deviation detection results.
Anomaly FamilySeverityLOF F1-ScoreIF F1-ScoreLOF PR-AUCIF PR-AUCLOF Recall-AnyIF Recall-Any
Physically implausible efficiencyMedium0.73 ± 0.040.53 ± 0.061.00 ± 0.000.70 ± 0.321.00 ± 0.001.00 ± 0.00
Physically implausible efficiencyStrong0.73 ± 0.040.53 ± 0.061.00 ± 0.000.70 ± 0.321.00 ± 0.001.00 ± 0.00
Progressive efficiency degradationMedium0.52 ± 0.190.61 ± 0.130.56 ± 0.160.59 ± 0.171.00 ± 0.001.00 ± 0.00
Progressive efficiency degradationStrong0.81 ± 0.060.80 ± 0.060.83 ± 0.070.85 ± 0.071.00 ± 0.001.00 ± 0.00
Punctual efficiency dropMedium0.54 ± 0.150.43 ± 0.140.53 ± 0.290.50 ± 0.271.00 ± 0.001.00 ± 0.00
Punctual efficiency dropStrong0.73 ± 0.040.53 ± 0.060.93 ± 0.080.91 ± 0.101.00 ± 0.001.00 ± 0.00
Sustained low efficiencyMedium0.95 ± 0.010.90 ± 0.020.96 ± 0.060.96 ± 0.061.00 ± 0.001.00 ± 0.00
Sustained low efficiencyStrong0.95 ± 0.010.90 ± 0.021.00 ± 0.001.00 ± 0.001.00 ± 0.001.00 ± 0.00
Unstable efficiencyMedium0.25 ± 0.120.44 ± 0.140.27 ± 0.130.38 ± 0.111.00 ± 0.001.00 ± 0.00
Unstable efficiencyStrong0.66 ± 0.110.70 ± 0.070.68 ± 0.110.70 ± 0.081.00 ± 0.001.00 ± 0.00
Table 6. Phase imbalance anomaly detection results.
Table 6. Phase imbalance anomaly detection results.
Anomaly FamilySeverityLOF F1-ScoreIF F1-ScoreLOF PR-AUCIF PR-AUCLOF Recall-AnyIF Recall-Any
Moderate phase imbalanceMedium0.98 ± 0.010.98 ± 0.011.00 ± 0.001.00 ± 0.001.00 ± 0.001.00 ± 0.00
Moderate phase imbalanceStrong0.98 ± 0.010.98 ± 0.011.00 ± 0.001.00 ± 0.001.00 ± 0.001.00 ± 0.00
Near-total phase lossMedium0.96 ± 0.020.96 ± 0.021.00 ± 0.001.00 ± 0.001.00 ± 0.001.00 ± 0.00
Near-total phase lossStrong0.96 ± 0.020.96 ± 0.021.00 ± 0.001.00 ± 0.001.00 ± 0.001.00 ± 0.00
Partial phase dropMedium0.97 ± 0.020.97 ± 0.011.00 ± 0.001.00 ± 0.001.00 ± 0.001.00 ± 0.00
Partial phase dropStrong0.97 ± 0.020.97 ± 0.011.00 ± 0.001.00 ± 0.001.00 ± 0.001.00 ± 0.00
Severe phase imbalanceMedium0.99 ± 0.010.99 ± 0.011.00 ± 0.001.00 ± 0.001.00 ± 0.001.00 ± 0.00
Severe phase imbalanceStrong0.99 ± 0.010.99 ± 0.011.00 ± 0.001.00 ± 0.001.00 ± 0.001.00 ± 0.00
Unstable phase behaviourMedium0.66 ± 0.150.68 ± 0.150.62 ± 0.150.63 ± 0.161.00 ± 0.001.00 ± 0.00
Unstable phase behaviourStrong0.85 ± 0.060.86 ± 0.060.83 ± 0.080.83 ± 0.071.00 ± 0.001.00 ± 0.00
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

García-Garví, A.; Arroyo-Torres, B.; Tormo-Domènech, C. Predictive Maintenance of DC Fast-Charging Stations Using Unsupervised Anomaly Detection. Appl. Sci. 2026, 16, 7052. https://doi.org/10.3390/app16147052

AMA Style

García-Garví A, Arroyo-Torres B, Tormo-Domènech C. Predictive Maintenance of DC Fast-Charging Stations Using Unsupervised Anomaly Detection. Applied Sciences. 2026; 16(14):7052. https://doi.org/10.3390/app16147052

Chicago/Turabian Style

García-Garví, Antonio, Belén Arroyo-Torres, and Caterina Tormo-Domènech. 2026. "Predictive Maintenance of DC Fast-Charging Stations Using Unsupervised Anomaly Detection" Applied Sciences 16, no. 14: 7052. https://doi.org/10.3390/app16147052

APA Style

García-Garví, A., Arroyo-Torres, B., & Tormo-Domènech, C. (2026). Predictive Maintenance of DC Fast-Charging Stations Using Unsupervised Anomaly Detection. Applied Sciences, 16(14), 7052. https://doi.org/10.3390/app16147052

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop