Next Article in Journal
INDI: A Low-Cost LLM-Enabled Multimodal Campus Guide Robot
Previous Article in Journal
Design of a New Lightweight Hash Function FLUX-128 and Experimental Evaluation of Its Diffusion and Statistical Properties
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Few-Shot Federated Learning for State-of-Charge Prediction Across Privacy-Isolated Personal Mobile Devices

1
Normal School, Hubei University, Wuhan 430062, China
2
School of Computer Science, Hubei University, Wuhan 430062, China
*
Author to whom correspondence should be addressed.
Computers 2026, 15(9), 581; https://doi.org/10.3390/computers15090581
Submission received: 24 July 2026 / Revised: 1 September 2026 / Accepted: 2 September 2026 / Published: 3 September 2026

Abstract

Accurate state-of-charge (SOC) prediction on personal mobile devices requires a model that can represent heterogeneous discharge mechanisms, transfer knowledge across users, and adapt from scarce target records while raw telemetry remains privacy isolated. This study proposes a module-decomposition-driven SOC prediction model that separates baseline drain, synchronous state response, and asynchronous multi-scale event memory within one discharge-dynamics formulation. The same three semantic coefficient blocks remain aligned through local source learning and round-wise sample-count-weighted federated aggregation. Target-side personalization then adjusts one locally derived personal discharge-rate scalar while preserving the shared temporal response, and forward SOC propagation produces threshold-based time-to-empty (TTE) estimates. A user-held-out evaluation on a public small-sample smartphone-log dataset uses eight target partitions and 447 final evaluation origins. Personalized fine-tuning reduced TTE MAE by 67.07% and RMSE by 71.88%, yielding an R 2 of 0.936. The resulting task-specific architecture connects module-structured data processing, federated synthesis, few-shot adaptation, and local TTE inference while raw usage logs remain within user-specific data boundaries.

1. Introduction

Accurate state-of-charge (SOC) prediction supports energy-aware operation and user decisions in personal mobile computing. Communication, navigation, media, sensing, authentication, and background services produce SOC trajectories that vary with device state and user behavior. Mobile operating systems expose battery percentage as a practical SOC proxy, enabling its future evolution to be estimated from routine device records. Time to empty (TTE) is then obtained as the interval until the predicted SOC trajectory reaches a prescribed terminal threshold. Recent mobile-energy studies connect this trajectory-based problem with large-scale battery telemetry, user-specific application and network behavior, and continuous smartphone SOC and TTE modeling [1,2,3,4].
Personal-device SOC evolution has a structured temporal composition. Standby operation establishes a slowly varying baseline, screen and application activity produce synchronous changes, and network transfers, positioning requests, scans, and background wake events retain effects after their recorded triggers. Contemporary smartphone datasets align battery observations with applications, screen state, wireless activity, mobility, temperature, and signal conditions, while recent prediction studies show that application, network, workload, and physical operating factors shape discharge trajectories [1,2,4,5,6]. A continuous-time logging model further separates instantaneous and delayed drain effects in routine device records [3]. This evidence motivates a three-module model comprising baseline drain, synchronous state response, and asynchronous event memory.
Recent mobile-energy research addresses complementary levels of the prediction problem. GreenHub supports population-scale analysis of Android battery consumption, smartphone app-usage research organizes the behavioral signals available for modeling, and user-specific deep learning links application and network activity to battery consumption [1,2,6]. Continuous-time and electrochemical-informed frameworks further connect operating conditions with SOC trajectories and TTE [3,4]. These studies strengthen device-level and corpus-level discharge characterization. Their reported evaluation designs do not jointly combine cross-user synthesis under isolated raw records, chronological personalization from a few completed segments, and trajectory-consistent threshold evaluation. This combination defines the unresolved requirement addressed here.
Recent mobile-context resources clarify the observations available for temporal SOC modeling. GreenHub records large-scale battery and device measurements, MDF organizes longitudinal battery, application, screen, wireless, mobility, temperature, and signal records by user, and current app-usage research systematizes the datasets and behavioral features used in smartphone analysis [1,5,6]. This literature improves context coverage and device-performance analysis. Its reported targets center on dataset construction, app-usage analysis, or device-level energy characterization. A cross-user SOC predictor additionally needs to map the same event stream into an interpretable baseline, synchronous state response, delayed event memory, and forward trajectory under user-held-out learning.
Federated learning provides a computational structure for shared modeling across user-specific data domains. FedAvg forms a shared model through data-weighted parameter aggregation, FedProx constrains local drift under statistical and system heterogeneity, and the broader federated learning literature formalizes optimization and communication across decentralized participants [7,8,9]. Recent privacy research shows that exchanged updates can retain reconstructive information and develops differential-privacy and secure-aggregation mechanisms for the same distributed setting [10,11,12]. These studies establish general optimization and protection primitives. They do not prescribe SOC-specific temporal semantics, chronological support construction, or trajectory-threshold evaluation. Cross-user discharge modeling therefore requires compact knowledge exchange, semantic alignment, and an explicit data boundary. In this study, privacy isolation denotes a user-level data-access boundary. Raw log rows, direct identifiers, exact event times, and directly readable personal records remain within their partition. Each participant supplies a locally preprocessed, model-specific feature representation together with the compact fields required by the fitting and aggregation workflow. The reported experiments evaluate this data-partitioning and representation boundary. Transport encryption is a deployment-layer protection and is not implemented or measured in the current experiments; resistance of transformed representations to reconstruction attacks also remains outside the present evaluation.
Personalized and few-shot learning addresses adaptation from limited target evidence. Per FedAvg learns an initialization for rapid local specialization, Ditto regularizes personal models toward a shared model, and FedRep separates an aggregated representation from user-specific heads [13,14,15]. Model-fusion, knowledge-distillation, and shared-representation approaches transfer model knowledge across heterogeneous or personalized tasks [16,17,18,19,20,21,22,23,24], while personalized federated few-shot learning uses compact support sets and collaborator selection [25]. Contemporary reviews organize these approaches around global–local model relations, data heterogeneity, and personalization mechanisms [26]. Charging interruptions, telemetry gaps, and terminal threshold requirements reduce routine phone logs to relatively few complete discharge segments, and user isolation further limits the target user’s support history. Estimates from these short sequences are sensitive to transient activity and user heterogeneity, while random support construction can violate chronological validity. Existing evaluations primarily use sampled support instances, classification tasks, or a single source-to-target transfer. Personal SOC prediction therefore requires chronological support, continuous discharge dynamics, complete user separation, and trajectory-based threshold evaluation.
AttFL continuously personalizes time-series models for mobile and embedded sensing, privacy-preserving edge federated learning supports resource-constrained mobile-health systems, and heterogeneity-aware personalized federated learning combines spatial–temporal health prediction with component-level aggregation [27,28,29]. Energy-aware device-to-device assistance and parallel edge–server execution address energy budgets, stragglers, asynchronous participation, and complex aggregation in edge federations [30,31]. These systems advance privacy-aware mobile sensing and resource-aware personalized learning. Their reported evidence targets generic sensing, health, and edge-learning objectives. It does not establish an SOC-specific chain from semantically separated discharge components to chronological personal adaptation and threshold-based TTE.
These methods organize knowledge around sensor-task predictors, privacy-aware edge learning, resource scheduling, and generic–personalized model alignment. The proposed method begins from a different modeling requirement: personal-device discharge is decomposed into a persistent baseline, a synchronous response to the current operating state, and asynchronous multi-scale memory of earlier events. This module-decomposition-driven SOC model supplies the common scientific object for local estimation, cross-user synthesis, chronological few-shot personalization, SOC-trajectory construction, and threshold-based TTE inference.
This study integrates these research directions into a few-shot federated SOC prediction framework built around that module decomposition. Each source partition converts its chronological record into synchronous states and causal multi-scale event memories and estimates the three-module discharge model. The aligned baseline, synchronous, and event-memory coefficient blocks are updated through 75 rounds of selected-client learning and sample-count-weighted aggregation. A source-side grid search fixes the common mixing coefficient before target-user evaluation. The target user’s early chronological support then supplies one robust personal-rate estimate, and local forward integration produces the SOC trajectory and threshold-based TTE.
The empirical study evaluates the common coordinate branch of this framework using public small sample longitudinal smartphone logs. User directories define logical data partitions, sample weighted parameter consensus forms the aggregate model, and complete target user holdout preserves separation between model formation and personal evaluation. Chronological partitioning assigns earlier target records to personalized fine-tuning and later records to testing.
The contribution of this study is the task-specific integration of module-structured SOC modeling, federated knowledge synthesis, chronological few-shot personalization, and trajectory-based TTE evaluation into one semantically aligned workflow. This integrated contribution is summarized through the following connected elements:
(1)
A continuous-time SOC and TTE formulation decomposes personal-device discharge into persistent baseline drain, synchronous state response, and asynchronous multi-scale event memory, then propagates their combined rate to a threshold-crossing trajectory.
(2)
A semantics-preserving federated representation carries the three discharge components through local estimation and cross-user aggregation as aligned coefficient blocks, enabling shared learning while raw user telemetry remains within its original partition.
(3)
A constrained few-shot adaptation mechanism combines the aggregate temporal response with one robust personal drain-scale estimate derived from the earliest target segments, preserving the learned response structure while adapting its user-specific scale.
(4)
A source-only coefficient-selection procedure and chronological user-held-out evaluation separate model development, target support, and final testing; paired user-level analysis then quantifies consistency across eight target partitions and 447 final origins.
The remainder of the article follows the same knowledge flow. Section 2 presents the three-module model, knowledge package, federated synthesis, personalized fine-tuning, SOC trajectory computation, and threshold inference. Section 3 defines the data and user-isolated evaluation protocol. Section 4 reports the experimental results and ends with a dedicated Discussion subsection, and Section 5 summarizes the findings, scope, and limitations.

