Charging pile fault identification method integrating counterfactual causal debiasing and hyperbolic hierarchical relational modeling
Figures
Abstract
To address the problem that charging pile fault patterns under complex charging scenarios are easily affected by environmental disturbances, contextual bias, and class overlap, this study proposes a charging pile fault identification method that integrates counterfactual causal debiased representation learning with hyperbolic hierarchical relational modeling. The proposed method adopts a Transformer as the backbone encoder, suppresses spurious correlation interference through the joint modeling of an original branch and a counterfactual branch, and maps the fused features into hyperbolic space, where hierarchical relational reasoning and prototype discrimination are combined to enhance the representation capability of class structure. Experiments conducted on a dataset containing 397189 valid charging transaction samples show that the proposed method achieves an ACC of 0.8735, a Precision of 0.8678, a Recall of 0.8615, and an AUC of 0.9289, demonstrating overall performance superior to all ablation variants. Visualization and interpretability analyses further verify the robust fault representation capability and good decision rationality of the proposed method under environmental coupling conditions.
Citation: Sha J, Yang Y, Song M, Sun H, Sui G, Li H (2026) Charging pile fault identification method integrating counterfactual causal debiasing and hyperbolic hierarchical relational modeling. PLoS One 21(11): e0361600. https://doi.org/10.1371/journal.pone.0361600
Editor: Jinhao Liang, National University of Singapore, SINGAPORE
Received: October 11, 2026; Accepted: November 10, 2026; Published: November 30, 2026
Copyright: © 2026 Sha et al. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Data Availability: The dataset used in this study is publicly available on Figshare at https://doi.org/10.6084/m9.figshare.28182251.v3. The original dataset contains 441,077 electric vehicle charging transaction records collected from 13 charging stations in Jiaxing, China, over a two-year period. The dataset was published by Zhang et al. in *Scientific Data* (2025). The data used in this study were obtained from this publicly available resource and subsequently processed according to the data preprocessing procedures described in this paper.
Funding: This work was supported by Dalian University of Science and Technology under Grant No. KY25006-ZX (Research on Site Selection Methods and Systems for Shared Car Stations Based on Environmental Factors). The funder had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.
Competing interests: The authors have declared that no competing interests exist.
1 Introduction
With the rapid development of the new energy vehicle industry and the continuous expansion of urban charging infrastructure construction, charging piles have become important infrastructure supporting efficient energy replenishment for electric vehicles and the operation of green transportation systems [1]. During long term operation, charging piles are jointly affected by multiple factors, including equipment state fluctuations, differences in user behavior, changes in environmental conditions, and disturbances in scenario load [2,3]. Once abnormal interruptions, system faults, or operational instability occur, they may not only reduce charging service quality and operational efficiency, but also further lead to intensified equipment wear, imbalanced resource scheduling, and deteriorated user experience. Therefore, conducting high accuracy and high robustness charging pile fault identification research under complex operating scenarios is of great theoretical significance and practical value for improving the intelligent operation and maintenance level of charging facilities, ensuring the safe and stable operation of charging networks, and promoting the high quality development of smart energy infrastructure [4].
Although existing fault identification methods can to some extent utilize charging transaction information, temporal attributes, location features, and environmental factors to complete anomaly discrimination, they still generally suffer from several limitations [5]. First, many methods mainly rely on superficial statistical correlations for discrimination and are prone to mistakenly treating contextual information that co occurs with fault labels but lacks stable mechanistic relevance as valid evidence, thereby leading to performance degradation under scenario changes, environmental disturbances, or distribution shifts. Second, the formation of charging pile faults often exhibits significant multifactor coupling characteristics, and complex relationships exist among different environmental variables, operating states, and behavioral patterns. Conventional feature modeling in Euclidean space alone is insufficient to fully characterize the hierarchical structure and latent dependencies of such faults [6]. Third, existing methods are inadequate in organizing the differences among fault patterns under complex scenarios, which easily causes overlap between normal samples and fault samples in the representation space and further affects category boundary learning and discrimination stability. Fourth, in real world operation and maintenance scenarios, the model is required not only to possess strong identification capability, but also to reveal relatively reasonable decision evidence from environmental conditions, operational behaviors, and scenario characteristics, whereas existing studies still need further improvement in the unified modeling of robustness and interpretability.
To address the above issues, this study constructs a unified identification framework that integrates causal debiased representation learning and hyperbolic hierarchical relational modeling for the charging pile fault identification task under complex charging scenarios. The method first employs a Transformer backbone network as the basic feature extractor to jointly model local patterns and global contextual dependencies in multisource charging data. It then builds an original branch and a counterfactual branch in parallel, and performs intervention and contrastive constraints on contextual factors while maintaining the relative stability of core fault semantics, thereby weakening the excessive dependence of the model on scene biased information and enhancing the robustness of fault representations. On this basis, the fused features are further mapped into hyperbolic space, where hierarchical relational reasoning and prototype discrimination mechanisms are introduced to characterize the multilevel structural associations and class organization patterns among samples, thereby improving the separability between normal states and fault states under complex scenarios. Through the above design, the model can simultaneously take into account contextual disturbance suppression, hierarchical structure representation, and fault discrimination enhancement within a unified framework, thus providing a more stable and structurally expressive solution for charging pile fault identification.
The main contributions of this study are as follows.
- A counterfactual intervention guided causal debiased representation learning mechanism is constructed for charging pile fault identification to address the problem that fault recognition under complex charging scenarios is easily disturbed by contextual bias, thereby enhancing the robustness of the model to environmental disturbances and scene bias at the representation level.
- A hierarchical relational reasoning and prototype discrimination method in hyperbolic manifold space is introduced to address the difficulty of sufficiently characterizing the hierarchical dependencies and structural associations among fault patterns, thereby improving the modeling capability of the model for complex category structures and potential fault relationships.
- A unified fault identification framework integrating multisource feature extraction, causally robust representation learning, and hyperbolic structural modeling is designed, enabling the model to jointly exploit charging behavior information, temporal context, location information, and environmental factors for more stable fault discrimination.
- Oriented toward the intelligent operation and maintenance requirements of charging piles, this study investigates the association relationships among environmental conditions, operating states, and fault patterns, thereby providing technical support with practical application potential for fault identification, risk analysis, and auxiliary decision making of charging facilities under complex scenarios.
2 Related work
2.1 Causal representation learning for robust fault diagnosis
Causal representation learning has gradually become an important research direction for improving the robustness and generalization ability of fault diagnosis models in recent years. Traditional data driven methods usually rely on statistical correlations for discrimination [7]. Although they can achieve high accuracy in closed test environments, their performance often degrades under working condition changes, equipment transfer, and scenario distribution shifts. The fundamental reason is that the models may excessively exploit superficial features that co occur with fault labels rather than capture stable causal factors. To address this issue, Jia et al. [8] enhanced domain generalization in cross machine fault diagnosis through deep causal factor decomposition. Jia et al. [9] further suppressed confounding interference in time series signals from the perspective of causal disentanglement. Guo et al. [10] improved the robustness of rotating machinery fault identification by incorporating causal explanation mechanisms. Meanwhile, Ma et al. [11], Jiang et al. [12], and Liu et al. [13] advanced this direction from the perspectives of multi source domain generalization, the integration of causal representation and domain adaptation, and causal feature identification, respectively, demonstrating that causal modeling can effectively alleviate the problem of spurious correlation dependence under complex operating conditions. In related research, Xu et al. [14] developed a cross-sensor self-contrastive learning framework for nondestructive fault detection of heavy locomotive motors under label-scarce conditions. This approach emphasizes cross-sensor representation learning and reduced dependence on labeled samples, representing a complementary learning strategy to causal representation modeling.
In addition to causal representation learning, counterfactual inference and causal intervention have also been gradually introduced into intelligent fault diagnosis tasks to enhance model resistance to unstable contextual perturbations. Liu et al. [15] combined causal intervention with graph neural networks for fault diagnosis in complex industrial processes. Barraza et al. [16] improved the interpretability of diagnostic results through a sparse counterfactual generation network. Liu et al. [17] further verified the effectiveness of counterfactual inference in fault identification for fermentation processes. Furthermore, Zhang et al. [18] integrated causal inference with graph structure modeling to achieve fault diagnosis with stronger generalization ability in industrial Internet of Things scenarios. From another perspective, Xu et al. [19] proposed a multi-source data three-level fusion strategy for ship motor fault diagnosis, illustrating the role of complementary information from multiple data sources in equipment fault identification. Such fusion-oriented approaches primarily address cross-source information integration, whereas counterfactual causal modeling focuses on the effects of contextual interventions on learned representations. Overall, existing studies have demonstrated that causal learning can, to a certain extent, weaken the adverse effects of spurious correlation factors. However, most current methods are still mainly oriented toward mechanical equipment or industrial process scenarios. For charging fault identification tasks characterized by strong contextual coupling, high order relational dependence, and complex environmental bias features, there is still a lack of a more unified causal robust modeling framework with hierarchical representation capability.
2.2 Hyperbolic manifold learning for hierarchical relational modeling
Hyperbolic manifold learning has attracted extensive attention in recent years for hierarchical relation modeling tasks. The core reason lies in the fact that hyperbolic space can characterize tree like expansion structures, hierarchical semantic dependencies, and the topological organization patterns that gradually unfold from local to global in complex relational networks with lower distortion. Compared with Euclidean space, hyperbolic geometry exhibits stronger suitability for representing multi level entity associations, high order semantic propagation, and nonuniform neighborhood expansion. As a result, it has been gradually introduced into tasks such as knowledge graph reasoning, graph representation learning, and complex structure modeling. Yan et al. [20] applied hyperbolic embeddings to hyper relational link prediction and demonstrated the advantage of hyperbolic space for high order relation representation. Wang et al. [21] and Lu et al. [22] further combined graph attention mechanisms with deep hyperbolic convolution to model complex knowledge relations. Zhu et al. [23] and Fang et al. [24] respectively enhanced multi hop semantic association modeling from the perspectives of event centered hierarchical reasoning and gated hierarchical hyperbolic embedding. In addition, Jin et al. [25] proposed a physics-informed hypergraph wavelet attention network for bearing remaining useful life prediction, incorporating physical information and hypergraph-based structural representation into equipment prognostics. This provides a complementary perspective on physics-informed structural modeling, which differs from the geometric representation of hierarchical relationships in hyperbolic manifolds. These studies collectively indicate that hyperbolic manifolds provide a more natural geometric carrier for hierarchical relation representation than traditional flat spaces.
With the development of hyperbolic representation learning, related studies have gradually extended from pure geometric embedding to task oriented structural reasoning and relation organization modeling. Xia et al. [26] transformed fault tree structures into fault graphs and combined them with embedding learning to achieve fault isolation for complex equipment, showing that hierarchical relation modeling has practical value in fault scenarios. Wu et al. [27] integrated hyperbolic graph convolution with contrastive learning for automatic encoding tasks with evident label hierarchy structures. Hu et al. [28] further verified the effectiveness of hyperbolic collaborative knowledge graph learning in complex heterogeneous interaction relationships. Meanwhile, the surveys by Chen et al. [29] and Wang et al. [30] systematically summarized the latest progress of hyperbolic graph representation learning in terms of method design, application expansion, and theoretical challenges. Jin et al. [31] further developed a dual correlation graph knowledge distillation network for bearing prognostics, emphasizing relational information extraction and knowledge transfer in equipment condition modeling. This graph-based prognostic approach provides another structural modeling perspective, while hyperbolic manifold learning specifically focuses on the geometric organization of hierarchical representations. Overall, existing hyperbolic manifold methods have demonstrated significant advantages in hierarchical structure representation and complex relation reasoning. However, for charging fault identification tasks that simultaneously involve event contextual coupling, entity interaction dependency, and hierarchical risk propagation characteristics, there is still a lack of a hyperbolic hierarchical modeling framework that is closely integrated with specific fault semantics and scenario relations.
3 Method
3.1 Instructions for using AI tools
GPT-6.1 was used solely for language polishing to improve grammatical accuracy, clarity, and readability of the manuscript. No AI tools were used for research design, data collection, data analysis, experimental implementation, result generation, figure preparation, or scientific interpretation. All research activities and scientific conclusions were conducted and verified by the authors, who take full responsibility for the content of this manuscript.
3.2 Overall model architecture
Overall, the proposed model constructs a unified identification framework around the main pipeline of feature embedding, causal robustness enhancement, manifold relation modeling, and classification discrimination. First, each input sample is organized as a structured feature vector composed of charging behavior attributes, temporal context, location information, and environmental variables. These heterogeneous attributes are projected into a high dimensional latent feature space through linear embedding, and are then fed into a backbone encoder composed of multiple Transformer Blocks to progressively model inter feature interactions and global contextual dependencies. The overall architecture of the model is illustrated in Fig 1.
For an input sample x, its initial embedding representation can be written as
(1)where denotes the linear embedding mapping from the structured input feature vector to the latent representation space, denotes the lth Transformer encoding unit, and denotes the high level semantic representation output by the backbone network. Different from patch based visual token construction, the present formulation directly operates on structured charging transaction features, enabling the encoder to capture complex associations among behavioral variables, temporal attributes, environmental conditions, and scene related information. To further improve the adaptability of the representation to complex contextual perturbations, the model simultaneously constructs an original feature stream and a counterfactual feature stream. Under the premise of preserving the core fault semantics, part of the contextual factors are replaced or recombined, thereby forming a robust dual branch representation basis.
On this basis, the high level representations produced by the original branch and the counterfactual branch are projected through linear mappings and then sent to the fusion module to achieve the joint aggregation of stable fault semantics and contextual relational information. Subsequently, the fused features are mapped into the hyperbolic manifold space to characterize the latent hierarchical geometric structure and complex relational dependencies among sample classes, and the final category discrimination is then completed. The overall process can be formally expressed as
(2)where and denote the high level outputs of the original branch and the counterfactual branch, respectively, denotes the feature fusion operation, denotes the mapping from the tangent space to the hyperbolic space with curvature c, u denotes the hierarchical relational representation in the hyperbolic manifold, and denotes the final prediction result. Through the above design, the model can simultaneously take into account structured feature interaction modeling, contextual perturbation suppression, and hierarchical relation representation capability within a unified framework, thereby providing a consistent structural foundation for subsequent causal robust representation learning and hyperbolic manifold relation modeling.
3.3 Counterfactual Intervention guided causal debiasing representation learning
Based on the overall architecture described in the previous subsection, in order to reduce the spurious correlation bias introduced by contextual variables such as regional attributes, temporal conditions, environmental states, and behavioral patterns, a counterfactual intervention guided causal debiasing representation learning module is constructed after the backbone encoder in this work. The architecture of this module is shown in Fig 2.
This module is built upon a shared parameter backbone network and performs parallel encoding for the original input and the context intervened input. Under the premise of preserving the core fault semantics unchanged, it encourages the model to learn discriminative features that are more stable against contextual perturbations.
To formalize the contextual intervention, the charging transaction variables are represented by a structural causal model (SCM) , in which each endogenous variable is generated by a structural equation . Here, denotes the direct causes of , and denotes its exogenous disturbance. The candidate intervention variables include location information, temporal attributes (such as payment, order, and start-time descriptors and weekday encodings), meteorological attributes (such as temperature, relative humidity, and precipitation, together with their external weather descriptors), and time-of-use price context. The intervention set C is selected from these candidates according to the assumed causal graph. Variables with a directed causal path to the fault-state target Y, as well as variables directly encoding the fault outcome, are excluded from direct intervention. Post-transaction variables, including charging duration, final energy consumption, and transaction costs, are not independently modified; when they are downstream of an intervention, they are regenerated through their corresponding structural equations. For each eligible contextual variable, intervention is performed independently with probability , where denotes the intervention ratio. The replacement value is sampled from the conditional empirical distribution , estimated using the training data. Continuous variables are sampled within their observed valid ranges, while categorical variables are sampled according to their conditional empirical frequencies.
Here, is the exogenous background inferred from the original sample through the abduction step, where is the number of endogenous variables. denotes the parent values of in the counterfactual sample, and is the intervention value sampled from the corresponding conditional reference distribution for . The intervention ratio controls the probability of selecting each eligible contextual variable. Ptrain denotes the conditional empirical reference distribution estimated exclusively from the training data. denotes the recursive evaluation of the original structural equations in topological order after the variables in C are fixed to . The inferred exogenous background is kept identical between the factual and counterfactual samples, while all non-intervened variables are regenerated according to the dependencies encoded by G. Generated samples are retained only when their values satisfy the predefined variable ranges, categorical constraints, and structural consistency requirements. The fault-state label is preserved according to the assumed causal graph, under which the eligible intervention variables do not causally determine the target Y. Unlike unconstrained random perturbations or conventional feature augmentation, this procedure uses conditional reference distributions and preserves the inferred exogenous background during structural regeneration.
Let the input sample be denoted by x, and let its context intervention result be denoted by . Then, the original branch and the counterfactual branch can be written as
(3)(4)where denotes the shared backbone encoder that is consistent with the overall architecture, including the aforementioned Transformer based feature extraction and linear projection process. denotes the high level semantic representation of the original sample, and denotes the high level semantic representation of the counterfactual sample. Accordingly, is generated through abduction, intervention, and prediction rather than arbitrary feature perturbation. The inferred exogenous background is held fixed, the selected contextual variables are assigned the intervention value , and all remaining endogenous variables are updated through the original structural equations. Since the intervention set excludes variables with directed causal paths to the fault-state target, the original fault label is preserved under the specified SCM assumptions. The two branches therefore represent the same charging event under different contextual conditions, providing the basis for the subsequent representation invariance constraint.
To further extract stable discriminative information from the dual branch outputs, the two high level semantic representations are mapped into a unified causal representation space, forming the original causal representation and the counterfactual causal representation shown in the figure. Specifically, the backbone features are first compressed into a unified representation domain through shared projection mappings, and then fused with context compensation terms within their respective branches to enhance the focus on core fault semantics. The process is expressed as
(5)(6)where and are the linear projection matrices of the two branches, and are the bias terms, and denotes the nonlinear mapping function. denotes the causal candidate representation under the original observational condition, and denotes the causal candidate representation under the counterfactual intervention condition. Since both of them are derived from the shared backbone and point to the same fault essence, ideally these two representations should remain consistent in their stable discriminative components, while changes related to scenario bias should be suppressed within a small range. Compared with directly performing classification using only a single pathway, this dual branch design enables the model to no longer rely solely on statistical cooccurrence patterns formed by a specific region, a specific time period, or a specific external condition, but instead to extract fault semantic factors that remain consistent under both factual and counterfactual conditions.
After obtaining and , an invariance constraint is introduced to measure the stability between the two representations, and they are further jointly fused to generate debiased features for subsequent hyperbolic manifold based hierarchical relation modeling. The core idea is that if a feature changes only slightly between the original sample and the counterfactual sample, then this feature is more likely to correspond to a stable predictive representation under the specified contextual interventions. Conversely, if a feature is highly sensitive to contextual intervention, then it is more likely to belong to nonrobust biased information. Based on this, the representation invariance metric and the fused representation are defined as
(7)(8)where Linv denotes the Euclidean distance constraint between the original causal representation and the counterfactual causal representation, which is used to characterize the degree of consistency between the two branches in the stable semantic space. denotes the fused causal debiasing representation, and is the branch weighting coefficient used to balance the contributions of original observational information and counterfactual robust information. The resulting is then used as the input to the subsequent hyperbolic manifold mapping and hierarchical relation reasoning module, enabling the whole model to form a continuous processing chain from backbone encoding to counterfactual debiasing and then to hierarchical relation organization within the overall architecture. The significance of this process lies in the fact that, by explicitly constructing factual and counterfactual comparisons and constraining their stable representations, the model can reduce the sensitivity of learned representations to selected contextual variations, thereby improving the generalization ability and robustness of fault identification under complex scenarios.
3.4 Hyperbolic hierarchical relational reasoning in manifold space
After obtaining the causal debiased representation in the previous subsection, a hyperbolic hierarchical relational reasoning module is constructed in manifold space to model the latent relationships among charging samples. Although the fault identification task is formulated as a binary classification problem, the hierarchy considered here describes the organization of sample representations at three related levels. At the instance level, each original sample is associated with its counterfactual representation; at the neighborhood level, sample embeddings are connected according to their relational distances; and at the class level, prototype centers summarize the representations of normal and fault-related charging events. These levels capture cross-context representation correspondence, local sample similarity, and class-level discrimination, respectively. The fused debiased representation is mapped into a hyperbolic space with curvature to model these relationships under potentially nonuniform neighborhood distributions. An example of feature interaction is illustrated in Fig 3.
Let the fused feature output by the previous module be denoted as . Then its hyperbolic mapping process is defined as
(9)where denotes the causal debiased representation of the ith sample, and denote the linear transformation matrix and bias term, respectively, denotes the exponential map with the origin 0 as the reference point, and denotes the initial embedding of the sample in hyperbolic space. Through this step, the original Euclidean features are organized into a representation space with negative curvature, thereby providing a geometric foundation for subsequent hierarchical neighborhood propagation and relational reasoning.
In hyperbolic space, the relations between samples are no longer determined only by ordinary linear proximity, but are measured through hyperbolic distance to reflect their hierarchical closeness and structural similarity. Considering the relation set composed of original feature samples, counterfactual feature samples, and class centers, adjacency associations between samples are established on the hyperbolic manifold, and the structural relations between nodes are characterized through hyperbolic geodesic distance, which is defined as
(10)where denotes the hyperbolic geodesic distance, and and denote two sample nodes in hyperbolic space. Based on this distance, a relational weight matrix is further constructed to reflect the strength of hierarchical association between different nodes:
(11)where denotes the normalized relational contribution of node j to node i, and denotes the hyperbolic neighborhood set of node i. This design allows samples that are closer in manifold space and more similar in hierarchical semantics to obtain higher propagation weights, thereby incorporating the consistency relations, difference relations, and class prototype relations between original features and counterfactual features into a unified geometric reasoning framework.
During training, the neighborhood of each sample is constructed by selecting its K = 8 nearest reference nodes according to the hyperbolic geodesic distance, with the current sample excluded from its own neighborhood. The reference graph is constructed using training samples and their corresponding representations. During inference, each test sample is treated as an independent query node, and its K nearest neighbors are retrieved exclusively from the fixed training reference graph using the same distance metric and neighborhood size. Test samples are not used to construct the reference graph or the neighborhoods of other test samples, and their ground-truth labels are not involved in neighborhood construction. Consequently, the neighborhood of a test sample is determined by its representation and the training reference nodes rather than by the composition of the test batch.
To further enhance the dynamic modeling ability of hierarchical structure, a relational aggregation operation is performed on the hyperbolic manifold, so that each sample node can combine the information from original samples, counterfactual samples, and potential class centers in its neighborhood to complete semantic updating. Since ordinary Euclidean weighted summation cannot be directly performed in hyperbolic space, the neighborhood nodes are first projected into the tangent space for linear aggregation and then mapped back to manifold space, yielding the relation enhanced hierarchical representation:
(12)where denotes the logarithmic map with as the reference point, denotes the corresponding exponential map, and denotes the hyperbolic hierarchical representation after relational reasoning. Furthermore, in order to emphasize the prototype organization characteristics in class hierarchy, a prototype center is constructed for each class in hyperbolic space, and discriminative modeling is performed by using the hyperbolic distance from samples to class prototypes. Let the hyperbolic prototype of the mth class be denoted as , which can be expressed as
(13)where denotes the set of labeled training samples belonging to the mth class, and denotes the number of training samples in this set. The prototype is estimated from the relationally enhanced representations of the corresponding training samples. During training, the prototype is determined from the current training representations, and the final class prototypes are stored after model optimization. During validation and testing, these prototypes remain fixed and are used directly for distance-based classification, without incorporating validation or test labels into prototype estimation or updating. For the binary classification task, M = 2, corresponding to the Normal and Fault-related classes.
For a controlled Euclidean-space comparison, the corresponding relational model retains the same feature embedding dimension, backbone encoder, projection dimensions, neighborhood size, number of class prototypes, and training configuration as the hyperbolic model. The corresponding Euclidean distance and aggregation operations replace the hyperbolic distance and manifold mappings, while the remaining relational modeling and classification settings are kept consistent. This comparison is used to examine the contribution of hyperbolic geometry under equivalent representation dimensions and model capacity.
After completing hyperbolic relational reasoning and prototype construction, the model further generates classification responses according to the hyperbolic distances between samples and class prototypes, and uses them as the final structural discrimination basis for fault identification. Specifically, the prediction probability that the ith sample belongs to the mth class is defined as
(14)where denotes the prediction probability that the ith sample is assigned to the mth class, M denotes the total number of classes, and denotes the fixed hyperbolic prototype center of the rth class during inference. The causal debiased representation is thereby organized through sample-level correspondence, neighborhood-level relations, and class-level prototypes, while the final classification is determined by the distances between sample representations and class prototypes. Hyperbolic geometry provides the metric space for representing these relationships, whereas neighborhood aggregation and prototype discrimination respectively integrate local relational information and class-level reference information. The fixed training reference graph and class prototypes are used for individual test queries, making the inference rule independent of the number of test samples processed together.
3.5 Training objective and loss function
Based on the above overall architecture, the model training objective consists of a classification supervision term, a counterfactual invariance constraint term, and a hyperbolic prototype discriminative constraint term. Among them, the classification supervision term is used to ensure that the model possesses the basic fault identification capability, the counterfactual invariance constraint term is used to reduce unnecessary deviation between the original representation and the counterfactual representation, and the hyperbolic prototype discriminative constraint term is used to enhance intra class aggregation and inter class separation in manifold space. Overall, this training objective unifies the aforementioned causal debiasing representation learning and hyperbolic hierarchical relational modeling into the same optimization framework, thereby enabling the model to simultaneously consider discriminability, robustness, and structural representation capability. The overall training process is shown in Algorithm 1.
Algorithm 1 Training process of the proposed method
Require: Training set , backbone encoder , structural causal model G, weighting coefficients
Ensure: Trained model parameters
1: Initialize network parameters and hyperbolic prototype centers
2: for each epoch do
3: for each mini batch do
4: Read the original samples x and their labels y
5: Infer the exogenous background from each original sample
6: Apply with fixed and generate
7: Compute the original representation , counterfactual representation , and fused representation
8: Map into hyperbolic space, perform hierarchical relational reasoning, and obtain
9: Compute the prediction probability based on hyperbolic prototypes
10: Compute , , , and the total loss
11: Backpropagate and update parameters
12: end for
13: end for
14: return
Specifically, let the training set be denoted as , where denotes the ith input sample, denotes its ground truth class label, and denotes the class probability distribution output by the model. Then the classification loss is defined as
(15)where N denotes the total number of samples, M denotes the total number of classes, is the indicator function, which takes the value 1 when the condition holds and 0 otherwise, and denotes the predicted probability that sample belongs to the mth class. This term is used to directly constrain the consistency between the final classification result and the ground truth label, and it serves as the fundamental objective of the entire model optimization.
In order to ensure that the model can still maintain stable fault semantic responses before and after contextual intervention, a counterfactual invariance constraint is further introduced. At the same time, to strengthen the structural discriminative ability in hyperbolic manifold space, the distance between each sample and the prototype of its corresponding class is also incorporated into the optimization process. Therefore, the hyperbolic structural constraint and the total loss can be written as
(16)(17)where denotes the hierarchical representation of the ith sample after hyperbolic relational reasoning, denotes the hyperbolic prototype center corresponding to its ground truth class, denotes the hyperbolic geodesic distance, denotes the counterfactual invariance constraint defined in the previous subsection, and and are weighting coefficients used to balance different optimization objectives. Through the above joint loss, the model can learn the fault decision boundary under classification supervision, while using the counterfactual constraint to weaken the influence of contextual spurious correlations, and further regulating the hierarchical structural distribution in manifold space with the aid of the hyperbolic prototype constraint.
4 Dataset introduction and preprocessing
4.1 Dataset introduction
This study adopts the Chinese high resolution electric vehicle charging transaction dataset proposed by Zhang et al. [32] as the experimental data source. The dataset was published in Scientific Data and covers 13 charging stations across three administrative districts in Jiaxing, China, over a continuous period of two years. It contains a total of 441,077 real charging transaction records and exhibits strong spatiotemporal continuity and scenario representativeness. The dataset includes not only transaction level information such as charging start and end times, charging amount, electricity price, electricity fee, and service fee, but also multidimensional attributes including charging termination reasons and weather conditions associated with each charging process. Therefore, it can simultaneously support user charging behavior analysis, charging load modeling, and fault factor mining. Compared with common charging datasets that only contain single station data, short time windows, or simulated records, this dataset has greater advantages in terms of spatial coverage, temporal granularity, and information completeness, and is particularly suitable for charging fault identification and robust modeling tasks under complex contextual conditions.
4.2 Dataset preprocessing
During the data preprocessing stage, the released transaction records were organized using the available structured fields related to charging behavior analysis. Records with missing or incomplete transaction information were excluded because they did not provide sufficient information for subsequent analysis. The cleaning criterion was based on the completeness of the transaction fields required for label assignment and feature extraction. A total of 43,888 incomplete records were removed, leaving 397,189 valid charging transactions. Fault-related sessions with complete transaction records were retained and labeled according to their charging termination reasons. At the same time, according to the charging termination reason field, all samples were assigned to a binary classification setting, where each charging session was labeled as either a normal charging event or a fault-related charging event. Specifically, the termination categories Is_full_charge and Is_user_stop were assigned to Normal (0), whereas Is_nonsystem_fault, Is_system_issue, Is_EV_fault, Is_other_fault, etc., were assigned to Fault-related (1), following the termination-reason definitions of the original dataset. User-initiated stops were therefore distinguished from fault-related interruptions, including equipment failures and recorded communication abnormalities. Incomplete transactions caused by data transmission interruptions were excluded during cleaning, while complete records indicating communication faults were retained. After preprocessing, the dataset contained 210,907 normal charging events (53.1%) and 186,282 fault-related charging events (46.9%). After the binary labels were determined, the charging termination reason field and its derived indicators were excluded from the model input, and unified encoding and normalization were performed only on structured variables used for prediction, including timestamps, fees, charging amount, meteorological conditions, and other charging context attributes.
The released dataset also provides an anonymized User ID field, which is described in the dataset documentation as a user-related identifier. However, the released transaction records do not provide independently verifiable identity information to establish the correspondence between anonymized IDs and real-world individuals. In particular, it cannot be independently confirmed whether records associated with different anonymized IDs may correspond to the same individual or whether the identifiers maintain a one-to-one correspondence with actual individuals. Therefore, the anonymized User ID is excluded from the model input features and is not treated as a verified real-world identity attribute.
In the current study, predictions are generated after the completion of each charging transaction, when charging start and end times, charging duration, delivered energy, transaction power, electricity and service fees, location information, and recorded environmental conditions are available. Charging duration, transaction power, and final transaction costs are completed-session attributes that may contain information associated with charging termination outcomes. Accordingly, the current evaluation focuses on post-transaction fault identification.
After data cleaning, all samples were divided into the training set, validation set, and test set using a stratified random split strategy to ensure that the class distribution in each subset remained as consistent as possible. Among them, the training set was used for model parameter learning, the validation set was used for hyperparameter selection and model selection, and the test set was used for final performance evaluation. The partitioning was performed at the transaction level rather than through grouping according to anonymized User IDs. Consequently, the current data split does not guarantee that transactions associated with the same anonymized identifier are restricted to a single subset. Moreover, because the correspondence between anonymized identifiers and real-world individuals cannot be independently verified, the current evaluation does not establish person-independent generalization. The class distribution after preprocessing is summarized in Table 1, and the dataset partition is reported in Table 2.
5 Experimental results
5.1 Experimental setup
All experiments in this study were conducted under a unified software and hardware environment to ensure fair comparison among different models and different module combinations. Specifically, the model was implemented using the PyTorch deep learning framework, and training and inference were carried out on an NVIDIA GPU platform. The AdamW optimizer was adopted, the initial learning rate was set to , the weight decay coefficient was set to , the batch size was set to 32, and the number of training epochs was set to 200. Meanwhile, the curvature parameter of hyperbolic manifold space, the weight of the counterfactual invariance constraint, and the weight of the hyperbolic structural constraint were all uniformly determined on the validation set, so as to balance training stability and structural representation capability. The main software and hardware configurations and training hyperparameters used in the experiments are shown in Table 3.
5.2 Experimental results compared with other models
To evaluate the proposed method against models suitable for structured transaction data, seven representative tabular classification methods are selected, including Random Forest, XGBoost, CatBoost, LightGBM, MLP, FT-Transformer, and TabNet. All methods use the same preprocessed transaction-level features and identical training, validation, and test partitions. Tree-based models directly process the encoded structured attributes, while MLP uses the feature vector as its input, FT-Transformer applies feature-wise tokenization, and TabNet employs attentive feature selection for tabular representation learning. All methods follow consistent data preprocessing and model selection procedures and are evaluated using the same three matched random seeds. The reported results are expressed as the mean and standard deviation across the three runs. The performance is assessed using accuracy, precision, recall, and AUC. The comparison results are presented in Table 4.
To further examine the consistency of the performance differences, paired comparisons are conducted between the proposed method and each baseline using three matched experimental runs under identical data partitions. For each evaluation metric and baseline model, the paired difference in the i-th run is calculated as
(18)The mean paired difference is calculated from the three matched runs, and the corresponding two-sided 95% confidence interval is obtained using the paired Student’s t-distribution:
(19)where m represents ACC, Precision, Recall, or AUC, denotes the performance difference between the proposed method and a baseline model in the i-th matched run, represents the mean paired difference, and denotes the sample standard deviation of the three paired differences. The same three random seeds and corresponding data partitions are used for both methods in each comparison, ensuring that the performance differences are evaluated under matched experimental conditions. The confidence intervals are therefore calculated from the three run-level paired differences rather than from resampling individual test transactions. The corresponding statistical results are summarized in Table 5.
Table 4 provides the overall classification performance of the selected tabular models, expressed as the mean and standard deviation across three matched runs, while Table 5 presents the corresponding mean paired differences and two-sided 95% paired t confidence intervals. These complementary evaluations characterize both the overall predictive performance and the consistency of the performance differences across matched experimental runs. The reported intervals are pointwise confidence intervals without adjustment for multiple comparisons. Therefore, they provide an assessment of the uncertainty associated with each individual comparison.
To further examine the influence of feature availability on charging fault identification, comparative results under different input feature settings are presented in Table 6.
5.3 Ablation test results
To further verify the actual roles of the proposed components within the overall framework, this study designs a set of systematic ablation experiments around the counterfactual causal debiasing branch and the hyperbolic hierarchical relational modeling branch, and conducts comparative analysis on different module configurations under unified experimental settings. Specifically, by successively removing key components such as the counterfactual intervention branch, invariance constraint, causal debiasing representation projection, hyperbolic manifold mapping, hierarchical relational reasoning, and hyperbolic prototype discrimination, this study investigates the independent contributions and collaborative effects of each module on model performance. The related results are statistically analyzed from multiple evaluation dimensions, including accuracy, precision, recall, and AUC, so as to comprehensively reflect the effectiveness of each core design on the charging fault identification task. The experimental results are shown in Table 7.
As can be seen from Table 7, the proposed method achieves the best results on all four metrics, including ACC, Precision, Recall, and AUC, under the complete module configuration, which indicates that the counterfactual causal debiasing branch and the hyperbolic hierarchical relational modeling branch provide strong collaborative gains within the overall framework. Specifically, when the counterfactual intervention branch or the invariance constraint is removed, the model performance declines noticeably, indicating that factual and counterfactual contrastive learning together with stable semantic constraints play an important role in weakening contextual spurious correlation interference and improving the robustness of fault identification. After removing the causal debiasing representation projection, all metrics further decrease, which also demonstrates that the explicit construction of a causally robust representation space helps enhance the separability of essential fault features. On the other hand, removing hyperbolic manifold mapping, hierarchical relational reasoning, or hyperbolic prototype discrimination also leads to performance degradation to different extents. Among these settings, the model performs best when hyperbolic prototype discrimination is fully retained, which shows that hyperbolic space can more naturally organize the hierarchical relations and class structures among samples, while hierarchical relational reasoning further strengthens the structural representation capability under complex contextual dependencies. Overall, the ablation results fully verify the effectiveness of the two core innovations in this study. The counterfactual intervention driven causal debiasing mechanism is responsible for improving representation robustness, while the hyperbolic manifold based hierarchical relational modeling is responsible for enhancing the structural discriminative capability of features. Together, they support the final improvement in model performance.
5.4 Hyperparameter sensitivity experimental results
To further analyze the sensitivity of the proposed method to key loss weight parameters, this study designs a systematic hyperparameter sensitivity experiment around the counterfactual invariance constraint weight and the hyperbolic structural constraint weight . The experimental results are shown in Table 8. Under the condition that all other experimental settings remain unchanged, the model performance under different configurations is statistically analyzed by separately adjusting the two types of weighting coefficients, which makes it possible to more clearly examine the influence of each constraint term on overall identification performance and structural modeling effect. This experiment helps verify the stability and rationality of the proposed joint optimization objective and provides an experimental basis for subsequent parameter setting.
As can be seen from Table 8, the model performance is noticeably sensitive to the values of the loss weight parameters and , while the overall variation trend still exhibits a certain regular pattern. When is fixed, as is gradually adjusted from a relatively large value to a moderate range, ACC, Precision, Recall, and AUC generally show a trend of fluctuating first and then improving, and the best results are achieved at . This indicates that an excessively strong hyperbolic structural constraint will restrict the flexible learning of discriminative features, whereas an overly weak constraint is insufficient to fully exploit the advantage of hierarchical relational modeling. Only a moderate structural constraint weight can better balance classification learning and manifold relational reasoning. When is fixed, the experimental results under different configurations also show that the counterfactual invariance constraint is not stronger in all cases. An excessively large causal constraint may compress effective discriminative information to a certain extent, whereas a moderate is more beneficial for achieving coordination between contextual debiasing and class discrimination. Overall, the combination of and achieves the best comprehensive performance, which indicates that the causal debiasing mechanism and the hyperbolic hierarchical relational modeling mechanism proposed in this study exhibit strong complementarity. Only when the two types of constraints reach a reasonable balance can the model fully release its robustness and structural representation capability in the charging fault identification task.
5.5 Confusion matrix experimental results
To further analyze the classification behavior of the model in the electric vehicle charging fault identification task from the perspective of category discrimination, this study introduces confusion matrices to visualize the prediction distributions of different methods on normal and fault samples, and the corresponding experimental results are shown in Fig 4. This experiment provides an intuitive view of the recognition tendencies of the model toward different categories and the stability of its decision boundaries by examining the correspondence between true labels and predicted labels. Therefore, it offers a more fine-grained basis for evaluating the contribution of each component module to the improvement of category discrimination capability.
The figure illustrates the classification distributions of the full model and its ablated variants on normal and fault-related samples in a single experimental run. The corresponding quantitative results are reported in Table 7.
As can be observed from the figure, the full model maintains higher response intensity in the diagonal regions for both normal samples and fault samples, indicating that it is able to establish a more stable binary discrimination capability overall. In particular, the proportion of correctly identified normal samples reaches a relatively high level, while the recognition performance on fault samples also surpasses that of most ablated models, demonstrating that the proposed method achieves better overall performance in suppressing category confusion. In contrast, when the counterfactual intervention branch, causal debiased representation projection, hyperbolic manifold mapping, hierarchical relational reasoning, hyperbolic prototype discrimination, or invariance constraint is removed, the misclassification distribution in the off diagonal regions increases to varying degrees, indicating that each key component plays a positive role in improving the separability between normal and fault states. Overall, the full model effectively enhances the recognition capability for fault patterns in complex charging scenarios and further reduces inter class confusion through the joint use of causally robust representation learning and hyperbolic hierarchical relational modeling mechanisms.
5.6 t-SNE experimental results
To further analyze the representation learning capability of different settings in the electric vehicle charging fault identification task from the perspective of feature distribution, this study adopts the t-SNE method to project the high dimensional features extracted by each model into a two dimensional space for visualization. This experiment can intuitively reveal the clustering patterns, distribution boundaries, and potential category overlap of normal samples and fault samples in the embedding space, thereby providing a more illustrative basis for evaluating the feature representation capability and class separability of the models, and the corresponding experimental results are shown in Fig 5.
The figure shows the sample distribution patterns of the full model and its ablated variants in the feature embedding space, as well as the positional differences of misclassified samples, which can be used to intuitively reflect the influence of each component module on feature representation capability and class separation performance.
As can be observed from the figure, the feature representations learned by the full model form a relatively clearer class distribution structure in the embedding space, where normal samples and fault samples exhibit better clustering trends and more distinct separation boundaries overall, while the misclassified samples are mainly distributed in local boundary regions, indicating that the model provides more stable discriminative representations for the two categories. In contrast, when the counterfactual intervention branch, causal debiased representation projection, hyperbolic manifold mapping, hierarchical relational reasoning, hyperbolic prototype discrimination, or invariance constraint is removed, the overlap between different categories in the feature space becomes more severe, and the local distribution structure also becomes more dispersed, reflecting that each key component plays an important role in enhancing intra class compactness, suppressing inter class overlap, and improving the discriminative capability of fault related features. Overall, the full model effectively optimizes the feature organization pattern in complex charging scenarios through the joint introduction of causally robust representation learning and hyperbolic hierarchical relational modeling mechanisms, thereby providing a more discriminative representation basis for subsequent fault identification.
5.7 Feature interpretability analysis
To further analyze the decision basis and feature contributions of the model in the electric vehicle charging fault identification task, this study introduces feature interpretability analysis to visualize the contribution of each input variable during the prediction process, and the corresponding experimental results are shown in Fig 6. The analysis summarizes the contributions of different features to the model output at both the sample and overall distribution levels, providing an overview of the features used in the fault classification task.
The figure illustrates the distribution of feature contributions to the model output and their corresponding directions, as well as the variation of SHAP values across different feature values.
As can be observed from the figure, transaction power and location information exhibit the largest SHAP contributions in the current fault identification task, with relatively wide SHAP distributions, indicating their substantial contributions to model predictions. Environmental variables, including temperature, relative humidity, external meteorological humidity, and external air temperature, also contribute to the model output. In contrast, the SHAP values of some temporal periodic features and delay-related features are mainly concentrated around zero, indicating relatively limited contributions to the predictions. Overall, these results show that the model predictions are primarily associated with charging behavior and location features, while environmental variables provide additional predictive information.
5.8 Response analysis under different environmental conditions
To further reveal the perception pattern of the model toward charging fault risk under complex external scenarios, this study conducts fault response analysis around the coupling relationships between key environmental variables and operating conditions. This experiment characterizes the dynamic response patterns of the model output when different external factors vary jointly from the perspective of two dimensional conditional combinations, thereby providing a more intuitive basis for understanding the association mechanism among environmental disturbances, operating states, and fault discrimination, and the corresponding experimental results are shown in Fig 7.
As can be observed from the figure, the full model exhibits relatively clear nonlinear response patterns under different combinations of environmental variables. Under the coupled condition of temperature and humidity, the fault response probability increases significantly with the formation of high temperature and high humidity regions, while a relatively lower response level is observed around moderate temperature and moderate humidity, indicating that the superposition of heat and moisture is more likely to trigger fault risk. Under the joint effect of temperature and charging duration, the fault response shows a continuous increasing trend as temperature rises and charging time becomes longer, and a more evident high response band is formed especially in the region where high temperature and long duration intersect, suggesting that the equipment is more likely to experience abnormalities under sustained high load operation. Under the combination of precipitation and location conditions, there are clear differences in the sensitivity of different regions to changes in precipitation, indicating that spatial scene factors further regulate the influence of environmental disturbances on fault discrimination. Overall, the figure demonstrates that the full model can not only capture the influence of individual environmental variables on fault risk, but also further characterize the local sensitive regions and continuous variation trends under multifactor coupling conditions, thereby reflecting strong environmental response modeling capability and good interpretability.
5.9 Temporal and station-independent generalization evaluation
To evaluate the generalization capability of the proposed framework under temporal and station-level distribution shifts, two additional evaluation settings are considered. For temporal forward evaluation, all charging transactions are sorted according to their start times and divided chronologically into training, validation, and test sets using an 80:10:10 ratio, ensuring that the test period occurs after the training and validation periods. For station-held-out evaluation, the 13 charging stations are assigned to mutually exclusive training, validation, and test groups, with all transactions from the same station restricted to a single subset. Station identifiers are used for data partitioning rather than as model inputs. The same completed-transaction feature setting is maintained in both evaluations. Under each setting, the proposed model is compared with its counterpart without the counterfactual intervention branch using ACC, Precision, Recall, and AUC. Since persistent user identifiers are unavailable in the dataset, user-independent partitioning is not considered.
As shown in Table 9, the proposed model achieves better performance than the variant without the counterfactual intervention branch under both evaluation settings. In the temporal forward evaluation, the improvements in ACC, Precision, Recall, and AUC reach 4.25, 4.23, 4.86, and 2.68 percentage points, respectively. Under the station-held-out setting, the corresponding improvements are 4.69, 4.40, 5.77, and 3.26 percentage points. Compared with temporal evaluation, both models exhibit lower performance when evaluated on unseen charging stations, indicating the influence of station-level differences on fault identification. Nevertheless, the proposed model maintains consistent improvements across all four metrics in both settings, suggesting that counterfactual intervention contributes to more stable feature representations across different operating periods and charging station contexts.
6 Discussion and limitations
The experimental results provide several insights into the effectiveness of the proposed framework for charging fault identification under complex operating conditions. The proposed method achieves an ACC of 0.8735, a Precision of 0.8678, a Recall of 0.8615, and an AUC of 0.9289, outperforming the selected tabular learning baselines in terms of overall classification performance. The ablation results further indicate that the counterfactual intervention mechanism and hyperbolic hierarchical relational modeling contribute complementary improvements to the identification process. In particular, removing the counterfactual intervention branch leads to a noticeable reduction in classification performance, while replacing hyperbolic manifold modeling with its Euclidean counterpart also results in lower ACC and AUC. These observations suggest that contextual intervention and hierarchical relational representation provide different but complementary benefits for learning discriminative charging event features. Furthermore, the additional temporal forward and station-held-out evaluations demonstrate that the proposed method maintains consistent performance advantages over the variant without the counterfactual intervention branch under both distribution shift settings. These findings highlight the potential value of combining contextual robustness enhancement with structured relational modeling for transaction-level charging fault screening. In practical operation and maintenance scenarios, the learned representations and associated feature attribution results can provide supplementary information for identifying potentially abnormal charging events, understanding relevant operating conditions, and prioritizing subsequent station inspections.
Despite these encouraging findings, several aspects require further investigation. The primary evaluation adopts a stratified random transaction-level splitting strategy, under which transactions from the same charging stations or nearby time periods may be distributed across different subsets. Although the additional chronological and station-held-out evaluations provide further evidence of generalization under temporal and station-level distribution shifts, the experiments are still conducted within the available dataset and do not fully establish generalization across different regions, charging infrastructure providers, or equipment types. Furthermore, although the released dataset provides anonymized User ID values, the available transaction records do not provide independently verifiable information establishing their one-to-one correspondence with real-world individuals. The primary transaction-level split and the additional temporal and station-held-out evaluations are not grouped according to these anonymized identifiers. Consequently, transactions associated with the same anonymized User ID may appear in different subsets, and potential user-level overlap cannot be ruled out. Therefore, the current experimental results do not establish person-independent generalization. The User ID is excluded from the model input features. The current task also relies on completed-transaction information, including charging duration, delivered energy, transaction power, and final transaction costs, and therefore primarily supports post-transaction fault identification rather than real-time fault prediction during an ongoing charging session. In addition, the fault-related category is defined according to the recorded transaction termination reasons and includes multiple sources of abnormal charging termination, which should be considered when interpreting the findings in relation to equipment-specific faults. The SHAP contributions and environmental response patterns characterize predictive associations between charging conditions and model outputs, rather than independently establishing physical causal effects. Similarly, the counterfactual intervention mechanism evaluates representation stability under the structural assumptions and intervention configurations of the specified causal model. Future research will focus on external validation using charging transaction data from additional regions, stations, and equipment types, together with longer observation periods and more detailed fault annotations. Further evaluation using appropriately grouped anonymized User ID partitions, where identifier consistency can be established, would help assess generalization across anonymized dataset users. Establishing person-independent generalization would additionally require independently verifiable correspondence between anonymized identifiers and real-world individuals. Real-time operational measurements and multisource equipment monitoring signals would further support more comprehensive evaluation under online operating conditions. Further investigation of fault evolution, environmental interactions, and equipment-level failure mechanisms could also strengthen the practical applicability of the proposed framework in intelligent charging infrastructure operation and maintenance.
7 Conclusion
This study focuses on the problem of charging pile fault identification under complex charging scenarios and constructs a unified identification framework that integrates counterfactual intervention-guided causal debiased representation learning with hyperbolic manifold-based hierarchical relational modeling. Built upon a Transformer backbone network, the proposed method enhances the robustness of feature representations against environmental disturbances, scene bias, and contextual coupling through the joint modeling of an original branch and a counterfactual branch. Meanwhile, hierarchical relational reasoning and prototype discrimination in hyperbolic space further improve the model’s ability to characterize the structural differences between normal and fault-related charging states. Experimental results demonstrate that the proposed method achieves strong overall classification performance, together with improved category discrimination, feature organization, and interpretability. These results indicate that the proposed framework can effectively distinguish fault-related charging events from normal charging events under complex operating conditions, providing a potentially useful technical basis for intelligent operation and maintenance of electric vehicle charging infrastructure.
Future work can be further carried out toward more realistic and open charging infrastructure operating environments. On the one hand, data from cross regional, cross station, and cross device sources can be incorporated to construct a more heterogeneous and dynamic fault identification system, thereby improving the generalization capability of the model under different cities, different operating conditions, and different stages of device aging. On the other hand, temporal evolution modeling, fault propagation chain analysis, and multisource sensor signal fusion mechanisms can be further introduced, enabling the model not only to perform fault discrimination but also to characterize the fault formation process, risk accumulation patterns, and potential sources of anomalies in greater depth. In addition, conducting response modeling by integrating more fine grained environmental factors and operational contextual information would further enhance the practical value of the model in real world charging pile fault warning and auxiliary decision making scenarios.
References
- 1. Sarda J, Patel N, Patel H, Vaghela R, Brahma B, Bhoi AK, et al. A review of the electric vehicle charging technology, impact on grid integration, policy consequences, challenges and future trends. Energy Reports. 2024;12:5671–92.
- 2. Baek K, Lee E, Kim J. A dataset for multi-faceted analysis of electric vehicle charging transactions. Sci Data. 2024;11(1):262. pmid:38429291
- 3. Liang J, Feng J, Fang Z, Lu Y, Yin G, Mao X, et al. An Energy-Oriented Torque-Vector Control Framework for Distributed Drive Electric Vehicles. IEEE Trans Transp Electrific. 2023;9(3):4014–31.
- 4. Chen Y, Tang Z, Weng X, He M, Zhou S, Liu Z, et al. A Diagnostic Method for Open-Circuit Faults in DC Charging Stations Based on Improved S-Transform and LightGBM. Energies. 2024;17(2):404.
- 5. Huang P, Liu J, Wang J. Fault Diagnosis for Current Sensors in Charging Modules Based on an Adaptive Sliding Mode Observer. Sensors (Basel). 2025;25(5):1413. pmid:40096231
- 6. Feng L, Zhu Y, Xu S, Yang R. Open-circuit fault diagnosis of DC charging pile rectifier based on sparse data and CNN-ISSA-BiLSTM. Energy Reports. 2025;13:3024–34.
- 7. Liang J, Shen C, Yin G, Pi D, Fang Z. Integrating Torque Vectoring and Active Suspension Systems Using a Game Theory-Based Control Framework. IEEE Trans Automat Sci Eng. 2026;23:703–16.
- 8. Jia S, Li Y, Wang X, Sun D, Deng Z. Deep causal factorization network: A novel domain generalization method for cross-machine bearing fault diagnosis. Mechanical Systems and Signal Processing. 2023;192:110228.
- 9. Jia L, Chow TWS, Yuan Y. Causal Disentanglement Domain Generalization for time-series signal fault diagnosis. Neural Netw. 2024;172:106099. pmid:38237445
- 10. Guo C, Zhao Z, Ren J, Wang S, Liu Y, Chen X. Causal explaining guided domain generalization for rotating machinery intelligent fault diagnosis. Expert Systems with Applications. 2024;243:122806.
- 11. Ma H, Wei J, Zhang G, Kong X, Du J. Causality-inspired multi-source domain generalization method for intelligent fault diagnosis under unknown operating conditions. Reliability Engineering & System Safety. 2024;252:110439.
- 12. Jiang M, Zhou K, Gao J, Zhang F. Integrating causal representations with domain adaptation for fault diagnosis. Reliability Engineering & System Safety. 2025;260:110999.
- 13. Liu Y, Cheng W, Wen W, Fang Q, Wu H. A novel domain generalization framework for fault diagnosis of rotating machinery based on causal representation learning and causal feature identification. Engineering Applications of Artificial Intelligence. 2026;164:113201.
- 14. Xu Y, He D, Luo X, Jin Z, Sun H. CSSCL: a cross-sensor self-contrastive learning for nondestructive fault detection of heavy locomotive motors in label-scarce scenarios. Nondestructive Testing and Evaluation. 2026;:1–34.
- 15. Liu R, Zhang Q, Lin D, Zhang W, Ding SX. Causal intervention graph neural network for fault diagnosis of complex industrial processes. Reliability Engineering & System Safety. 2024;251:110328.
- 16. Barraza JF, Droguett EL, Martins MR. SCF-Net: A sparse counterfactual generation network for interpretable fault diagnosis. Reliability Engineering & System Safety. 2024;250:110285.
- 17. Liu Z, Lou X. Fault diagnosis based on counterfactual inference for the batch fermentation process. ISA Trans. 2024;148:449–60. pmid:38438286
- 18. Zhang Z, Li Q, Liu S, Zhang Z, Chen W, Tang L. Casual inference-enabled graph neural networks for generalized fault diagnosis in industrial IoT system. Information Sciences. 2025;694:121719.
- 19. Xu Y, He D, Jin Z, Sun H, Zhang X, Zhang S, et al. A fault diagnosis method for ship motors based on a multi-source data three-level fusion strategy. Ocean Engineering. 2026;358:125758.
- 20. Yan S, Zhang Z, Sun X, Xu G, Jin L, Li S. HYPER2: Hyperbolic embedding for hyper-relational link prediction. Neurocomputing. 2022;492:440–51.
- 21. Wang Y, Wang H, Lu W, Yan Y. HyGGE: Hyperbolic graph attention network for reasoning over knowledge graphs. Information Sciences. 2023;630:190–205.
- 22. Lu M, Li Y, Zhang J, Ren H, Zhang X. Deep hyperbolic convolutional model for knowledge graph embedding. Knowledge-Based Systems. 2024;300:112183.
- 23. Zhu X, Gao W, Li T, Yao W, Deng H. Event-centric hierarchical hyperbolic graph for multi-hop question answering over knowledge graphs. Engineering Applications of Artificial Intelligence. 2024;133:107971.
- 24. Fang Y, Liu X, Lu W, Pedrycz W, Lang Q, Yang J. Knowledge graph completion with low-dimensional gated hierarchical hyperbolic embedding. Knowledge-Based Systems. 2025;309:112804.
- 25. Jin Z, Gao Y, He D, Zhao J, Wu Z, Huang C-G. A Multiscale Method for Predicting the Remaining Useful Life of Bearings Using Physics-Informed Hypergraph Wavelet Attention Network. IEEE Trans Rel. 2026;75:4317–31.
- 26. Xia L, Zheng P, Keung KL, Xiao C, Jing T, Liu L. From fault tree to fault graph: Bayesian network embedding-based fault isolation for complex equipment. Manufacturing Letters. 2023;35:983–90.
- 27. Wu Y, Chen X, Yao X, Yu Y, Chen Z. Hyperbolic graph convolutional neural network with contrastive learning for automated ICD coding. Comput Biol Med. 2024;168:107797. pmid:38043468
- 28. Hu H, He C, Chen X, Guan Q. HCKGL: Hyperbolic collaborative knowledge graph learning for recommendation. Neurocomputing. 2025;634:129808.
- 29. Chen Y, Zhang L, Li J, Dong P. Hyperbolic graph representation learning: methods, applications and challenges—A survey. Neurocomputing. 2025;652:131044.
- 30. Wang S, Chen X, Jing Y, Wang S. Hyperbolic geometric graph representation learning: A survey. Computer Science Review. 2025;58:100800.
- 31. Jin Z, Wu Z, He D, Zhao J, Fu Y. Data-driven nondestructive evaluation for bearing prognostics using a dual correlation graph knowledge distillation network. Nondestructive Testing and Evaluation. 2026;:1–29.
- 32. Zhang Y, Xu T, Chen T, Hu Q, Chen H, Hu X, et al. A high-resolution electric vehicle charging transaction dataset with multidimensional features in China. Sci Data. 2025;12(1):643. pmid:40240381
- 33. Breiman L. Random Forests. Machine Learning. 2001;45(1):5–32.
- 34.
Chen T, Guestrin C. XGBoost: A Scalable Tree Boosting System. In: Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 2016. 785–94. https://doi.org/10.1145/2939672.2939785
- 35.
Prokhorenkova L, Gusev G, Vorobev A, Dorogush AV, Gulin A. In: Advances in Neural Information Processing Systems, 2018. 6638–48. https://proceedings.neurips.cc/paper_files/paper/2018/hash/14491b756b3a51daac41c24863285549-Abstract.html
- 36.
Ke G, Meng Q, Finley T, Wang T, Chen W, Ma W. In: Advances in Neural Information Processing Systems, 2017. 3146–54. https://proceedings.neurips.cc/paper_files/paper/2017/hash/6449f44a102fde848669bdd9eb6b76fa-Abstract.html
- 37. Rumelhart DE, Hinton GE, Williams RJ. Learning representations by back-propagating errors. Nature. 1986;323(6088):533–6.
- 38.
Gorishniy Y, Rubachev I, Khrulkov V, Babenko A. Revisiting Deep Learning Models for Tabular Data. In: Advances in Neural Information Processing Systems, 2021. 18932–43. https://proceedings.neurips.cc/paper_files/paper/2021/hash/9d86d83f925f2149e9edb0ac3b49229c-Abstract.html
- 39. Arik SÖ, Pfister T. TabNet: Attentive Interpretable Tabular Learning. AAAI. 2021;35(8):6679–87.