Abstract
This paper formulates the joint correction of outdated transformer–customer connectivity records and identification of unregistered customers as weakly supervised time-series classification with instance-dependent label noise and missing labels. A physics-consistency-guided dual-network framework combines temporal discrimination with voltage synchrony. Intraday residual convolutions and an interday transformer encode customer measurements, while reliable historical customers provide raw-voltage and latent-representation prototypes. Classification loss, record–prototype conflict, and inter-network disagreement are combined in class-conditional Gaussian mixture models to estimate record reliability. Cross-network partitioning and prototype-aware label refinement support learning from both suspected erroneous records and unregistered customers. A confidence-gated update policy refers uncertain assignments for manual verification. In a real service area containing nine transformers and 2752 customers in Hubei Province, China, the method achieved 96.3% accuracy and 95.6% Macro-F1 under 20% adjacent erroneous records and 10% missing records, exceeding Mean Teacher by 2.6 percentage points in Macro-F1. These results demonstrate the effectiveness of combining electrical synchrony and weak supervision for connectivity-record maintenance.
1. Introduction
Low-voltage distribution networks are located at the edge of the power system and directly serve large and diverse populations of end users. Transformer–customer connectivity specifies the distribution transformer that supplies each low-voltage customer. It is fundamental to service-area loss calculation, outage-scope assessment, fault location, three-phase imbalance mitigation, low-voltage topology identification, and distributed-energy integration [1,2,3,4,5]. In older urban districts and rapidly expanding service areas, however, customer migration, load transfer, transformer expansion, and service-boundary adjustments occur frequently. Because the production management system (PMS) is maintained largely through manual updates, its historical connectivity records gradually diverge from the current physical topology; large-scale utility measurements have likewise shown that field changes can make connectivity models obsolete and that voltage data can expose such inconsistencies [4,5]. Moreover, newly connected customers and customers affected by failed record migration may have no usable connectivity record. Correcting outdated records and registering a small number of unregistered customers from existing measurements at low cost are therefore practical requirements of digital low-voltage network management.
Field inspection, controlled outage tests, and power-line carrier communication can directly or indirectly verify connectivity, but they generally require manual intervention, additional equipment, or service interruption and are difficult to repeat frequently at scale. With the deployment of advanced metering infrastructure (AMI), smart meters continuously acquire customer-side voltage, current, and power data, enabling non-intrusive connectivity identification. Customers supplied by the same transformer share its secondary-bus voltage and upstream disturbances, so their voltage increments are usually strongly synchronous. Differences in tap-changing states, line impedance, and load disturbances among transformers create distinguishable fluctuation patterns. This physical premise has been verified on utility datasets through pairwise voltage correlation, harmonic-voltage correlation, and hierarchical clustering [1,4,5]. Subsequent studies have combined voltage with power balance, circuit constraints, or geographic information to reconstruct low-voltage connectivity [2,3,6,7], while machine-learning methods have learned transformer classes directly from smart-meter data [8]. Recent work also shows that household photovoltaics can alter both power-loss and voltage-correlation characteristics, motivating methods that explicitly accommodate heterogeneous and bidirectional customer behavior [9].
Despite this progress, operational record updating involves four coupled difficulties. First, historical records are not reliable ground truth. Deep networks usually fit regular patterns before memorizing incorrect labels later in training [10,11], and direct cross-entropy training can therefore consolidate an outdated record into a high-confidence prediction. Second, incorrect and missing labels coexist: the former must be detected and corrected, whereas the latter require a specific transformer identifier inferred from limited weak supervision. Neither conventional supervised classification nor unsupervised clustering covers both requirements. Third, connectivity noise is not uniformly random. Transferred customers are more likely to be recorded under a geographically adjacent service area, while residential, commercial, self-built-house, photovoltaic, and public-facility loads exhibit different voltage responses. The resulting corruption is better characterized as instance-dependent asymmetric label noise than as uniform random flipping, a setting known to be substantially harder than class-conditional noise [12,13]. Fourth, smart-meter data contain clock offsets, consecutive missing values, and measurement errors, and transformer service areas may be severely imbalanced. Under a long-tailed class distribution, minority samples may receive systematically different losses even when correctly labeled [14]. A large training loss can therefore indicate an incorrect record, a minority class, an unusual load, or poor measurements; a global small-loss rule cannot reliably distinguish these cases. Within-class loss normalization is used below when constructing reliability evidence. It makes loss values comparable within a historical service area; it is distinct from changing the cross-entropy training target or introducing a class-dependent multiplier into that loss.
Existing data-driven approaches fall into three broad groups. The first clusters voltage curves using Pearson correlation, dynamic time warping, spectral methods, or joint voltage–location similarity [1,4,5,7,15]. Although labels are unnecessary, cluster indices do not map naturally to operational transformer identifiers, and the results are sensitive to cluster size, thresholds, outliers, synchronization quality, and the availability of geographic or transformer-side reference data. The second constructs combinatorial or network-reconstruction problems from energy conservation, voltage correlation, power losses, and radial circuit constraints [2,3,6,9]. These methods are physically interpretable but often require transformer-side measurements, relatively complete power data, or complex discrete optimization. The third treats connectivity as supervised classification and uses convolutional, recurrent, or other machine-learning models to map measurements to transformer classes [8]. Such models directly output service-area identifiers, but typically assume that their training records are correct and cannot simultaneously handle outdated and absent records. Consequently, existing connectivity studies largely address topology discovery or classification under a single supervision regime, rather than joint record correction and registration from partially corrupted operational data.
Noisy-label and semi-supervised learning offer another route; representative strategies include robust losses, loss correction, sample selection, label refinement, and consistency regularization [12]. Generalized cross entropy (GCE) changes the contribution of difficult samples to improve noise robustness [16], while transition-matrix approaches correct the loss under an assumed class-dependent corruption process [17]. Co-teaching uses two networks to exchange small-loss samples and reduce confirmation bias [18]. Loss-mixture modeling estimates whether individual samples are mislabeled [19], and DivideMix combines this partition with cross-network label refinement and MixMatch-style semi-supervised learning [20,21]. For genuinely unlabeled samples, Mean Teacher stabilizes consistency targets through weight averaging [22], whereas FixMatch accepts high-confidence pseudo-labels from weak augmentations and enforces them under strong augmentations [23]. These advances establish useful components for the present task, but they were developed mainly for generic image classification. Transition-based methods generally assume class-conditional rather than instance-dependent corruption; small-loss and mixture methods may confuse correct minority-class samples with noisy ones; and generic image augmentations do not necessarily preserve electrical time-series semantics. More importantly, their reliability estimates do not use the synchronous-voltage evidence shared by customers in the same service area. Direct transfer therefore leaves the most informative physical structure of transformer–customer connectivity unused.
Electrical time-series augmentation must preserve the order and interpretation of synchronized measurements. The present representation therefore combines raw signals, within-day increments, and an observation mask; weak augmentation uses small perturbations and short masks, and strong augmentation uses contiguous segment and day masking rather than arbitrary temporal permutation. Transformer-based power-system forecasting provides relevant architectural context: cross-entity attention has been used to model correlated energy loads, and hierarchical temporal attention has been investigated for wind-power forecasting [24,25]. These studies motivate multiscale representation learning, whereas the present task concerns noisy operational class labels and missing connectivity records rather than forecasting future power values.
The evaluation uses a heterogeneous urban service area in Hubei Province, including apartment communities, commercial storefronts, self-built houses, and public facilities with distributed photovoltaics and electric-vehicle charging. This setting provides a practical test of connectivity-record maintenance under diverse customer behavior.
To address these limitations, this paper proposes a physics-consistency-guided dual-network method, as shown in Figure 1. Two independently initialized hierarchical temporal networks iteratively construct raw-voltage-fluctuation and latent-representation prototypes for each service area from highly reliable historical customers. Within each historical class, classification loss, disagreement between the record and physical prototype, and inter-network prediction disagreement jointly produce a continuous record-reliability probability. The reliability partition and service-area prototypes generated by one network then guide soft-label correction and unlabeled consistency learning in the other. Pseudo-labels for suspected erroneous records and originally unregistered customers are accepted only when supported by both network predictions and physical prototypes. At inference, a rejection mechanism follows the selective-prediction principle of trading coverage for lower decision risk [26] and assigns each output to one of four operational states: retain the record, recommend a correction, register the customer automatically, or request manual verification.
Figure 1.
Overall framework of the proposed physics-consistency-guided dual-network weakly supervised connectivity identification method.
In Figure 1, dual-network learning and temporal encoding serve as established building blocks. The task-specific contribution is their integration with transformer-level voltage and latent prototypes, class-conditional multi-evidence reliability, and prototype-aware peer supervision for joint record correction and registration.
The main contributions are as follows:
- Outdated-record correction and unregistered-customer identification are unified as weakly supervised connectivity classification with instance-dependent noise and missing labels. A reject-enabled maintenance output aligns algorithmic evaluation with operational objectives.
- A class-conditional, multi-evidence estimator combines deep-network learning dynamics with synchronous-voltage prototypes. Cross-network estimation and exponential smoothing reduce confirmation bias and the risk of discarding minority-service-area customers or unusual but correctly recorded loads under a global small-loss rule.
- Prototype-aware collaborative label correction and pseudo-label generation enforce both discriminative and electrical consistency. A dynamic class prior and risk-controlled update policy improve reliability under class imbalance and severe label noise.
2. Materials and Methods
2.1. Problem Formulation
Consider a service area containing T candidate distribution transformers and N low-voltage customers. Let the customer and transformer sets be and , respectively. The transformer currently supplying customer i is . Over D consecutive days, P synchronized samples with F electrical features are collected each day, giving the input . Define a record-availability indicator . When , the PMS provides a historical label , which may be outdated; when , no connectivity record is available. The observed weak label is therefore
The sets with and without historical records are and , where and . Because transfers occur more often between adjacent service areas, erroneous records can be expressed as an instance-dependent asymmetric transition process:
Measurements, learning dynamics, and group prototypes are combined to infer the reliability of each historical record. The model learns , where , and predicts
In addition to the transformer class, the model outputs predictive confidence , class margin , dual-network disagreement , and historical-record reliability , forming . The problem is identifiable under four conditions: each customer is connected to only one transformer and remains so during the observation window; all true transformers belong to , giving a closed-set setting; each service area retains a small number of historical anchor customers or equivalent transformer-side reference measurements are available; and all customer measurements have been aligned to a common time grid. If every historical label for one transformer is missing and no transformer-side reference exists, the labels of the unlabeled clusters are permutation-indeterminate and cannot be mapped uniquely to operational transformer identifiers. Manually verified labels are used only for validation and testing, not for weakly supervised training.
The reference condition concerns class identity as well as prototype quality. A correct reference can associate an otherwise separable customer group with an operational transformer identifier, but this does not establish a universal minimum anchor count for a stable statistical prototype. The effective requirement depends on class size, voltage separation, data quality, and reference diversity. If no historical anchor is available, transformer-side reference measurements or targeted field verification can establish the identifier. Without either source, a coherent group cannot be assigned an operational transformer name uniquely.
The symbol T denotes the number of candidate transformers, and t indexes a transformer class. The symbols D and P denote observation days and within-day samples. Prototype temperature , sharpening temperature , and calibration temperature have distinct roles and are distinguished by their complete notation; , , , and denote decision thresholds.
2.2. Overall Framework and Hierarchical Temporal Encoding
Connectivity has strong temporal structure. Voltage sequences of customers supplied by the same transformer are influenced by the shared low-voltage bus, transformer secondary voltage, and upstream operating state, and thus show synchronous changes. In contrast, current and power changes caused by individual loads remain customer-specific. Both intraday local patterns and interday long-term patterns must therefore be represented. The method contains two structurally identical networks, and , with independent trainable parameters. Each has a hierarchical temporal encoder and classification head. Different random initializations, mini-batch orders, dropout masks, and augmented views promote prediction diversity. Training cycles through confidence-penalized warm-up, dynamic service-area prototype construction, class-conditional reliability estimation, and cross-network semi-supervised optimization.
As shown in Figure 2, for customer i on day d, let , where . After computing the intraday first difference , the raw measurements, differences, and missing-value mask are concatenated as . The first position of the difference sequence is zero-padded to retain length P. Valid and missing measurements correspond to 1 and 0, respectively, in . Raw measurements preserve voltage level and line-drop information; first differences emphasize short-term voltage fluctuations shared by customers on the same transformer; and the mask distinguishes genuine low variability from imputed intervals. For , encoding and classification are
Figure 2.
Data preprocessing pipeline.
Here, is an intraday residual convolutional encoder, is an interday transformer encoder, is the daily feature, is the H-dimensional customer representation, and and parameterize the classification head. The class distribution is . The intraday encoder extracts voltage levels, line drops, and synchronous disturbances, while the interday encoder aggregates repeated supply responses. This converts individual measurements affected by stochastic loads into a service-area-discriminative customer representation.
At the beginning of training, each network is warmed up on for epochs. Let be the one-hot representation of . The sample cross entropy for network k is . For a recorded-customer mini-batch , the warm-up objective is the sum of mean cross entropy and weighted negative prediction entropy, where is the batch size and is the negative-entropy weight [27]. Warm-up establishes initial discrimination and learning dynamics but does not directly determine record updates. Negative prediction entropy delays memorization of erroneous records and preserves differences between reliable and transferred, outdated records.
2.3. Dynamic Service-Area Prototypes and Class-Conditional Reliability
Partitioning records by classification loss alone confounds incorrect labels with difficult samples. We therefore construct physical evidence independent of the classification loss from synchronous voltages within a service area. For voltage samples , the within-day increment is for . Concatenating these increments over the D days and applying normalization gives , where . A separate increment connecting two daily tensors is excluded to maintain a common day-wise representation, consistent with daily encoding and day masking. This exclusion is a modeling convention: a midnight change in continuously observed data can contain genuine electrical information. The encoder instead zero-pads the first difference of each day to retain P positions. Long missing intervals are zero-filled only for storage, and subsequent correlations use valid positions. Let denote a semi-supervised training epoch. Using reliability from the preceding epoch, network k selects anchors for historical class t as , where . On entry to this stage, anchors are initialized from the lowest-loss fraction in each class. Reliability-weighted raw-voltage and latent-representation prototypes are
The prototypes and summarize voltage fluctuations and latent representations for service area t, respectively. Both are exponentially updated with momentum . If a class has no anchors above the threshold in the current epoch, its preceding prototype is retained rather than normalizing a zero vector. The voltage prototype captures changes shared on a low-voltage bus, whereas the latent prototype summarizes supply and consumption patterns not fully represented by linear correlation. Together, they provide a reference independent of the original label and allow unregistered customers to be compared with known service areas.
The raw traces provide electrical information that is not generated by the classifier, while anchor selection and reliability weights remain model-dependent. The latent prototypes depend on the learned representation. The two branches are therefore complementary evidence rather than an independent source of verified labels. The initial fraction is a within-class low-loss selection rule, not a proportion of manually verified clean records.
Suppressing the epoch superscript for clarity, the combined prototype similarity and prototype probability are
Here, is the Pearson correlation coefficient, is cosine similarity, balances the two sources of evidence, is the prototype temperature, and . A small suggests that a recorded customer may have transferred to another transformer; for an unregistered customer, the largest prototype probability provides a candidate assignment. Raw-voltage and latent evidence are complementary and reduce sensitivity to local missingness, photovoltaic reverse power flow, and customer-side voltage drops.
Pearson correlation is used to measure synchronous linear fluctuations on the aligned time grid. It is interpretable and inexpensive, while latent cosine similarity provides complementary learned structure. Spearman correlation, bounded-lag cross-correlation, and constrained dynamic time warping provide alternative invariances, with different computational costs and risks of aligning distinct service areas. Interpolation and first differencing do not remove arbitrary residual timing errors; first differencing can also amplify measurement noise. Consequently, the role of Pearson correlation is tied to the alignment and valid-observation assumptions rather than to universal invariance to missingness or desynchronization.
For a customer with a historical record, network k constructs the three-dimensional reliability evidence
The operator performs within-class min–max normalization using the current-epoch extrema, and is Jensen–Shannon divergence. The three entries indicate whether the record is difficult to fit, whether it conflicts with the physical prototype, and whether the networks disagree. This combination avoids labeling an unusual but correctly recorded customer as erroneous solely because of a large loss.
The evidence coordinates in Equation (7) are the within-class min–max loss, prototype conflict, and prediction divergence. The loss normalization is not a normalization of the supervised training objective. Diagonal mixture covariances represent coordinate-specific variances. Under an equivalent unconstrained fit, an invertible coordinate-wise affine transformation changes all component densities by the same Jacobian factor, which cancels in the posterior. Numerical initialization, covariance regularization, and the coordinate-sum component-naming rule can nevertheless make the fitted estimator sensitive to the chosen evidence scale.
Jensen–Shannon divergence is the average of the two Kullback–Leibler divergences from the input probability distributions to their arithmetic mean. The same divergence convention applies to reliability evidence, pseudo-label acceptance, physical consistency, and inference thresholds.
Unlike a one-dimensional GMM shared by all customers, a two-component Gaussian mixture model with diagonal covariance is fitted separately within each historical class:
Here, and denote the reliable and unreliable components, and is the latent component. The mixing weight, mean, and diagonal covariance are , , and , with . The component having the smaller sum of the three mean coordinates is identified as reliable. The posterior estimates the probability that the historical record of customer i is reliable at epoch e.
The GMM is fitted using all recorded customers in the historical class, whereas the anchor subset is used to construct the prototypes. A small anchor set and a small GMM fitting population are therefore distinct issues. The lower-coordinate-sum rule names the fitted components; it is not a guarantee that two components remain separable in an arbitrarily small or contaminated class. To suppress epoch-to-epoch fluctuations, reliability is updated as , where and is initialized from the warm-up loss posterior.
For the network being trained, let denote the other network. Customers for which form the reliable labeled set together with their input, one-hot historical label, and reliability; all remaining recorded customers and form the unlabeled set . Class-conditional modeling gives each service area its own reliable/unreliable scale, while cross-network partitioning prevents a network from selecting samples using its own confidence. Operationally, maintains stable service-area semantics and re-identifies outdated records and unregistered customers.
2.4. Prototype-Aware Label Correction and Collaborative Semi-Supervised Optimization
For a highly reliable customer in , M weakly augmented views are generated. The augmentation uses only small noise within meter accuracy, short point masks, and small time shifts. The other network’s mean weak-view prediction is geometrically fused with the mean prototype distribution, followed by reliability-aware soft correction and temperature sharpening:
The quantities , , and are the mean weak-view prediction, mean prototype distribution, and model–prototype fused distribution, respectively. The parameter controls the fusion, is the unsharpened target, is the final supervised target, and is the sharpening temperature. As approaches one, supervision remains close to the original record. As reliability decreases, it shifts continuously toward evidence supported by current measurements. This soft transition reduces error propagation compared with a one-step hard correction.
For suspected erroneous and originally unregistered customers in , predictions from both networks are averaged, fused with the prototype distribution, and sharpened to produce a pseudo-label and acceptance gate:
Here, is the mean weak-view prediction across networks, is the model–prototype distribution, balances its evidence, is the sharpened pseudo-label, and is the acceptance gate. The indicator uses confidence threshold and disagreement threshold . A pseudo-label participates in training only when confidence is sufficient and the networks agree, increasing registration coverage without reinforcing unstable assignments.
Let be a strong augmentation and . Strong augmentation additionally uses contiguous segment masking and random day masking, but not arbitrary temporal permutation or large amplitude scaling. Let be a mixed mini-batch from and . Define for and for . The three training losses are
The losses respectively maintain the class boundaries of reliable records, absorb measurements from erroneous and unregistered customers through gated pseudo-label consistency, and align predictions with service-area voltage synchrony. Weighting by prevents uncertain prototypes from over-constraining difficult customers. Thus, both classification correctness and physical supply consistency are optimized rather than fitting potentially outdated labels alone.
The supervised term is averaged over labeled batch members, the unlabeled term over accepted pseudo-labels, and the physical term over its reliability-weighted mass. The number of customers in the full unlabeled pool therefore does not multiply these losses directly. If no unlabeled target passes its gate, the numerator of is zero and that term contributes zero. The loss coefficients and unlabeled ramp-up control the relative contributions; batch normalization within the encoder is a separate operation and does not enforce equal gradient magnitudes across objectives.
To mitigate unequal service-area populations, the class prior is estimated from reliable soft labels and accepted pseudo-labels rather than directly from the potentially outdated records. Let , , and . At epoch e, prior probability equals the weighted mass of dimension t among reliable soft labels plus the accepted pseudo-label mass, with Laplace smoothing , divided by the corresponding mass over all classes; duplicated customers are counted once. The complete prior is exponentially smoothed with momentum . For the mean batch prediction , the prior regularizer is . This term prevents large service areas from dominating predictions without fixing erroneous historical class frequencies in the model.
The final objective is
The unlabeled loss weight is ramped up with the epoch, while and weight physical consistency and prior regularization. Ramp-up first establishes stable service-area semantics from highly reliable anchors and then incorporates suspected erroneous and unregistered customers. The two networks are updated alternately; soft targets, pseudo-labels, and prototype distributions are detached during the current optimization step to avoid degenerate solutions obtained by changing the target itself.
For a detached target, the gradient through that target is zero during the current optimization step, while the prediction branch remains trainable. This prevents a within-step shortcut of moving the target together with the prediction, but it does not make the networks statistically independent across epochs. Agreement is beneficial when both networks are correct; agreement on the same incorrect class remains a possible failure mode. Physical evidence, peer partitioning, stochastic diversity, and gradual unlabeled weighting act jointly to mitigate this risk rather than provide an unconditional collapse-prevention theorem.
2.5. Risk-Controlled Inference and Record Updating
After training, a temperature is selected on the validation set and applied to both networks’ logits [28]. Let and be calibrated probabilities and their ensemble. The predicted transformer is . If and are the largest and second-largest ensemble probabilities, define , , , and, for a recorded customer, . These quantities measure absolute support, separation from the second candidate, model stability, and historical-record reliability. Reliability is undefined for an unregistered customer, whose decision uses the other three measures and prototype consistency.
The following tiered rules reduce automatic-update risk. For a recorded customer, retain the record if and . Mark the customer as a high-priority correction candidate if , , , , , and . For an unregistered customer, create a record with if , , , and . All remaining cases enter manual verification. Here, , and , , , and are validation-set thresholds for confidence, margin, disagreement, and low record reliability. The policy converts model outputs into four operational actions and allows coverage to be traded against error risk more safely than an unconditional argmax decision.
3. Experimental Setup
3.1. Dataset and Task Settings
Data were collected from a real low-voltage service area in an older urban district of Hubei Province, China. The area contained nine distribution transformers and 2752 customers: 1820 apartment-community customers, 235 street-front commercial customers, 454 self-built-house customers, and 243 public-infrastructure or other customers. The final group included communication base stations, public lighting, three distributed photovoltaic plants, a clinic, a police station, and an electric-vehicle charging station. Service-area sizes ranged from 143 to 696 customers, producing substantial class imbalance.
Data-quality statistics showed 0–5 min clock offsets for 15 m, 5–30 min offsets for six meters, and clock resets for four meters. Permissible voltage-measurement error was . Measurements were resampled to a common timestamp grid. Short missing intervals not exceeding a consecutive-missing threshold were linearly interpolated, whereas long intervals retained a missing-value mask and were not filled with a global mean. Normalization parameters were estimated only from training data using service-area-level robust scaling; per-customer standardization was avoided because it would remove absolute voltage differences. Original PMS records were the weak labels visible during training. Connectivity verified with assistance from the power utility was hidden ground truth used only for validation and testing.
Two complementary scenarios were evaluated. Scenario I trained directly on the original PMS records and unregistered-customer status to assess real historical issues. Scenario II generated controlled weak labels from verified truth by replacing recorded labels with other transformer classes and deleting records at specified rates. This separated the effects of erroneous and missing labels. Every method received the same weak labels, unlabeled measurements, and inputs; verified truth was never used for training.
Because the method uses unlabeled measurements from the customers being identified, it is a transductive semi-supervised approach for cleaning the current service area’s records. Hyperparameters and automatic-update thresholds were chosen on an independent validation set, and final results were reported on hidden test labels. When multiple time windows from the same customer formed separate samples, train, validation, and test partitions were created by customer to prevent identity leakage. Each randomized scenario was repeated five times, and mean and standard deviation were reported.
The evaluation is transductive, not an inductive test on entirely unseen customer measurements. Target-customer measurements may participate in semi-supervised fitting without revealing their verified test labels. The prescribed PMS weak labels and retained class references provide supervision; hidden test truth is excluded from prototype selection, cluster-name mapping, calibration, threshold selection, and model selection. Customer-level partitioning keeps all windows of one customer in the same validation or test scoring partition. The representative comparison uses 20% adjacent erroneous records and 10% missing records. The erroneous-record and missing-record sweeps are separate single-factor experiments and are interpreted independently of this representative joint setting.
3.2. Implementation Details and Evaluation Metrics
The observation length was days. For a sampling interval expressed in minutes, the daily sample count is ; the factor 1440 denotes minutes per day. The intraday branch used three residual one-dimensional convolutional blocks with 64, 128, and 128 channels, kernel width 5, and dilation rates 1, 2, and 4. Each block was followed by batch normalization, GELU activation, and dropout of 0.1. The interday transformer used two encoder layers and four attention heads [29]; the customer representation and feed-forward dimensions were 128 and 256. AdamW used an initial learning rate of , weight decay of , and batch size 64. Training ran for 200 epochs, comprising warm-up and semi-supervised epochs, with cosine learning-rate annealing after warm-up.
The number of weak views was , , and the initial anchor fraction was . Parameters were , , , , , , , and . Loss weights were , , and ; increased linearly from 0 to 1 over the first 30 semi-supervised epochs. GMMs and prototypes were updated once per epoch. Prototype, reliability, and class-prior momenta , , and were 0.9. The calibration temperature and decision thresholds , , , and were selected exclusively on the validation set.
Overall identification was evaluated using accuracy, macro-averaged F1 (Macro-F1), and balanced accuracy; the latter two were primary because of class imbalance. Erroneous-record detection used AUROC, AUPRC, and F1. For flagged customers, correct-correction rate was the proportion of automatically corrected customers assigned to their true transformer. Unregistered customers were evaluated by top-1 accuracy, automatic-registration coverage, and accuracy–coverage curves. Expected calibration error (ECE) and the Brier score measured probability reliability. For clustering baselines, cluster indices were mapped to transformer identifiers using retained anchor customers only; test truth was not used for optimal matching.
Let contain all originally unregistered customers in the evaluation population and let contain those passing the inference registration rule. Top-1 accuracy is the number of correct argmax assignments divided by the total number of evaluated unregistered customers. Registration coverage is the number of customers accepted for automatic registration divided by the same total. Accepted-set accuracy is the number of correct assignments among accepted customers divided by the number accepted. These fractions are multiplied by 100 when reported as percentages. Rejected customers remain in the top-1 denominator. If no customer is accepted, coverage is zero and accepted-set accuracy is undefined. These inference sets differ from the training pseudo-label gate . For the automatic-correction set , correct-correction rate is ; correction recall instead uses the total number of truly erroneous records as its denominator.
4. Results and Discussion
4.1. Comparative Results
The baselines were: unchanged historical records; Pearson correlation with hierarchical agglomerative clustering (PCC-HAC); dynamic time warping with hierarchical agglomerative clustering (DTW-HAC); a one-dimensional CNN trained with cross entropy; supervised cross entropy using the same hierarchical backbone (HTE-CE); GCE [16]; Co-teaching [18]; MixMatch [20]; Mean Teacher [22]; and the proposed method. For fairness, all deep noisy-label methods used the same hierarchical backbone and preprocessing wherever applicable, changing only their sample-selection and training objectives.
Table 1 and Table 2 report the representative condition of 20% adjacent erroneous records and 10% missing records. The historical-record baseline is the unchanged PMS database reference and does not undergo randomized network initialization; the trained methods are summarized over five repetitions.
Table 1.
Overall transformer–customer connectivity identification results, where the bolded portion indicates the optimal value.
Table 2.
Results for record correction and unregistered-customer registration, where the bolded portion indicates the optimal value.
Table 1 shows that the hierarchical temporal encoder itself was effective: HTE-CE exceeded 1-D CNN+CE by 2.8 percentage points in Macro-F1, indicating that repeated interday patterns filtered daily load randomness and improved separation of smaller service areas. HTE-CE nevertheless fitted outdated records directly and improved much less than noise-robust methods. GCE reduced the gradient contribution of difficult samples but could not distinguish an incorrect record from an unusual load. Co-teaching reduced single-network confirmation bias through cross-network small-loss selection, yet under class imbalance, it preferentially retained easy samples from large service areas. MixMatch used unregistered measurements and thus outperformed purely supervised methods, but its pseudo-labels were primarily model-derived and lacked independent constraints at high-similarity boundaries between adjacent service areas.
The proposed method achieved a Macro-F1 of 95.6%, exceeding HTE-CE and Mean Teacher by 8.1 and 2.6 percentage points, respectively. Balanced accuracy increased to 95.9%, only 0.4 percentage points below accuracy, showing that gains were not confined to majority classes. Mean Teacher provides consistency targets through an exponential moving average of model weights. In contrast, the proposed method fuses classification loss, record–prototype conflict, and network disagreement within each historical class, and uses the resulting reliability to guide peer-network learning. Class-conditional modeling reduced interference from inherent service-area difficulty and sample size. Raw-voltage prototypes provided synchrony evidence relatively independent of network parameters, while latent prototypes captured photovoltaic, charging-station, and long-feeder behavior not fully described by linear correlation. Consequently, difficult but correctly recorded customers were less likely to be removed, and transferred customers with modest loss were easier to detect.
Table 2 distinguishes a changed prediction from a safe operational update. The proposed method attained 92.8% AUPRC for erroneous-record detection, 6.1 percentage points above Mean Teacher. Because erroneous records constituted only 20% of recorded customers, AUPRC reflected false-alarm risk more directly than AUROC. Detection F1 of 88.6% showed that recall was not obtained through excessive alarms. Joint gating by confidence, class margin, network disagreement, low record reliability, and prototype agreement produced a 97.1% correct-correction rate. This is selective-prediction precision among automatically corrected records, not recall over all erroneous records; boundary cases rejected by the gate were sent for manual verification.
For unregistered customers, top-1 accuracy and automatic-registration coverage reached 96.0% and 89.3%, exceeding Mean Teacher by 2.9 and 3.9 percentage points. Model–prototype fusion required pseudo-label support from both discrimination and supply synchrony, limiting early self-reinforcement of incorrect pseudo-labels. Weak-view consistency stabilized predictions under short missing intervals, small clock offsets, and measurement errors. The remaining 10.7% were rejected from automatic registration and concentrated near service-area boundaries, at long feeder ends, or among customers with abnormal missingness or unusual loads. This rejection was an intended risk-control outcome. Temperature scaling and dual-network ensembling reduced ECE from 3.6% for Mean Teacher to 2.1%, providing more reliable probabilities for common update thresholds.
4.2. Robustness to Noise and Missing Labels
4.2.1. Erroneous-Record Robustness
Within each service area, a fraction of recorded customers was sampled from verified labels and reassigned to another class. Uniform noise selected randomly from the remaining classes; adjacent noise selected only a geographically or electrically adjacent transformer to simulate actual load transfer. The realized error rate was measured after each generation to exclude nominal changes that retained the original label.
Figure 3 reports adjacent noise, the more realistic and difficult transfer pattern. Without noise, differences among deep methods were small, and the proposed method exceeded HTE-CE by only 0.7 percentage points, indicating that its advantage did not arise simply from added capacity. From 10% to 50% noise, HTE-CE lost 26.6 percentage points in Macro-F1, whereas the proposed method lost 6.8. Its advantage over Mean Teacher expanded from 3.0 percentage points at 30% noise to 5.7 at 50%. At high noise, the two components of a global loss GMM overlapped and small-loss selection deteriorated as the networks memorized erroneous records. The proposed method additionally used record–voltage-prototype conflict and network disagreement, with reliability components fitted separately by historical class, delaying this deterioration.
Figure 3.
Macro-F1 under different proportions of adjacent erroneous records.
A decrease as the erroneous-record rate rises is consistent with the increasing supervision difficulty. The representative table and the sensitivity curve answer different questions: the former evaluates joint record corruption and missing labels, whereas the latter isolates the effect of the swept noise factor. Their points should therefore be interpreted with their stated experimental roles rather than treated as repeated measurements of an identical joint condition.
Adjacent noise assigned customers to electrically similar service areas and was harder than uniform noise. The multi-evidence reliability estimator degraded more slowly across the tested range. A 50% error rate was near the difficult regime for two-component partitioning and high-confidence anchor construction; therefore, the 89.6% Macro-F1 should not be extrapolated beyond the tested noise range.
4.2.2. Missing-Record Robustness
Historical labels were removed from service-area-stratified customer samples at missing-record rates of 0%, 10%, 20%, 30%, 40%, 50%, and 70%, while their measurements remained available as unlabeled training data. Each service area retained a predetermined minimum number of anchors so that its operational identifier remained identifiable; performance under very few anchors was recorded separately.
Both methods in Figure 4 degraded as the missing-record rate increased because fewer anchors were available to establish operational transformer identifiers and class prototypes. Macro-F1 declined faster than accuracy, showing that small service areas were affected first. The proposed method’s Macro-F1 advantage over Mean Teacher grew from 1.4 percentage points at 10% missingness to 5.7 at 70%. Its unregistered branch used not only classifier pseudo-labels but also raw and latent prototypes formed from the remaining reliable customers. The dynamic class prior further prevented unlabeled customers from being absorbed into the largest service area. Prototype gating improved both automatic-registration accuracy and coverage, demonstrating more accurate confidence ranking rather than a simple relaxation of thresholds.
Figure 4.
Identification results under different proportions of missing records.
At 70% missingness, automatic-registration coverage was 79.4%, below the 91.2% top-1 accuracy because the metrics have different denominators: top-1 evaluates argmax assignments for all unregistered customers, whereas coverage counts only customers passing the safety gate. With fewer anchors, disagreement and prototype uncertainty increased, and more customers were sent for manual verification. If a service area had no anchor or transformer-side reference, its class identifier would become permutation-indeterminate and the trend in Figure 4 would no longer hold.
4.3. Operational Interpretation and Deployment Boundaries
The selective policy connects connectivity inference with PMS maintenance. Under the representative setting, 89.3% registration coverage makes the remaining 10.7% of evaluated unregistered customers candidates for manual verification. The 97.1% correct-correction rate measures precision among selected corrections rather than recovery of all outdated records. These quantities support prioritization of field review; they are not direct measurements of labor hours or financial savings. Audit requirements, execution of correction recommendations, and the cost of incorrect automatic actions also affect operational workload.
The tested method assumes a known candidate-transformer set, aligned customer measurements, stable connectivity during the 30-day observation window, and usable reference information for each service area. Long missing intervals remove information that masking alone cannot recover, while residual clock offsets can weaken synchrony. Label-missingness experiments concern absent connectivity records and must be distinguished from loss of AMI measurement values. The results establish performance in the evaluated heterogeneous service area, not unrestricted robustness to arbitrary AMI failures or external-grid distributions.
4.3.1. Cross-Region and Online Adaptation
For transfer to another region, the temporal encoder can provide an initialization, while the classification head and transformer-specific prototypes must be associated with the target region’s identifiers. A target reference set can support partial fine-tuning and calibration. Local class identity and changed customer distributions make direct reuse of the source classification head insufficient.
For online operation, successive rolling windows can provide new prototype candidates for recursive exponential smoothing. Window length, update stride, and computation time determine detection delay. A genuine switching event can mix old and new connectivity within one window; unconditional smoothing may then retain outdated structure. Persistent changes in prediction, absolute prototype fit, or network disagreement can motivate a review of reference eligibility and a prototype reset. The epoch-wise smoothing used in the present retrospective study is distinct from such chronological change monitoring.
4.3.2. Privacy and Unknown-Transformer Decisions
AMI traces can reveal customer activity even when direct identifiers are removed. A prospective distributed design would retain raw measurements at utility-controlled gateways, train peer encoders locally, and securely aggregate model updates and reliability-weighted prototype statistics. Temporal prototype sums can still disclose behavioral information. Secure aggregation, adequate cohort sizes, time-grid alignment, and an explicit privacy–utility assessment are therefore necessary considerations; federated parameter averaging alone neither computes cross-customer synchrony automatically nor guarantees privacy.
Unknown-transformer handling is a separate extension to the present closed-set policy. Poor absolute fit to every known voltage and latent prototype, persistent uncertainty, and network disagreement can support a verification alarm. Disagreement alone is insufficient because two networks may agree on an incorrect known class, and a softmax over known prototypes can be peaked even when all absolute similarities are weak. A rejected decision identifies a case for investigation; it does not by itself establish the physical identifier of a previously unmapped transformer.
5. Conclusions and Future Work
Joint correction of outdated transformer–customer records and identification of unregistered customers was formulated as weakly supervised time-series classification. In the evaluated service area, 96.3% accuracy and 95.6% Macro-F1 were achieved under the representative condition of 20% adjacent erroneous records and 10% missing records. A 2.6 percentage-point Macro-F1 improvement over Mean Teacher was obtained. Under the separate single-factor stress tests of 50% adjacent erroneous records and 70% missing records, a 5.7 percentage-point Macro-F1 advantage was obtained in each case. The effectiveness of combining voltage-synchrony evidence with weak supervision was thereby demonstrated under the evaluated conditions.
A 97.1% correct-correction rate was obtained among records selected for automatic correction. For unregistered customers, 96.0% top-1 accuracy and 89.3% automatic-registration coverage were achieved, while uncertain cases were referred for manual verification. Maintenance effort can thus be prioritized through selective outputs. These metrics are interpreted as decision quality and coverage; actual labor-time and financial savings were not measured.
The findings were obtained in a single heterogeneous service area under a closed-set, transductive protocol. A known transformer set, usable references, aligned measurements, and stable connectivity within the observation window were assumed. Future investigation will be directed toward unknown-transformer alarms based on absolute prototype fit and uncertainty, region-specific adaptation of shared encoders, and rolling-window updates with change-aware reference management. Privacy-preserving prototype aggregation will also be studied with communication cost, information leakage, and decision quality assessed jointly.
Author Contributions
Conceptualization, Y.L. and Y.F.; methodology, Y.L. and Y.C.; software, Y.C. and F.Y.; validation, F.Y. and W.H.; formal analysis, Y.L. and W.H.; investigation, Y.C. and F.Y.; resources, W.H. and Y.F.; data curation, F.Y.; writing—original draft preparation, Y.L.; writing—review and editing, Y.C., W.H. and Y.F.; visualization, F.Y.; supervision, Y.F.; project administration, Y.F.; funding acquisition, Y.F. All authors have read and agreed to the published version of the manuscript.
Funding
This work was supported in part by the State Grid Corporation of China (No. 5400-202322566A-3-2-ZN) and in part by the Science and Technology Major Project of the Department of Science and Technology of Yunnan Province, China (No. 202402AF080006).
Data Availability Statement
Data available on request due to restrictions (e.g., privacy, legal or ethical reasons).
Conflicts of Interest
Authors Yang Lei, Yong Cai, Fan Yang, and Wei Hu were employed by the company State Grid Hubei Electric Power Co. The remaining author declares that the research was conducted in the absence of any commercial or financial relationships that could be construed as potential conflicts of interest.
References
- Luan, W.; Peng, J.; Maras, M.; Harapnuk, B.; Lo, J. Smart meter data analytics for distribution network connectivity verification. IEEE Trans. Smart Grid 2015, 6, 1964–1971. [Google Scholar] [CrossRef] [Scilit]
- Zhao, J.; Xu, M.; Wang, X.; Zhu, J.; Xuan, Y.; Sun, Z. Data-driven based low-voltage distribution system transformer-customer relationship identification. IEEE Trans. Power Deliv. 2022, 37, 2966–2977. [Google Scholar] [CrossRef] [Scilit]
- Hu, H.; Zhao, J.; Bian, X.; Xuan, Y. Transformer-customer relationship identification for low-voltage distribution networks based on joint optimization of voltage silhouette coefficient and power loss coefficient. Electr. Power Syst. Res. 2023, 216, 109070. [Google Scholar] [CrossRef] [Scilit]
- Mitra, R.; Kota, R.; Bandyopadhyay, S.; Arya, V.; Sullivan, B.; Mueller, R.; Storey, H.; Labut, G. Voltage correlations in smart meter data. In Proceedings of the 21st ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, Sydney, Australia, 10–13 August 2015; pp. 1999–2008. [Google Scholar] [CrossRef] [Scilit]
- Watson, J.D.; Welch, J.; Watson, N.R. Use of smart-meter data to determine distribution system topology. J. Eng. 2016, 2016, 94–101. [Google Scholar] [CrossRef] [Scilit]
- Peppanen, J.; Grijalva, S.; Reno, M.J.; Broderick, R.J. Distribution system low-voltage circuit topology estimation using smart metering data. In Proceedings of the 2016 IEEE/PES Transmission and Distribution Conference and Exposition, Dallas, TX, USA, 3–5 May 2016; pp. 1–5. [Google Scholar] [CrossRef] [Scilit]
- Cook, E.; Saleem, M.B.; Weng, Y.; Abate, S.; Kelly-Pitou, K.; Grainger, B. Density-based clustering algorithm for associating transformers with smart meters via GPS-AMI data. Int. J. Electr. Power Energy Syst. 2022, 142, 108291. [Google Scholar] [CrossRef] [Scilit]
- Tennakoon, R.N.; Kulathilaka, A.T.; Giri, R.; Al Khafaf, N.; Meegahapola, L.; Jalili, M. Prediction of customer connectivity to distribution transformer via application of machine learning techniques to smart-meter data. In Proceedings of the Australasian Universities Power Engineering Conference (AUPEC), Hobart, Tasmania, 29 November–3 December 2020; pp. 1–6. [Google Scholar]
- Li, L.; Zhao, J.; Wang, X.; Xu, Z.; Zhu, Y. Transformer-customer connectivity relationship identification for low-voltage distribution system with high penetration of household PV systems. IEEE Trans. Smart Grid 2025, 16, 356–368. [Google Scholar] [CrossRef] [Scilit]
- Arpit, D.; Jastrzębski, S.; Ballas, N.; Krueger, D.; Bengio, E.; Kanwal, M.S.; Maharaj, T.; Fischer, A.; Courville, A.; Bengio, Y.; et al. A closer look at memorization in deep networks. In Proceedings of the 34th International Conference on Machine Learning, Sydney, Australia, 6–11 August 2017; Volume 70, pp. 233–242. [Google Scholar]
- Liu, S.; Niles-Weed, J.; Razavian, N.; Fernandez-Granda, C. Early-learning regularization prevents memorization of noisy labels. Adv. Neural Inf. Process. Syst. 2020, 33, 20331–20342. [Google Scholar]
- Song, H.; Kim, M.; Park, D.; Shin, Y.; Lee, J.-G. Learning from noisy labels with deep neural networks: A survey. IEEE Trans. Neural Netw. Learn. Syst. 2023, 34, 8135–8153. [Google Scholar] [CrossRef] [Scilit]
- Xia, X.; Liu, T.; Han, B.; Wang, N.; Gong, M.; Liu, H.; Niu, G.; Tao, D.; Sugiyama, M. Part-dependent label noise: Towards instance-dependent label noise. Adv. Neural Inf. Process. Syst. 2020, 33, 7597–7610. [Google Scholar]
- Cui, Y.; Jia, M.; Lin, T.-Y.; Song, Y.; Belongie, S. Class-balanced loss based on effective number of samples. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Long Beach, CA, USA, 15–20 June 2019; pp. 9268–9277. [Google Scholar]
- Al Khafaf, N.; Song, H.; McGrath, B.; Jalili, M. Identification of low voltage distribution transformer–customer connectivity based on unsupervised learning. Energy Rep. 2023, 9, 72–79. [Google Scholar] [CrossRef] [Scilit]
- Zhang, Z.; Sabuncu, M.R. Generalized cross entropy loss for training deep neural networks with noisy labels. Adv. Neural Inf. Process. Syst. 2018, 31, 8792–8802. [Google Scholar]
- Patrini, G.; Rozza, A.; Menon, A.K.; Nock, R.; Qu, L. Making deep neural networks robust to label noise: A loss correction approach. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Honolulu, HI, USA, 21–26 July 2017; pp. 1944–1952. [Google Scholar]
- Han, B.; Yao, Q.; Yu, X.; Niu, G.; Xu, M.; Hu, W.; Tsang, I.; Sugiyama, M. Co-teaching: Robust training of deep neural networks with extremely noisy labels. Adv. Neural Inf. Process. Syst. 2018, 31, 8536–8546. [Google Scholar]
- Arazo, E.; Ortego, D.; Albert, P.; O’Connor, N.; McGuinness, K. Unsupervised label noise modeling and loss correction. In Proceedings of the 36th International Conference on Machine Learning, Long Beach, CA, USA, 9–15 June 2019; Volume 97, pp. 312–321. [Google Scholar]
- Berthelot, D.; Carlini, N.; Goodfellow, I.; Oliver, A.; Papernot, N.; Raffel, C. MixMatch: A holistic approach to semi-supervised learning. Adv. Neural Inf. Process. Syst. 2019, 32, 5049–5059. [Google Scholar]
- Li, J.; Socher, R.; Hoi, S.C.H. DivideMix: Learning with noisy labels as semi-supervised learning. In Proceedings of the International Conference on Learning Representations (ICLR), Addis Ababa, Ethiopia, 26–30 April 2020. [Google Scholar]
- Tarvainen, A.; Valpola, H. Mean teachers are better role models: Weight-averaged consistency targets improve semi-supervised deep learning results. Adv. Neural Inf. Process. Syst. 2017, 30, 1195–1204. [Google Scholar]
- Sohn, K.; Berthelot, D.; Li, C.-L.; Zhang, Z.; Carlini, N.; Cubuk, E.D.; Kurakin, A.; Zhang, H.; Raffel, C. FixMatch: Simplifying semi-supervised learning with consistency and confidence. Adv. Neural Inf. Process. Syst. 2020, 33, 596–608. [Google Scholar]
- Wang, Z.; Zhu, Z.; Xiao, G.; Bai, B.; Zhang, Y. A Transformer-based multi-entity load forecasting method for integrated energy systems. Front. Energy Res. 2022, 10, 952420. [Google Scholar] [CrossRef] [Scilit]
- Zhang, Y.; Liu, L.; Xiong, X.; Li, G.; Wang, G.; Lin, L. Long-term wind power forecasting with hierarchical spatial-temporal Transformer. arXiv 2023, arXiv:2305.18724. [Google Scholar] [CrossRef] [Scilit]
- Geifman, Y.; El-Yaniv, R. SelectiveNet: A deep neural network with an integrated reject option. In Proceedings of the 36th International Conference on Machine Learning, Long Beach, CA, USA, 9–15 June 2019; Volume 97, pp. 2151–2159. [Google Scholar]
- Pereyra, G.; Tucker, G.; Chorowski, J.; Kaiser, L.; Hinton, G. Regularizing neural networks by penalizing confident output distributions. In Proceedings of the ICLR Workshop, Toulon, France, 24–26 April 2017. [Google Scholar]
- Guo, C.; Pleiss, G.; Sun, Y.; Weinberger, K.Q. On calibration of modern neural networks. In Proceedings of the 34th International Conference on Machine Learning, Sydney, Australia, 6–11 August 2017; Volume 70, pp. 1321–1330. [Google Scholar]
- Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A.N.; Kaiser, Ł.; Polosukhin, I. Attention is all you need. Adv. Neural Inf. Process. Syst. 2017, 30, 5998–6008. [Google Scholar]
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. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.