2. Three-Module Discharge Dynamics and Federated Knowledge Synthesis

2.1. System Roles and the User-Level Data Boundary

Consider a federation of user roles U = { 1 , , U } coordinated by an aggregation service. User u U controls a chronological local dataset D u containing the operating-system-reported battery percentage, charging state, synchronous device states, transient events, and operating context. Local preprocessing maps the aligned record to a model-specific feature set F ˜ u = P ( D u ) that excludes raw log rows, direct identifiers, exact event times, and directly readable personal records. For a target role v, the source federation is U v = U { v } . Each source role initializes a three-module model from a common specification and estimates temporary parameters through the local learning operator
θ ^ u = A loc ( F ˜ u ) ,             u U v .
The resulting model state is specific to the current execution and user partition. In the evaluated common-coordinate workflow, local model knowledge is encoded as K u cc = { F ˜ u , Π θ ^ u , n u } , containing the model-specific feature representation, aligned module parameters, and support weight n u . The aggregation service maps the package set to the aggregate three-module model,
ψ ^ v = H   { K u : u U v } ,
and delivers ψ ^ v to the target role. Personalized fine-tuning applies the early chronological support set S v through A ft ( ψ ^ v , S v ) , followed by local SOC-proxy trajectory integration and TTE inference.
The data-access policy follows the standard federated separation between local optimization and aggregation service coordination. The preprocessing operator P accesses D u within user role u, the aggregation operator H accesses the uploaded package set, and the personalization operator accesses S v within role v. Raw log rows, exact event times, application histories, mobility traces, reconstructed discharge segments, direct identifiers, and target outputs reside in their respective user domains. The evaluated workflow receives the locally transformed representation together with aligned module parameters and support weights. This access structure defines the evaluated privacy-isolated scope of the framework. Figure 1 presents the common-coordinate workflow examined in this study and also outlines a heterogeneous-distillation interface reserved for subsequent investigation.
The evaluated privacy boundary comprises local retention of raw telemetry and local feature transformation before cross-partition exchange. The transmitted package carries model-specific feature representations and compact workflow fields for the authorized model operations. Transport encryption remains a deployment requirement outside the present experimental evaluation.
Table 1 consolidates the notation used throughout local estimation, federated synthesis, and personalized fine-tuning. With the system roles and data boundaries established, the subsequent formulation specifies the state representation, module dynamics, knowledge interface, aggregation objective, and TTE computation.
Within this formulation, each source role converts its hierarchical state-and-event record into a locally preprocessed feature representation and a temporary model with baseline, synchronous, and asynchronous event-memory modules. Common-coordinate knowledge extraction encodes the transformed representation, aligned parameters, and support weight for round-wise aggregation. Personalized fine-tuning then specializes the resulting aggregate three-module model from a fixed chronological support set, and local forward integration yields the SOC-proxy trajectory and time-to-empty (TTE).
Locally preprocessed model-specific feature representations, aligned module parameters, and support weights constitute the evaluated communication surface. The empirical protocol evaluates this common-coordinate workflow under user-level partitioning; it does not implement or benchmark transport encryption.

2.2. State-And-Event Representation of Personal Discharge Records

The model receives user-partitioned smartphone context records that combine battery observations with application, screen, wireless, media, mobility, location, temperature, and signal-related streams. The few-shot setting represents deployment conditions in which longitudinal discharge records are difficult to acquire, including new devices or new users that have yet to accumulate sufficient historical records, short observation periods, and slowly accumulated personal logs under privacy constraints. Quality filtering and chronological segmentation construct the support records used for personalized fine-tuning.
Within each logical user role, battery records are ordered by timestamp and separated into charging and discharging periods. Continuous downward trajectories define discharge segments, and the remaining streams are aligned to the battery timeline at one-minute resolution. Battery history provides the SOC proxy, charging status, timestamps, recent decline, and personal baseline information. Synchronous states summarize screen duty, application intensity, and continuously active loads over the current interval. Sparse Wi-Fi, cellular, call, media, Wi-Fi P2P, and aggregated Bluetooth (BT) events enter as impulses that propagate through asynchronous memory states. The BT channel combines scan and connection activity within each minute. Mobility, location-update intensity, temperature, and signal proxies modulate continuous and delayed drain, while session identity and a slowly varying offset absorb personal and session-level scale variation. Prediction features use observations available at or before each origin, and the subsequent threshold crossing supplies the TTE label.
Figure 2 presents the hierarchical preparation pipeline. In the conceptual architecture, alignment and feature construction occur within each personal-device role. The dataset user directories provide the corresponding logical separation in the empirical protocol.
The aligned local representation supplies the inputs for the temporary three-module source model defined next.

2.3. Local Estimation of Three-Module Source Models

The user-specific source model maps the observable SOC proxy and aligned state-and-event record to an effective decline rate. Each execution initializes and estimates its source-model state from the current participating partition. All user roles use the same feature order, units, normalization rules, event-channel dictionary, and decay-scale convention. This common coordinate system gives corresponding parameter blocks the same meaning across execution-specific source models.
Let s u ( t ) [ 0 , 1 ] denote the normalized battery percentage reported by the operating system. During a valid discharge segment, its continuous-time evolution is
d s u ( t ) d t = r u ( t ) ,             r u ( t ) 0 ,
where r u ( t ) is the predicted decline rate of the observable SOC proxy in s−1. For aligned observations separated by Δ t , the corresponding observed decline-rate target is
y u ( t ) = s u ( t ) s u ( t + Δ t ) Δ t .
Both quantities use normalized SOC fraction per second. The quality rules select valid discharge intervals before y u ( t ) enters model fitting.
Sparse event streams enter a recursive memory representation. For event channel m and decay component h,
z u , m , h ( t ) = exp   Δ t λ m , h z u , m , h ( t Δ t ) + e u , m ( t ) ,
where e u , m ( t ) is the aligned event count and λ m , h > 0 is the memory time constant. Multiple decay components allow one event channel to express short, intermediate, and sustained residual responses. The stacked vector z u ( t ) provides a compact causal summary of event history and can be updated as each local record interval arrives.
The three unscaled drain components are
p u base ( t ) = b u , p u sync ( t ) = g u , c ( t ) β u T x u ( t ) , p u mem ( t ) = g u , a ( t ) α u T z u ( t ) ,               p u ( t ) = p u base ( t ) + p u sync ( t ) + p u mem ( t ) ,
where b u is the personal maintenance baseline, x u ( t ) contains synchronous device states, and the non-negative vectors β u and α u quantify synchronous and delayed contributions. The positive gains g u , c ( t ) and g u , a ( t ) describe observable context modulation. The separation follows recent mobile-energy evidence linking application, network, workload, and physical operating conditions to discharge while distinguishing instantaneous state effects from delayed event responses [2,3,4]. Figure 3 visualizes how observed state intervals and discrete event triggers map into the three module outputs and their composed decline rate.
Session and temperature variation enter through a positive dimensionless scale factor,
log κ u ( t ) = c 0 + b u , l u ( t ) sess + R therm   T u ( t ) ,
where c 0 is the common log-scale reference, l u ( t ) indexes the discharge session, b u , l u ( t ) sess is its slowly varying offset, and R therm is the temperature correction driven by the logged operating temperature T u ( t ) . The final predicted decline rate is
r u ( t ) = κ u ( t ) p u base ( t ) + p u sync ( t ) + p u mem ( t ) .
Equation (8) gives every participating user role the same model grammar while preserving the partition-specific parameter values and session states learned during the current execution.
Let θ u collect the baseline, synchronous weights, event-memory weights, context-gain parameters, and scale terms of user partition u. Its constrained fitting objective is
θ ^ u = arg min θ Ω u 1 | I u | t I u y u ( t ) r u ( t ; θ ) 2 + λ reg P ( θ ) ,
where I u contains valid intervals from the current user partition, Ω u imposes the non-negative structural constraints, P is the regularizer, and λ reg controls its strength. The optimizer output becomes the temporary source model used by the model-knowledge interface in the same execution.

2.4. Knowledge-Package Construction

After local alignment and transformation, F ˜ u contains only the model-specific coordinates required by the three-module fitting workflow. Directly readable raw fields and identifiers are excluded before cross-partition exchange. Transport encryption can protect this transformed feature set in a physical deployment, but cryptographic execution is outside the reported experiment. For coordinate-compatible source models, a fixed projection Π maps the baseline, synchronous, asynchronous, and context blocks into identically ordered coordinates. Let n u denote the effective number of valid local fitting intervals. The common-coordinate package is
K u cc = F ˜ u ,   Π θ ^ u ,   n u .
The feature field supplies the transformed coordinates, the parameter field retains the meanings of the three drain components, and n u supplies the support weight used during aggregation. Session identifiers, latent event histories, source timestamps, applications, locations, complete trajectories, and per-origin targets remain within the user partition.

2.5. Round-Wise Federated Aggregation of Module-Aligned Parameters

At communication round r, the service selects the participating source set C v ( r ) U v . Each selected source initializes its local coefficient vector from the current aggregate vector, performs the prescribed local updates, and returns the updated baseline, synchronous-response, and event-memory coefficient blocks in their common order. The round-specific support weights are
w u ( r ) = n u h C v ( r ) n h ,   u C v ( r ) w u ( r ) = 1 .
The service then forms
θ ¯ ( r + 1 ) = u C v ( r ) w u ( r ) Π θ u ( r , E ) ,
where E is the number of local steps and Π preserves the shared block order. Repeating this operation propagates the module decomposition through federated learning as three explicit, consistently ordered coefficient blocks. After the final round, ψ ^ v = θ ¯ ( R ) supplies the held-out target initialization. The exact local objective, gradient update, client participation, and round count used in the experiment are given in Section 3.2.
The methodological scope of this study is defined by the common-coordinate workflow, in which the maintenance-baseline, synchronous-response, and asynchronous event-memory blocks retain their semantic alignment from local estimation through federated aggregation and chronological target personalization. This implemented path provides a common basis for the algorithmic specification and empirical evaluation, maintaining direct correspondence among the proposed method, its execution, and the reported evidence.

2.6. Few-Shot Fine-Tuning and TTE Inference

The aggregate three-module model is delivered to a held-out target-device role v. A fixed, small chronological support set S v contains the prediction origins belonging to the first five eligible completed target-user discharge segments. For support origin i, let y v , i > 0 denote the observed decline-rate target. The robust personal rate is
r ˜ v = median i S v y v , i .  
The eight final target-user partitions are isolated before coefficient selection. A source-only development set U dev = U T supports an inner chronological grid search over the bounded candidate set Γ [ 0 , 1 ω min ] , where ω min > 0 guarantees a positive aggregate-model contribution. Within this source-side search, eligible development users act in turn as pseudo-target roles: their earlier records provide a personal-rate estimate, their later development records provide the scoring origins, and the remaining development users form the corresponding aggregate model. Let T ^ G , u , i ( α ; r ˜ u ) denote the resulting TTE at source-side scoring origin i. The pooled source-side RMSE selects
α ^ ft = arg min α Γ 1 N src u U dev * i Q u src T ^ G , u , i   α ; r ˜ u T u , i 2 1 / 2 ,
where U dev * contains the eligible source-side pseudo-target roles, Q u src is the corresponding chronological source-side scoring set, T u , i is the observed TTE, and N src = u U dev * | Q u src | . Equation (14) fixes one coefficient for all outer target-user folds before any target-user record is accessed. Target-user records therefore contribute only after aggregate-model formation and coefficient selection: Equation (13) uses the early support block to estimate r ˜ v , and all later origins remain exclusive final-evaluation records.
For a live local context ξ v ( t ) , let r ^ G , v ( t ) > 0 be the aggregate three-module model decline-rate prediction. Lightweight personalized fine-tuning applies the source-selected geometric shrinkage
r ^ v ( t ) = exp   1 α ^ ft log r ^ G , v ( t ) + α ^ ft log r ˜ v .
The bounded weight retains population information while calibrating the overall decline scale to the target device. The aggregate three-module predictor continues to determine the time-varying response, and the robust personal rate supplies a low-dimensional correction from the sparse support record. Starting from prediction time t 0 and current SOC proxy s 0 , the forward trajectory is
s ^ v ( t 0 + τ ) = s 0 0 τ r ^ v ( t 0 + η )   d η .
The device reports the first crossing of terminal threshold s ¯ :
T ^ v ( t 0 , s 0 ; s ¯ ) = inf τ 0 : s ^ v ( t 0 + τ ) s ¯ .
The origin-level implementation uses the piecewise-constant-rate case of Equations (16) and (17). With decline rates expressed per second, the predicted TTE in minutes is
T ^ v , i = max   s v , i s ¯ i , 0 60   r ^ v , i .
where s v , i is the SOC proxy observed at origin i, s ¯ i is the terminal threshold assigned to that origin, and r ^ v , i is the fine-tuned decline rate held constant over the prediction horizon. The context path, fine-tuned head, forward trajectory, TTE, and component attributions constitute the local outputs, and the empirical protocol records the corresponding origin-level predictions.
Algorithm 1 presents the implemented user-held-out workflow. The source-only search fixes the common personalization coefficient before any target-user record is accessed. The outer loop then holds out one target user v at a time, forms U v src = U { v } , and runs the complete federated optimization on that source set.
Algorithm 1 User-Held-Out Federated Training and Few-Shot Personalization
LinePseudocode
InputUser records { D u } u U ; held-out targets T ; target support sets { S v } ; source-only coefficient grid Γ ; fixed optimization settings from Table 2.
OutputFold-specific shared models { ψ ^ v } , fixed coefficient α ^ ft , and local TTE outputs.
1 α ^ ft SourceOnlyGridSearch ( { D u : u U T } , Γ )                                                      ▹ no target data
2for each held-out target user  v T do
3      U v src U { v } ; ψ v ( 0 ) 0
4     for each  u U v src  do  F ˜ u , v LocalTransform ( D u )  end for
5     for  r = 0 , , R 1  do
6          C v ( r ) SampleWithoutReplacement ( U v src , K )
7         for each  u C v ( r )  in parallel do
8               w u , v ( r , 0 ) ψ v ( r )
9              for  e = 0 , , E 1  do
10                   g L u , v ( w u , v ( r , e ) ) ; g ˜ g / max { 1 , g 2 / G max }
11                   w u , v ( r , e + 1 ) w u , v ( r , e ) η g ˜
12              end for; Send ( w u , v ( r , E ) , n u )
13         end for
14          ψ v ( r + 1 ) u C v ( r ) n u h C v ( r ) n h w u , v ( r , E )
15     end for; ψ ^ v ψ v ( R )
16      r ˜ v MedianPersonalRate ( S v )                                              ▹ first five complete segments only
17      r ^ v FineTune ( ψ ^ v , r ˜ v , α ^ ft )
18      ( s ^ v , T ^ v ) PredictLaterOrigins ( r ^ v )                                                              ▹ support excluded
19end for; return  { ψ ^ v , r ^ v , s ^ v , T ^ v } v T
Table 2. Fixed configuration of the user-held-out aggregate-model evaluation.
Table 2. Fixed configuration of the user-held-out aggregate-model evaluation.
ParameterSymbolFixed Setting
Temporal resolution Δ t 60 s
Event-memory constants: Wi-Fi, media, Wi-Fi P2P, and Bluetooth λ m , h { 30 , 120 , 600 } s
Event-memory constants: cellular activity λ m , h { 30 , 120 , 900 } s
Event-memory constants: call activity λ m , h { 60 , 300 , 1200 } s
Shared-model decline-rate clipping bounds q low , q high 1st–99th percentiles of the positive response values (log decline rate) pooled over the source users of the training fold; the held-out target user is excluded
Ridge penalty λ F 1.0; intercept excluded from regularization
Initial aggregate parameter vector w ( 0 ) Zero initialization
Communication roundsR75
Selected clients per roundK11 of 22, sampled without replacement
Local full-batch gradient steps per roundE2
Learning rate η 0.01
Gradient-norm cap G max 5.0
Source-partition aggregation weight w u ( r ) n u / h C v ( r ) n h , where C v ( r ) is the participating-client set in round r
Candidate mixing coefficients α ft { 0.70 , 0.75 , 0.80 , 0.85 , 0.90 }
Minimum shared-model contribution 1 α ft 0.10
Selected mixing coefficient α ^ ft 0.90
Number of repeated runs N run 10
Terminal SOC-proxy thresholds s ¯ 5% and 20%
Evaluation metricsMAE, RMSE, and R 2

3. Experimental Design

3.1. Dataset and User-Held-Out Evaluation Protocol

The evaluation uses the public MyDigitalFootprint (MDF) smartphone context dataset [5], which contains user separated battery, application, screen, wireless, mobility, temperature, and signal records. The MDF corpus is the only user-partitioned dataset available for this study, and its limited longitudinal coverage provides the intended small-sample setting for short-history personalization. After charging intervals are removed and chronological discharge segments are reconstructed, the resulting corpus contains 23 retained user/device partitions. The within-partition origin–threshold characterization in Section 4.1 uses all 23 partitions and pools 1781 valid prediction origins, comprising 919 origins for the 5% terminal threshold and 862 origins for the 20% threshold. The paired aggregate-model comparison in Section 4.2 uses all eight target partitions that satisfy the chronological support-and-evaluation requirements; these partitions contribute 447 later evaluation origins. The eight target partitions are isolated simultaneously from the source-only coefficient search. The remaining partitions provide the chronological development records used to compare the candidate mixing coefficients by pooled RMSE, and the selected coefficient is fixed before the outer target-user folds begin. The outer evaluation uses a distinct isolation level: each split holds out its current target partition, forms the aggregate model from the other 22 partitions, estimates the target personal rate from its first five completed segments, and evaluates the personalized model on all subsequent completed segments. Within every outer fold, the held-out target user’s records do not enter preprocessing-statistic estimation, aggregate-model fitting, or coefficient selection, and the 447 later origins remain exclusive final-evaluation records.
The empirical privacy scope follows this target-user holdout and chronological isolation: every cross-partition message in the evaluated common-coordinate pipeline consists of a locally preprocessed model-specific feature set, aligned fitted parameters, and support weights, and the transmitted payload contains no directly readable raw telemetry, direct identifiers, or directly interpretable personal records. The current evaluation characterizes this data-access and representation boundary. It does not evaluate transport encryption, inference attacks, differential privacy, or secure aggregation. Deployment studies can add these protection layers and measure their effects on attack resistance, accuracy, communication, and on-device resource use [10,11,12].
Figure 4 illustrates the minute-resolved state-and-event structure of four representative user records. The four fingerprints display diversity in SOC progression, screen duty, application activity, and event-stream intensity. The corpus-wide inputs additionally cover wireless and media activity, mobility, temperature, and signal conditions. The evaluated device scope consists of the personal smartphone partitions represented in the MDF corpus. Across these heterogeneous partitions, the three-component formulation retains a common model structure and consistent physical meanings for baseline drain, synchronous state response, and asynchronous event memory. Partition-specific estimation and few-shot personalization adapt the corresponding parameters and personal discharge scale to the observed usage styles and operating conditions. This shared form supports cross-user knowledge synthesis and target-side adaptation within the represented device environment.
Figure 5 characterizes dependence among six event channels through pairwise Spearman correlations over 219,788 aligned non-charging minutes. The BT channel aggregates minute-level Bluetooth activity.
Pairwise association is weak across the event channels. Cellular activity and BT have the largest correlation ( ρ = 0.128 ), followed by Wi-Fi and cellular activity ( ρ = 0.109 ) and Wi-Fi and BT ( ρ = 0.087 ). Wi-Fi and Wi-Fi P2P show a small negative association ( ρ = 0.058 ), and every remaining absolute correlation is at most 0.057. This distributed correlation structure indicates complementary temporal information across event channels. Channel-specific encoding within the asynchronous memory module enables the aggregate three-module model to estimate their delayed contributions.

3.2. Aggregate-Model Formation Under Common Coordinates

The aggregate-model comparison comprises prepersonalization and postpersonalization stages. The prepersonalization stage applies the fold-specific aggregate three-module model directly to each target user’s later origins. The postpersonalization stage applies the same model after fitting the constrained log-rate head on the fixed early support block. A single coefficient α ft , common to all target users, is selected by source-only chronological grid search and fixed before the target-user folds, and the bounded candidate set preserves at least 10% of the aggregate log-rate response. User-level adaptation enters through the robust personal rate estimated from each target user’s early support block. The paired comparison reports MAE, RMSE, and R 2 . Representative three-module panels are selected from eligible users after completion of aggregate-model formation, personalized fine-tuning, and local inference.
The main federated experiment was repeated using ten prespecified random seeds to quantify the mean and sample standard deviation across runs.
The empirical protocol represents the federated roles through partition-preserving computation. Within each outer split, preprocessing statistics are estimated from the non target user partitions, after which the common coordinate feature matrices are reconstructed by user. Training split medians replace missing feature values. For feature j and positive decline rate target r i , the common coordinate transforms are
x ˜ i , j = log   1 + max { x i , j , 0 } μ x , j σ x , j ,             y ˜ i = log r i μ y σ y ,
where x i , j is the raw value of feature j at origin i, and μ x , j , σ x , j , μ y , and σ y are the fold-specific means and standard deviations of the transformed features and log-rate targets; every location and scale statistic is fitted on the current outer source fold. Each source partition supplies the model-specific feature set after transformation. The exchanged set contains the coordinates required by the defined model operations and excludes raw rows, exact timestamps, direct identifiers, and directly readable personal records. All reported MDF results quantify the evaluated common-coordinate workflow, in which round-wise sample-count-weighted aggregation preserves the aligned baseline, synchronous-response, and event-memory coefficient blocks. Target-user records enter only after shared-model formation through chronological personalized fine-tuning and final evaluation.
Let X u , v and y u , v denote the standardized design matrix and log-decline-rate target for source user u when target user v is held out. For each outer fold, the global vector is initialized as w v ( 0 ) = 0 . At round r, 11 of the 22 source users are sampled without replacement. Every selected client starts from the current global vector and minimizes the ridge-regularized source objective
L u , v ( w ) = 1 n u X u , v w y u , v 2 2 + λ F R w 2 2 .
Here, n u is the number of source-user training origins, λ F controls ridge regularization, and R excludes the intercept from that penalty. Algorithm 1, lines 8–14, specifies initialization from the current global vector, gradient clipping, two full-batch local steps, and sample-count-weighted aggregation. The shared model used for target personalization is w ^ v = w v ( 75 ) . Thus, ridge regularization defines the local objective within the 75-round federated procedure; it is not a separate closed-form fitting stage followed by a single aggregation.
Table 2 summarizes the numerical settings used in feature construction, local fitting, federated optimization, personalization, and repeated evaluation.
The experiments were executed under Microsoft Windows 11 on a system equipped with an Intel Core Ultra 5 338H processor, an Intel Arc B370 GPU, and 32 GB of system memory.
The external comparison assigns a distinct diagnostic role to each literature baseline under the same user-held-out chronological protocol. FedAvg [7] is selected because it is the canonical parameter-averaging baseline for federated learning and provides a standard reference for the value added by target-side personalization. Applied to the same 41-coefficient three-module model, its unpersonalized prediction is numerically identical to the before-fine-tuning stage of the proposed workflow. Ditto [14] is selected to represent full-vector personalized federated learning: it retains the 41-coefficient global vector and fits a separate 41-coefficient personal vector, with λ D { 0.01 , 0.1 , 1 , 10 , 100 } selected on source-only chronological development records and fixed before the target-user folds. The GRU [32] is selected as a recurrent sequence-modeling baseline and maps each causal sequence of 40-dimensional feature vectors through one recurrent layer with 16 hidden units and a scalar output, giving 2801 trainable parameters; its source-trained network is fine-tuned on the target support block. Source training uses 150 epochs of Adam with a learning rate of 0.01 and weight decay of 0.001, and target fine-tuning uses 40 epochs with a learning rate of 0.003. FedAvg, Ditto, and the proposed framework use the same 75 communication rounds, client-participation fraction, and local-update schedule. The GRU hidden width and fine-tuning budget are selected on the same source-only development records and fixed before the target-user folds. All four learned models use the same 40-feature representation, eight held-out targets, 447 final origins, and isolated chronological target-support and final-evaluation blocks.

3.3. Evaluation Metrics

Let T i and T ^ i denote the observed and predicted TTE values at evaluation origin i, let N be the number of evaluated origins, and let T ¯ = N 1 i = 1 N T i . The mean absolute error is
MAE = 1 N i = 1 N T ^ i T i .
The root mean squared error is
RMSE = 1 N i = 1 N T ^ i T i 2 .
Explained variance is summarized by the coefficient of determination
R 2 = 1 i = 1 N T i T ^ i 2 i = 1 N T i T ¯ 2 .
MAE and RMSE are reported in minutes, while R 2 is dimensionless. The same metric definitions are applied to every origin and threshold cell, representative user, and aggregate-model comparison before and after personalized fine-tuning.

4. Results and Analysis

4.1. Within-Partition Characterization of the Source Models

The first analysis characterizes the SOC dynamics captured by the execution-specific source models through their threshold-crossing outputs. Each source model is estimated and evaluated within the same user partition; these results characterize the representation of observed discharge dynamics and support analysis of the three-module design. Their inferential role is limited to within-partition behavior. Cross-user transfer is assessed separately in Section 4.2 under target-user holdout, chronological support, and later-origin testing. Figure 6 organizes the derived TTE performance by the observed SOC proxy at the prediction origin and the terminal threshold. The matrix representation presents error magnitude and explained variance for each discrete evaluation condition. Table 3 provides the corresponding numerical values and sample sizes.
Absolute threshold-crossing error decreased as the prediction origin approached the terminal state. MAE ranged from 65.92 to 68.73 min at the 100% origin, declined to 21.08 to 24.89 min at the 40% origin, and reached 10.55 min for the 20% to 5% condition. This horizon-dependent pattern reflects the accumulation of discharge-rate uncertainty over longer SOC prediction intervals.
Explained variance remained high across every positive-duration cell. The observed R 2 values ranged from 0.929 to 0.987. The combination from 80% to 5% reached R 2 = 0.987 , and the combination from 40% to 5% reached R 2 = 0.986 . The longest 100% origin conditions retained values of 0.968 and 0.936. The fitted three-module predictor preserved the ordering and variation of threshold-crossing times across heterogeneous SOC trajectories, while absolute error grew with the interval over which discharge-rate discrepancies accumulated.
These origin-specific outputs establish the response behavior contributed by each temporary source model. Each source model maps an origin state and a standardized state-and-event context to a discharge response, a forward SOC trajectory, and a derived threshold-crossing time. In the evaluated common-coordinate workflow, the locally preprocessed model-specific feature representation, aligned three-module parameters, and support weight form the source package used for round-wise aggregation. The following subsection evaluates the fold-specific aggregate model before and after personalized fine-tuning.

4.2. Personalized Fine-Tuning Under Target-User Holdout

The non-target partitions form the aggregate model before the early support records enter personalization. The paired evaluation then applies the shared and personalized models to the same later target-user origins.
Table 4 gives the pooled summaries and repeat-run dispersion under the paired evaluation protocol. The source-only grid search fixes the shared mixing coefficient before the target-user folds, and the later target-user origins provide the final comparison. Personalized fine-tuning reduced MAE from 185.75 to 61.16 min, a 67.07% reduction. RMSE decreased from 295.52 to 83.10 min, a 71.88% reduction, and R 2 increased from 0.1894 to 0.9359. Under the fixed fold protocol, the constrained personal update corrected a substantial proportion of the between-user drain-scale mismatch in the aggregate initialization. Read together with the within-partition characterization in Section 4.1, this comparison locates the personalization burden in the personal drain scale: the three-module response structure transfers across users, and the compact early support block restores the remaining scale information.
Table 5 reports the paired result for every held-out target user and the number of origins contributed by that user. The eight target users are presented as user1–user8 in the fixed row order used throughout this analysis.
Table 4 reports the pooled origin-level metrics across repeated client-participation runs, Table 5 separates the target users, and Figure 7 shows the raw segment-level MAE and RMSE distributions with embedded box summaries before and after personalization. Treating the user as the paired analysis unit, personalized fine-tuning reduced MAE by 82.24 min on average (user-level paired-bootstrap 95% CI: 18.30–182.80 min; exact Wilcoxon p = 0.0234 ) and RMSE by 106.90 min (95% CI: 30.89–216.75 min; p = 0.0156 ); both intervals exclude zero, and all eight held-out users are retained in these statistics. The improvement was also present at both terminal thresholds: MAE decreased from 198.23 to 62.55 min at the 5% threshold and from 173.27 to 59.64 min at the 20% threshold. The magnitude of the gain was not uniform across users, and one held-out user did not improve on either metric; Table 5 reports the individual values. For that user the aggregate model was already among the most accurate before personalization, so Equation (15), which places the larger weight on the personal drain scale at α ^ ft = 0.90 , has little residual error to recover and can instead carry a support-block drain level that the later origins no longer match. A plausible reading is therefore that the constrained update is most valuable when a user’s drain scale departs from the population and least valuable, occasionally adverse, when the aggregate model already describes that user well; this remains an interpretation of a single case rather than a tested claim. The small standard deviations in Table 4 quantify sensitivity to repeated client-participation draws under the fixed users, whereas the per-user results and the paired analysis characterize the between-user variation that the pooled metrics do not display.
The completed comparison validates formation, delivery, and personalized fine-tuning of the aggregate three-module model. Temporary source models in the participating source partitions produce aligned parameter updates, the coordinating routine performs weighted aggregation, the resulting aggregate model is delivered to the target partition, and the early support segments provide the local personal-rate estimate used with the source-selected coefficient. The geometric log-rate blend adjusts personal scale while preserving a positive contribution from the aggregate baseline, synchronous-response, and event-memory representation. Raw log rows and directly readable personal records reside within their assigned user partitions throughout the computational protocol; only the locally preprocessed model-specific feature representation and compact model fields cross the partition boundary. This partition-preserving data flow defines the empirical privacy scope of the study.

4.3. Contribution of the Three-Module Decomposition

Figure 8 compares five explicitly nested predictor structures. The static-rate referencepropagates TTE from one constant drain-rate estimate. The recent-history reference uses the decline rate observed immediately before the prediction origin. The synchronous-state model maps current device states to drain through the synchronous module. The baseline and synchronous model combines the persistent personal baseline with the synchronous module. The hierarchical three-module model integrates the personal baseline, synchronous activity response, and asynchronous multi-timescale event memory. Table 6 supplies the exact values for these definitions.
At the 5% terminal threshold, performance improved consistently across the nested structures. From the static rate reference to the baseline and synchronous model, MAE decreased from 208.64 to 85.14 min and R 2 increased from 0.233 to 0.853. Incorporating asynchronous event memory produced the strongest result, with an MAE of 28.48 min, an RMSE of 36.59 min, and R 2 = 0.976 .
The same ordering remained visible at the 20% threshold. The hierarchical three-module model achieved an MAE of 39.71 min and an RMSE of 51.88 min with R 2 = 0.937 . Relative to the baseline and synchronous model, event memory reduced MAE by 53.98% and RMSE by 72.31%. At the 5% threshold, the corresponding reductions were 66.55% and 77.91%. The improvement supports the asynchronous term as a substantive part of the temporary personal source model, especially when wireless, media, or system events retain an energy effect after their recorded trigger.
The module-resolved results establish the value of the complete representation. The next comparison tests whether this advantage persists against established federated and recurrent baselines.

4.4. External Baseline Comparison

Table 7 reports the methods from the largest to the smallest error. FedAvg is included as the canonical federated-learning baseline from the literature. Under the controlled implementation used here, its unpersonalized output is numerically identical to the before-personalization column of Table 4; comparison with the complete framework therefore measures the additional effect of the constrained personal-rate calibration. The GRU and Ditto rows compare the complete proposed workflow with recurrent sequence learning and full-vector personalization, respectively. The proposed framework achieved an MAE of 61.16 min, an RMSE of 83.10 min, and R 2 = 0.9359 . Relative to the strongest independent comparator, Ditto, it reduced MAE by 14.55% and RMSE by 18.94%, while increasing R 2 by 0.0335.
Read together, Table 6 and Table 7 separate two sources of performance. The component comparison identifies the predictive contribution of the baseline, synchronous-response, and asynchronous event-memory decomposition. The FedAvg stage reference then shows the shared model before target calibration. Ditto and the GRU test alternative personalization and sequence-modeling choices. The proposed workflow retains one coherent module-decomposed representation from source learning through aggregation and confines target adaptation to the personal drain scale. This structural continuity yields the leading MAE, RMSE, and R 2 values with a compact local update.

4.5. Computational and Communication Cost

Table 8 summarizes the computational structure and model-state requirements of the proposed framework and the representative baselines. The proposed framework retains 41 trainable coefficients and one locally derived scalar in a 0.168 kB model state. This corresponds to 50.00% fewer trainable parameters and 48.78% less model-state memory than Ditto, and 98.54% fewer trainable parameters and 98.50% less model-state memory than the GRU.
Across the eight target-user folds, each fold comprised 825 two-step source-client updates over 75 rounds, one target-user personal-rate calculation, one scalar mixing operation per prediction, and evaluation at that fold’s final origins. These operation counts provide the reproducible numerical-workload boundary for coefficient updates, sample-count-weighted aggregation, target personal-rate estimation, scalar mixing, and prediction at the final origins. End-to-end mobile latency additionally depends on feature extraction, file access, client scheduling, serialization, encryption or decryption, network transport, coordination-service overhead, and operating-system scheduling, and therefore requires direct measurement on physical devices. For a reference request–response deployment, one personalized TTE query uploads 40 locally transformed feature values, the current SOC proxy, the requested terminal threshold, and one local calibration scalar, and downloads one predicted TTE value. With float32 serialization, the raw application payload is 176 bytes, or 0.176 kB, per query. This estimate excludes model-training traffic, serialization metadata, encryption framing, transport headers, retransmission, and network-control traffic. These quantities define four separate accounting categories: model-state memory, training-update workload, per-query application-layer data, and end-to-end deployment cost.

4.6. Discussion

The module decomposition is the physical and computational center of the framework. The baseline term represents persistent drain, the synchronous term maps the current operating state, and the asynchronous event-memory term carries residual responses after recorded events at multiple decay scales. The within-partition analysis shows that this event-memory component improves representation of the observed discharge dynamics; the separate target-user-held-out analysis establishes transfer beyond the partition used for source-model estimation.
In the target-user-held-out comparison, FedAvg serves both as the canonical external aggregation baseline and, under the shared three-module backbone, as the unpersonalized reference for isolating the constrained target update. Ditto and the GRU test full-vector personalization and recurrent sequence modeling, respectively. The proposed workflow outperformed both independent comparators, and the user-level paired analysis showed a significant reduction in both error measures over the held-out users, with paired-bootstrap confidence intervals excluding zero. The magnitude of the gain was not uniform across users, and one held-out user did not improve on either metric. Repeated-run standard deviations quantify sensitivity to client participation, whereas the target-user-held-out results and user-level paired analysis evaluate generalization to held-out users within the MDF dataset and characterize the between-user heterogeneity that the pooled metrics conceal.
The evaluated scope retains raw telemetry and identifiers locally and exchanges only transformed model-specific representations and compact fields. The findings are bounded to the MDF partitions and their represented operating conditions; transport encryption, formal privacy mechanisms, hardware variation, battery aging, end-to-end latency, and energy use require physical deployment studies. Within this scope, the 41-coefficient model, one local calibration scalar, explicit update count, and the 0.176 kB raw payload of one reference TTE request define the implementation profile.

5. Conclusions

This study develops and evaluates an integrated SOC prediction workflow that connects a module-decomposed predictor with federated aggregation, chronological few-shot personalization, and trajectory-based TTE inference. Federated aggregation preserves the baseline, synchronous-response, and asynchronous event-memory blocks, while chronological few-shot personalization adjusts only the personal drain scale.
On the MDF partitions, personalization achieved an MAE of 61.16 min, an RMSE of 83.10 min, and R 2 = 0.9359 , reducing MAE and RMSE by 67.07% and 71.88% relative to the shared model. The reduction in both error measures was statistically significant in a paired user-level analysis over the held-out target users, although the magnitude of the gain was not uniform and one of the eight users did not improve on either metric; the framework also outperformed Ditto. The target-user-held-out design and user-level paired analysis provide evidence of generalization to previously unseen users within the represented MDF setting. The model uses 41 trainable coefficients and one local scalar in a 0.168 kB model state. Separately, the serialized application data for one reference TTE query amount to 0.176 kB. This application-layer quantity precedes protocol, encryption, and transport framing, while training communication and end-to-end deployment cost form separate accounting categories.
These findings establish the accuracy and compact numerical profile of the common-coordinate workflow within the represented MDF setting. Future work will evaluate physical multi-device deployment across hardware, battery-health, and environmental variation, measure end-to-end cost and additional privacy mechanisms, adapt the strength of the personal-scale update to the agreement between a user’s support block and the aggregate prediction, and extend the knowledge-synthesis stage to response-based distillation across heterogeneous model structures.

Author Contributions

Writing—original draft, C.X.; Writing—review & editing, C.X.; Visualization, C.X.; Supervision, C.H. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

The data analyzed in this study were obtained from the publicly available MyDigitalFootprint (MDF) dataset at https://github.com/contextkit/MyDigitalFootprint (accessed on 28 June 2020) and are described in Ref. [5].

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Pereira, R.; Matalonga, H.; Couto, M.; Castor, F.; Cabral, B.; Carvalho, P.; de Sousa, S.M.; Fernandes, J.P. GreenHub: A large-scale collaborative dataset to battery consumption analysis of Android devices. Empir. Softw. Eng. 2021, 26, 38. [Google Scholar] [CrossRef] [Scilit]
  2. Flores-Martín, D.; Laso, S.; Herrera, J.L. Enhancing smartphone battery life: A deep learning model based on user-specific application and network behavior. Electronics 2024, 13, 4897. [Google Scholar] [CrossRef] [Scilit]
  3. Xu, C.; Wang, R.; Huang, C. Separating instantaneous and delayed battery-drain effects for smartphone remaining runtime prediction. Electronics 2026, 15, 3257. [Google Scholar] [CrossRef] [Scilit]
  4. Yang, C.; Gu, B.; Li, X.; Zhang, X.; Zhang, X. Electrochemical-informed equivalent-circuit thermal framework for smartphone battery drain: Mechanism analysis, TTE prediction, and power-saving strategies. Batteries 2026, 12, 198. [Google Scholar] [CrossRef] [Scilit]
  5. Campana, M.G.; Delmastro, F. MyDigitalFootprint: An extensive context dataset for pervasive computing applications at the edge. Pervasive Mob. Comput. 2021, 70, 101309. [Google Scholar] [CrossRef] [Scilit]
  6. Li, T.; Tong, X.; Wang, H.; Tu, Z.; Tarkoma, S.; Han, Z.; Hui, P. Smartphone app usage analysis: Datasets, methods, and applications. IEEE Commun. Surv. Tutor. 2022, 24, 937–966. [Google Scholar] [CrossRef] [Scilit]
  7. McMahan, B.; Moore, E.; Ramage, D.; Hampson, S.; Agüera y Arcas, B. Communication-efficient learning of deep networks from decentralized data. In Proceedings of the 20th International Conference on Artificial Intelligence and Statistics, Fort Lauderdale, FL, USA, 20–22 April 2017; PMLR: Cambridge, MA, USA, 2017; Volume 54, pp. 1273–1282. Available online: https://proceedings.mlr.press/v54/mcmahan17a.html (accessed on 23 July 2026).
  8. Li, T.; Sahu, A.K.; Zaheer, M.; Sanjabi, M.; Talwalkar, A.; Smith, V. Federated optimization in heterogeneous networks. Proc. Mach. Learn. Syst. 2020, 2, 429–450. Available online: https://proceedings.mlsys.org/paper_files/paper/2020/hash/1f5fe83998a09396ebe6477d9475ba0c-Abstract.html (accessed on 23 July 2026).
  9. Kairouz, P.; McMahan, H.B.; Avent, B.; Bellet, A.; Bennis, M.; Bhagoji, A.N.; Bonawitz, K.A.; Charles, Z.; Cormode, G.; Cummings, R.; et al. Advances and open problems in federated learning. Found. Trends Mach. Learn. 2021, 14, 1–210. [Google Scholar] [CrossRef] [Scilit]
  10. Li, Z.; Zhang, J.; Liu, L.; Liu, J. Auditing privacy defenses in federated learning via generative gradient leakage. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), New Orleans, LA, USA, 19–24 June 2022; IEEE: Piscataway, NJ, USA, 2022; pp. 10132–10142. Available online: https://openaccess.thecvf.com/content/CVPR2022/html/Li_Auditing_Privacy_Defenses_in_Federated_Learning_via_Generative_Gradient_Leakage_CVPR_2022_paper.html (accessed on 19 August 2026).
  11. Andrew, G.; Thakkar, O.; McMahan, H.B.; Ramaswamy, S. Differentially private learning with adaptive clipping. In Advances in Neural Information Processing Systems; Curran Associates, Inc.: Red Hook, NY, USA, 2021; Volume 34, pp. 20461–20475. Available online: https://proceedings.neurips.cc/paper/2021/hash/91cff01af640a24e7f9f7a5ab407889f-Abstract.html (accessed on 23 July 2026).
  12. So, J.; He, C.; Yang, C.-S.; Li, S.; Yu, Q.; Ali, R.E.; Guler, B.; Avestimehr, S. LightSecAgg: A lightweight and versatile design for secure aggregation in federated learning. Proc. Mach. Learn. Syst. 2022, 4, 694–720. Available online: https://proceedings.mlsys.org/paper_files/paper/2022/hash/6c44dc73014d66ba49b28d483a8f8b0d-Abstract.html (accessed on 19 August 2026).
  13. Fallah, A.; Mokhtari, A.; Ozdaglar, A. Personalized federated learning with theoretical guarantees: A model-agnostic meta-learning approach. In Advances in Neural Information Processing Systems; Curran Associates, Inc.: Red Hook, NY, USA, 2020; Volume 33, pp. 3557–3568. Available online: https://proceedings.neurips.cc/paper/2020/hash/24389bfe4fe2eba8bf9aa9203a44cdad-Abstract.html (accessed on 23 July 2026).
  14. Li, T.; Hu, S.; Beirami, A.; Smith, V. Ditto: Fair and robust federated learning through personalization. In Proceedings of the 38th International Conference on Machine Learning, Virtual Conference, 18–24 July 2021; PMLR: Cambridge, MA, USA, 2021; Volume 139, pp. 6357–6368. Available online: https://proceedings.mlr.press/v139/li21h.html (accessed on 23 July 2026).
  15. Collins, L.; Hassani, H.; Mokhtari, A.; Shakkottai, S. Exploiting shared representations for personalized federated learning. In Proceedings of the 38th International Conference on Machine Learning, Virtual Conference, 18–24 July 2021; PMLR: Cambridge, MA, USA, 2021; Volume 139, pp. 2089–2099. Available online: https://proceedings.mlr.press/v139/collins21a.html (accessed on 23 July 2026).
  16. Lin, T.; Kong, L.; Stich, S.U.; Jaggi, M. Ensemble distillation for robust model fusion in federated learning. In Advances in Neural Information Processing Systems; Curran Associates, Inc.: Red Hook, NY, USA, 2020; Volume 33, pp. 2351–2363. Available online: https://proceedings.neurips.cc/paper/2020/hash/18df51b97ccd68128e994804f3eccc87-Abstract.html (accessed on 23 July 2026).
  17. Wu, C.; Wu, F.; Lyu, L.; Huang, Y.; Xie, X. Communication-efficient federated learning via knowledge distillation. Nat. Commun. 2022, 13, 2032. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  18. Zhang, J.; Guo, S.; Ma, X.; Wang, H.; Xu, W.; Wu, F. Parameterized knowledge transfer for personalized federated learning. In Advances in Neural Information Processing Systems; Curran Associates, Inc.: Red Hook, NY, USA, 2021; Volume 34, pp. 10092–10104. Available online: https://proceedings.neurips.cc/paper/2021/hash/5383c7318a3158b9bc261d0b6996f7c2-Abstract.html (accessed on 23 July 2026).
  19. Ozkara, K.; Singh, N.; Data, D.; Diggavi, S. QuPeD: Quantized personalization via distillation with applications to federated learning. In Advances in Neural Information Processing Systems; Curran Associates, Inc.: Red Hook, NY, USA, 2021; Volume 34, pp. 3622–3634. Available online: https://proceedings.neurips.cc/paper/2021/hash/1dba3025b159cd9354da65e2d0436a31-Abstract.html (accessed on 23 July 2026).
  20. Zhu, Z.; Hong, J.; Zhou, J. Data-free knowledge distillation for heterogeneous federated learning. In Proceedings of the 38th International Conference on Machine Learning, Virtual Conference, 18–24 July 2021; PMLR: Cambridge, MA, USA, 2021; Volume 139, pp. 12878–12889. Available online: https://proceedings.mlr.press/v139/zhu21b.html (accessed on 23 July 2026).
  21. Chen, Z.; Yang, H.H.; Quek, T.Q.S.; Chong, K.F.E. Spectral co-distillation for personalized federated learning. In Advances in Neural Information Processing Systems; Curran Associates, Inc.: Red Hook, NY, USA, 2023; Volume 36, pp. 8757–8773. [Google Scholar] [CrossRef] [Scilit]
  22. Huang, G.; Shu, T. Federated Oriented Learning: A practical one-shot personalized federated learning framework. In Proceedings of the 42nd International Conference on Machine Learning, Vancouver, BC, Canada, 13–19 July 2025; PMLR: Cambridge, MA, USA, 2025; Volume 267, pp. 25762–25790. Available online: https://proceedings.mlr.press/v267/huang25ae.html (accessed on 16 August 2026).
  23. Lam, T.C.; Hoang, N.; Low, B.K.H.; Jaillet, P. Model fusion for personalized learning. In Proceedings of the 38th International Conference on Machine Learning, 18–24 July 2021; PMLR: Cambridge, MA, USA, 2021; Volume 139, pp. 5948–5958. Available online: https://proceedings.mlr.press/v139/lam21a.html (accessed on 23 July 2026).
  24. Zhang, H.; Li, C.; Dai, W.; Zou, J.; Xiong, H. FedCR: Personalized federated learning based on across-client common representation with conditional mutual information regularization. In Proceedings of the 40th International Conference on Machine Learning, 23–29 July 2023; PMLR: Cambridge, MA, USA, 2023; Volume 202, pp. 41314–41330. Available online: https://proceedings.mlr.press/v202/zhang23w.html (accessed on 23 July 2026).
  25. Zhao, Y.; Yu, G.; Wang, J.; Domeniconi, C.; Guo, M.; Zhang, X.; Cui, L. Personalized federated few-shot learning. IEEE Trans. Neural Netw. Learn. Syst. 2024, 35, 2534–2544. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  26. Tan, A.Z.; Yu, H.; Cui, L.; Yang, Q. Towards personalized federated learning. IEEE Trans. Neural Netw. Learn. Syst. 2023, 34, 9587–9603. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  27. Park, J.; Lee, K.; Lee, S.; Zhang, M.; Ko, J. AttFL: A personalized federated learning framework for time-series mobile and embedded sensor data processing. Proc. ACM Interact. Mob. Wearable Ubiquitous Technol. 2023, 7, 116. [Google Scholar] [CrossRef] [Scilit]
  28. Aminifar, A.; Shokri, M.; Aminifar, A. Privacy-preserving edge federated learning for intelligent mobile-health systems. Future Gener. Comput. Syst. 2024, 161, 625–637. [Google Scholar] [CrossRef] [Scilit]
  29. Chai, Y.; Liu, H.; Liu, X.; Wang, L.; Liu, Y.; Wang, J. A novel personalized federated learning method for privacy-preserving smart mobile health monitoring. INFORMS J. Comput. 2026, 38, 1165–1180. [Google Scholar] [CrossRef] [Scilit]
  30. Li, Y.; Liang, W.; Li, J.; Cheng, X.; Yu, D.; Zomaya, A.Y.; Guo, S. Energy-aware, device-to-device assisted federated learning in edge computing. IEEE Trans. Parallel Distrib. Syst. 2023, 34, 2138–2154. [Google Scholar] [CrossRef] [Scilit]
  31. Zhang, F.; Liu, X.; Lin, S.; Wu, G.; Zhou, X.; Jiang, J.; Ji, X. No One Idles: Efficient heterogeneous federated learning with parallel edge and server computation. In Proceedings of the 40th International Conference on Machine Learning, Honolulu, HI, USA, 23–29 July 2023; PMLR: Cambridge, MA, USA, 2023; Volume 202, pp. 41399–41413. Available online: https://proceedings.mlr.press/v202/zhang23aa.html (accessed on 16 August 2026).
  32. Cho, K.; van Merriënboer, B.; Gulcehre, C.; Bahdanau, D.; Bougares, F.; Schwenk, H.; Bengio, Y. Learning phrase representations using RNN encoder–decoder for statistical machine translation. In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), Doha, Qatar, October 2014; Association for Computational Linguistics: Stroudsburg, PA, USA, 2014; pp. 1724–1734. [Google Scholar] [CrossRef] [Scilit]
Figure 1. Privacy-isolated architecture built around the module-decomposition-driven SOC model. The solid path is the evaluated workflow: each source terminal constructs baseline, synchronous-response, and asynchronous event-memory features locally; the aligned coefficient blocks undergo round-wise federated aggregation; and the returned shared model is calibrated from a small chronological target support set before local SOC-trajectory and TTE inference. The solid path represents the common-coordinate workflow examined here, while the heterogeneous-structure interface indicates the planned direction for extending knowledge synthesis across model structures.
Figure 1. Privacy-isolated architecture built around the module-decomposition-driven SOC model. The solid path is the evaluated workflow: each source terminal constructs baseline, synchronous-response, and asynchronous event-memory features locally; the aligned coefficient blocks undergo round-wise federated aggregation; and the returned shared model is calibrated from a small chronological target support set before local SOC-trajectory and TTE inference. The solid path represents the common-coordinate workflow examined here, while the heterogeneous-structure interface indicates the planned direction for extending knowledge synthesis across model structures.
Computers 15 00581 g001
Figure 2. Hierarchical construction of the local state-and-event representation from user-partitioned records. Battery history, synchronous device state, asynchronous event memory, operating context, and session scale are aligned within each privacy-isolated user role before temporary source-model estimation.
Figure 2. Hierarchical construction of the local state-and-event representation from user-partitioned records. Battery history, synchronous device state, asynchronous event memory, operating context, and session scale are aligned within each privacy-isolated user role before temporary source-model estimation.
Computers 15 00581 g002
Figure 3. Temporal contribution map of the local three-module discharge model. State intervals drive the synchronous module during the recorded active state. Discrete event triggers initiate decaying memory responses that can overlap and persist after the state returns to zero. The composed decline rate is the sum of baseline, synchronous, and event-memory contributions.
Figure 3. Temporal contribution map of the local three-module discharge model. State intervals drive the synchronous module during the recorded active state. Discrete event triggers initiate decaying memory responses that can overlap and persist after the state returns to zero. The composed decline rate is the sum of baseline, synchronous, and event-memory contributions.
Computers 15 00581 g003
Figure 4. Minute-resolved state-and-event fingerprints for four personal-device records selected from the dataset. Color bands encode the SOC proxy, screen-on duty, running-application count, and event-stream activity. Cross-user variation motivates an aggregate three-module structure with target-specific scale calibration.
Figure 4. Minute-resolved state-and-event fingerprints for four personal-device records selected from the dataset. Color bands encode the SOC proxy, screen-on duty, running-application count, and event-stream activity. Cross-user variation motivates an aggregate three-module structure with target-specific scale calibration.
Computers 15 00581 g004
Figure 5. Minute-level pairwise Spearman correlation heatmap for six event streams. The BT channel aggregates Bluetooth activity within each minute. Coefficients are calculated from 219,788 aligned non-charging minutes; diagonal cells show self-correlation, and the color scale focuses on the observed off-diagonal range.
Figure 5. Minute-level pairwise Spearman correlation heatmap for six event streams. The BT channel aggregates Bluetooth activity within each minute. Coefficients are calculated from 219,788 aligned non-charging minutes; diagonal cells show self-correlation, and the color scale focuses on the observed off-diagonal range.
Computers 15 00581 g005
Figure 6. TTE accuracy across prediction origins and terminal SOC-proxy thresholds. The annotated matrices report MAE, RMSE, and R 2 for the hierarchical three-module local predictor across positive-duration origin and threshold combinations.
Figure 6. TTE accuracy across prediction origins and terminal SOC-proxy thresholds. The annotated matrices report MAE, RMSE, and R 2 for the hierarchical three-module local predictor across positive-duration origin and threshold combinations.
Computers 15 00581 g006
Figure 7. Mirrored mountain–scatter distributions of segment-level TTE MAE and RMSE before (upper) and after (lower) personalization. Points are complete target-user test segments from the raw predictions. Solid boxes show the interquartile range, white center lines show the median, and colored dashed guides project the medians onto the distributions. User-level paired reductions and their confidence intervals are reported in the accompanying text.
Figure 7. Mirrored mountain–scatter distributions of segment-level TTE MAE and RMSE before (upper) and after (lower) personalization. Points are complete target-user test segments from the raw predictions. Solid boxes show the interquartile range, white center lines show the median, and colored dashed guides project the medians onto the distributions. User-level paired reductions and their confidence intervals are reported in the accompanying text.
Computers 15 00581 g007
Figure 8. Module contribution analysis for the hierarchical three-module model and four reference structures at the 5% and 20% terminal thresholds. Grouped horizontal bars report MAE, RMSE, and R 2 for each structure.
Figure 8. Module contribution analysis for the hierarchical three-module model and four reference structures at the 5% and 20% terminal thresholds. Grouped horizontal bars report MAE, RMSE, and R 2 for each structure.
Computers 15 00581 g008
Table 1. Principal notation for source-model estimation, knowledge extraction, aggregate-model synthesis, and personalized fine-tuning.
Table 1. Principal notation for source-model estimation, knowledge extraction, aggregate-model synthesis, and personalized fine-tuning.
SymbolMeaning
u, v, U participating user role, held-out target user, and participating user set
D u , I u chronological record and valid fitting intervals of user partition u
F ˜ u locally preprocessed model-specific feature set
s u ( t ) , y u ( t ) , r u ( t ) SOC proxy, observed decline rate, and predicted decline rate
x u ( t ) , z u ( t ) synchronous-state and asynchronous event-memory vectors
b u , β u , α u baseline, synchronous coefficients, and event-memory coefficients
κ u ( t ) , θ u positive session scale and temporary source-model parameters
Π , n u , K u cc compatible-parameter projection, local support weight, and common-coordinate knowledge package
w u ( r ) , θ ¯ ( r ) round-specific normalized user weight and aggregated module-aligned parameters
f G ( · ; ψ ) aggregate three-module model log-drain function and parameter vector
S v chronological target-user support set used for local personal-rate estimation
r ˜ v , α ft robust personal decline rate and aggregate-to-personal fine-tuning weight
s 0 , s ¯ , s ^ v , T ^ v initial SOC proxy, terminal threshold, predicted trajectory, and TTE
Table 3. Within-partition TTE characterization of the fitted source models across SOC-proxy prediction origins and terminal thresholds.
Table 3. Within-partition TTE characterization of the fitted source models across SOC-proxy prediction origins and terminal thresholds.
Initial SOCTerminal SOCNMAE (min)RMSE (min) R 2
100%5%11165.9292.290.968
100%20%12768.7391.340.936
80%5%13543.6453.480.987
80%20%17051.7966.040.944
60%5%16231.8240.980.984
60%20%21937.7148.950.940
40%5%21621.0825.890.986
40%20%34624.8932.860.929
20%5%29510.5512.780.969
Table 4. TTE performance of the aggregate three-module model before and after personalized fine-tuning under the paired evaluation protocol.
Table 4. TTE performance of the aggregate three-module model before and after personalized fine-tuning under the paired evaluation protocol.
MetricBefore Fine-TuningAfter Fine-TuningObserved Change
MAE (min) 185.75 ± 1.72 61.16 ± 0.17 67.07 % ± 0.27  pp
RMSE (min) 295.52 ± 2.04 83.10 ± 0.27 71.88 % ± 0.18  pp
R 2 0.1894 ± 0.0112 0.9359 ± 0.0004 + 0.7465 ± 0.0111
Note: Values are the mean ± sample standard deviation across ten prespecified random seeds. Observed changes are relative percentage changes; their sample standard deviations are reported in percentage points (pp).
Table 5. Per-user TTE performance before and after personalized fine-tuning.
Table 5. Per-user TTE performance before and after personalized fine-tuning.
Target UserOriginsMAE BeforeMAE AfterRMSE BeforeRMSE After
user14888.1840.01180.0549.02
user218883.4375.12123.9397.83
user3780.3150.89101.3364.85
user4110481.0669.68544.9988.90
user5546.9332.6860.9436.00
user63773.029.5096.1014.03
user7953.6964.7473.2691.10
user843144.5250.58181.8665.55
Total/pooled447185.7561.16295.5283.10
MAE and RMSE are reported in minutes, and each row uses the same user’s later origins before and after personalization. Bold indicates the pooled summary across all target users.
Table 6. Predictive performance of reference and component-resolved structures at the 5% and 20% terminal thresholds.
Table 6. Predictive performance of reference and component-resolved structures at the 5% and 20% terminal thresholds.
Terminal SOC 5%Terminal SOC 20%
PredictorMAERMSE R 2 MAERMSE R 2
Static-rate reference208.64378.930.233160.54302.710.230
Recent-history reference152.32305.710.501132.79258.620.438
Synchronous-state model93.88174.530.837104.09192.780.688
Baseline and synchronous model85.14165.640.85386.29187.360.698
Hierarchical three-module model28.4836.590.97639.7151.880.937
MAE and RMSE are reported in minutes. Bold indicates the best value in each metric column.
Table 7. External baseline comparison under the target-user-held-out chronological protocol.
Table 7. External baseline comparison under the target-user-held-out chronological protocol.
MethodMAE (min)RMSE (min) R 2
FedAvg 185.75 ± 1.72 295.52 ± 2.04 0.1894 ± 0.0112
GRU 152.29 ± 7.75 243.19 ± 16.06 0.4489 ± 0.0734
Ditto 71.57 ± 0.57 102.52 ± 0.69 0.9024 ± 0.0013
Proposed framework 61 . 16 ± 0 . 17 83 . 10 ± 0 . 27 0 . 9359 ± 0 . 0004
Note: Values are the mean ± sample standard deviation across ten runs using the same eight held-out targets and 447 final evaluation origins. Bold indicates the best value in each metric column.
Table 8. Computational structure and model-state requirements of the proposed framework and representative baselines.
Table 8. Computational structure and model-state requirements of the proposed framework and representative baselines.
ModelComplexityTrainable ParametersModel-State Memory (kB)
Proposed framework O ( d ) 410.168
Ditto O ( d ) 820.328
GRU O [ H ( d + H ) ] 280111.204
Bold identifies the proposed framework and the lowest trainable-parameter and model-state-memory values.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Xu, C.; Huang, C. Few-Shot Federated Learning for State-of-Charge Prediction Across Privacy-Isolated Personal Mobile Devices. Computers 2026, 15, 581. https://doi.org/10.3390/computers15090581

AMA Style

Xu C, Huang C. Few-Shot Federated Learning for State-of-Charge Prediction Across Privacy-Isolated Personal Mobile Devices. Computers. 2026; 15(9):581. https://doi.org/10.3390/computers15090581

Chicago/Turabian Style

Xu, Chenyue, and Chen Huang. 2026. "Few-Shot Federated Learning for State-of-Charge Prediction Across Privacy-Isolated Personal Mobile Devices" Computers 15, no. 9: 581. https://doi.org/10.3390/computers15090581

APA Style

Xu, C., & Huang, C. (2026). Few-Shot Federated Learning for State-of-Charge Prediction Across Privacy-Isolated Personal Mobile Devices. Computers, 15(9), 581. https://doi.org/10.3390/computers15090581

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

Article Metrics

Back to TopTop