2.3. Calculation of Operational and Energy Indicators
For the transition from primary operation logs to life-cycle indicators, each record was considered at the vehicle-day level, that is, as a daily operational implementation of a particular trolleybus [
55]. For record
j, the total mileage
, mileage in the power-supply mode from the contact network
, mileage in autonomous mode
, daily electricity consumption
, and mode-distributed energy components were recorded as
and
, recovered energy
, as well as the energy of auxiliary systems
.
The actual autonomous-operation share for each daily record was determined as
where
is the observed share of autonomous mileage in daily transport work;
is mileage in autonomous mode, km;
is the total daily mileage, km. Unlike the passport limit “up to 30 km of autonomous travel”, the value
was not set normatively but was extracted from the actual structure of the route, shift, and autonomous sections. Therefore, in further calculations
, it was considered as an empirically observable variable [
56], reflecting the real operating mode [
57], and not as a predetermined scenario parameter.
The average specific energy of daily operation was calculated as
where
is the average specific energy, kWh/km;
is measured daily net energy, kWh;
is the total daily mileage, km.
was further used in the LCC and ELC calculations, as it corresponds to the energy actually taken into account by the operator when estimating operating costs and carbon footprint.
To characterize the power-supply modes separately, the specific energies in the CS and AH modes were additionally calculated:
where
is the specific energy of motion when powered from the contact network, kWh/km;
is the specific energy of autonomous motion, kWh/km;
and
are mode-distributed energy components, kWh;
and
are the corresponding mileages, km. A mode-specific energy indicator was not calculated when its corresponding mileage denominator was zero, negative, or unresolved after verification. Such a record was excluded only from the affected ratio—for example, from eAH when LAH = 0—and could remain available for other valid calculations. Each metric-specific exclusion was retained in the data-quality log together with the affected variable and the reason for exclusion.
It is fundamentally important that
,
, and
are not three interchangeable ways of describing the same energy. In this work,
refers to the measured daily net energy, while it characterizes
the mode-distributed gross energy of motion before the final accounting of recuperation and auxiliary loads. Therefore, the energy balance of the daily recording was given in the form of
where
is the measured daily net energy, kWh;
is the energy related to the movement in the contact-network mode, kWh;
is the energy related to autonomous motion, kWh;
is the recovered energy, kWh;
is the energy of HVAC and auxiliary systems, kWh;
is the residual member of the energy balance, including rounding, measurement errors, and time boundary mismatches of individual telemetry channels. With correct data synchronization,
should remain small compared to
.
Such a notation eliminates the apparent discrepancy between
, and
. The average value
does not have to be a simple linear mixture,
and
, since it normalizes the net energy, which already includes the effect of recuperation and auxiliary systems. At the same time,
, it is possible to assess the difference in driving modes, including the increased energy load of the autonomous sections associated with the storage cycle, route profile, temperature, and operation of auxiliary consumers [
58].
To test the energy model, a regression formulation was used, in which the dependent variable was the daily energy in absolute units, kWh:
Here, is the calculated or measured daily energy, kWh; is a free term that reflects the inevitable daily energy expenditure that is not scalable directly with mileage; is the basic mileage component of energy consumption, kWh/km; is the additional energy contribution of autonomous mileage, kWh/km; is the total daily mileage, km; is the autonomous daily mileage, km; is the cold load indicator; is the heat load indicator; and are binary indicators of medium and high passenger/mass load, respectively; the coefficient characterizes the additional energy associated with the cooling load and has the dimension kWh/(km·°C); it shows the increase in energy consumption by 1 km when the temperature decreases by 1 C below the accepted reference level. The coefficient similarly describes the additional energy at the heat load above the reference temperature level and also has the dimension kWh/(km·°C). and reflect the effect of the vehicle load: sets additional energy per 1 km at an average load, and at a high load relative to the basic category of low load. Therefore and are interpreted as temperature–mileage coefficients, and and as mileage corrections for the operating load.
Temperature variables were calculated using formulas
where
is the average daily outdoor temperature, °C;
is the cold-degree component, °C;
is the hot-degree component, °C. The first value describes the additional energy load at low temperatures associated with cabin heating, battery temperature preparation, and increased losses in electrical components. The second value reflects the additional load at high temperatures associated with air conditioning, ventilation, and thermal limitation of the storage device [
59].
Binary load indicators were set as follows:
The low-load category was used as a base and therefore was not introduced as a separate indicator to avoid a linear relationship between dummy variables. The coefficients and show the additional energy per 1 km at medium and high load relative to the baseline.
The choice of the model for
, rather than directly for
, is due to the fact that daily energy is the primary measurable quantity and correctly scales with mileage. After evaluating the model, the predicted specific energy can be obtained as
where the first term is the predicted daily energy from the regression model, kWh, and the second is the corresponding predicted specific energy, kWh/km. This two-stage formulation preserves the physical interpretation of the daily energy balance while providing the kWh/km indicator required for subsequent LCC and ELC calculations.
The regression is intentionally parsimonious and linear in its parameters. It does not explicitly resolve traffic congestion, stop density, road gradient and surface conditions, intersection delay, acceleration and braking style, driver-specific behaviour, catenary-voltage variation, or nonlinear interactions among route, temperature, passenger load, and battery conditions. Route grouping and subgroup validation capture only part of this heterogeneity. Accordingly, the AH-mileage coefficient is interpreted as an adjusted fleet-level association within the observed operating domain, not as a universal causal or physics-complete coefficient. Future work should compare generalized additive, mixed-effects, and tree-based models using route geometry, traffic state, speed and acceleration traces, and driver-level random effects.
Energy-Model Validation, Statistical Inference, and Subgroup Analysis
To prevent information leakage caused by repeated vehicle-day observations, the revised validation design assigns all records from the same trolleybus to a single fold. A vehicle-grouped 10-fold scheme therefore keeps approximately 11 complete vehicle histories in each test fold and fits the model on the remaining vehicles. Coefficients, preprocessing rules, and categorical encodings are recalculated independently within each training fold.
Predictive accuracy is evaluated only from out-of-fold predictions using the coefficient of determination
R2, mean absolute error
MAE, root mean square error
RMSE, mean absolute percentage error
MAPE, and mean prediction bias:
where
is measured daily net energy, kWh;
is the corresponding out-of-fold prediction, kWh; and n is the number of observations in the evaluated validation subset.
The out-of-fold errors are reported separately by season, daily autonomous-operation share, and route group. Seasons are defined as winter (December–February), spring (March–May), summer (June–August), and autumn (September–November). Daily AH-share classes follow the empirical quartiles: low (pAH ≤ 18.8%), medium (18.8% < pAH < 31.1%), and high (pAH ≥ 31.1%). Routes are divided into low-, medium-, and high-AH groups using tertiles of the annual route-level mean pAH.
Because records from the same trolleybus are not statistically independent, coefficient uncertainty is evaluated using vehicle-clustered robust standard errors. The reporting set comprises the coefficient estimate, clustered standard error, 95% confidence interval, two-sided p-value, and variance inflation factor. Residual diagnostics include residuals versus fitted values, standardized-residual quantiles, subgroup mean bias, and the dependence of absolute error on predicted daily energy. Ninety-five-percent prediction intervals are estimated by vehicle-cluster bootstrap resampling, and empirical coverage is compared with the nominal 95% level.
2.4. SOH Diagnostics, Cross-Check Procedure, and Degradation Indicators
For each pack-month observation, the diagnostic block retained battery age, the BMS-reported state of health, measured available capacity, internal resistance, equivalent full cycles, mean depth of discharge, maximum and minimum cell temperatures, thermal-event count, and the corresponding maintenance and failure history. Individual pack records were preserved throughout preprocessing and were not replaced by vehicle-level or fleet-level averages before the diagnostic checks were completed.
When a periodic capacity-check result was available, the capacity-referenced state of health was calculated as
where
is the capacity-referenced state of health for pack-month observation j, %;
is the measured available capacity obtained during the periodic capacity check, Ah or kWh; and
is the corresponding nominal beginning-of-life capacity expressed in the same units.
The uncertainty of the capacity-referenced SOH was propagated as
where
is the standard uncertainty of the capacity-referenced SOH, percentage points;
is the uncertainty of the measured available capacity; and
is the uncertainty associated with the nominal reference capacity.
The BMS-reported SOH was treated as an operational diagnostic estimate rather than as a self-validating ground-truth value. Where capacity-check data were available, the consistency between the two estimates was evaluated using
where
is the BMS-to-capacity diagnostic discrepancy, percentage points;
is the SOH reported by the onboard battery-management system; and
is the capacity-referenced value.
Pack-to-pack dispersion was retained explicitly because the fleet-average SOH may conceal a limiting pack within one vehicle. For vehicle-level diagnostic screening, the limiting condition was characterized by the minimum pack SOH, maximum internal resistance, and maximum thermal-event count. The within-vehicle SOH spread was calculated as
where
is the SOH spread between packs installed in vehicle
i at time
t, percentage points;
is the SOH of pack
k; and
k denotes the individual battery packs associated with that vehicle.
Battery age was used as a proxy for calendar exposure, EFC and mean DoD as indicators of cyclic loading, and maximum/minimum cell temperatures and thermal-event counts as indicators of thermal history. The available fleet exports did not contain complete cell-level current trajectories, charging cut-off voltage histories, exact charge and discharge C-rates, or a manufacturer-resolved electrochemical identification for every pack. Consequently, these factors were not reconstructed retrospectively, and the observed SOH and resistance trajectories are interpreted as fleet-level diagnostic associations rather than as direct identification of one electrochemical degradation mechanism.
Electrochemical impedance spectroscopy was not part of the routine fleet dataset used in the present analysis. It is considered a potential future diagnostic extension because impedance-domain features can supplement capacity-based SOH checks and can support compact onboard SOH-estimation models [
60,
61]. The current B2 evaluation therefore remains based on the available multiparameter combination of SOH, measured capacity, internal resistance, EFC, DoD, temperature history, thermal events, and failure records.
The B2 decision was formulated as an all-gates eligibility rule rather than as a weighted average of favourable and unfavourable indicators. For each diagnostic criterion m, the binary eligibility indicator was defined as
The overall B2 eligibility indicator was calculated as
where
is the B2 eligibility indicator for vehicle
i at diagnostic time
t;
is the pass/fail result for diagnostic criterion
m; and
M is the number of mandatory diagnostic gates. Battery-life extension was allowed only when
1. Failure of any mandatory gate resulted in suspension of B2 eligibility and transfer of the battery pack to additional diagnostics, derated operation, repair, or replacement.
The diagnostic gates used for the illustrative B2 decision workflow are summarized in
Table 3.
Table 3 converts the B2 strategy from a general condition-based concept into an auditable pass/fail procedure. The 80% SOH threshold is treated as a minimum capacity-retention gate rather than as the only replacement criterion. A pack with SOH > 80% may still be rejected when internal resistance, degradation rate, pack imbalance, thermal history, autonomous-range reserve, or failure history is unacceptable. Conversely, the fleet-average SOH cannot be used to approve all vehicles because the B2 decision is made for the limiting pack associated with each vehicle.
The 6.5-year horizon is therefore not interpreted as a guaranteed physical battery lifetime. It is the central economic scenario evaluated only for packs that continue to satisfy every mandatory gate at successive quarterly reviews. The actual extension may be shorter when a diagnostic gate is violated.
The deterministic all-gates rule was selected for three practical reasons. First, it is directly auditable during workshop and quarterly fleet reviews. Second, it prevents a favourable indicator from compensating for a safety-critical failed gate. Third, the available 12-month dataset is insufficient to calibrate reliable failure probabilities or vehicle-specific hazard functions for every eligibility threshold. The resulting rule is therefore intentionally conservative and transparent rather than statistically optimal.
This design also has explicit limitations relative to probabilistic or risk-based approaches. Binary thresholds discard distance-to-threshold information, treat uncertainty near a cut-off discontinuously, do not model dependence among SOH, internal resistance, EFC, thermal history, and failure records, and cannot quantify the probability of safe operation over a future extension horizon. A probabilistic extension would estimate the conditional probability of safe operation to horizon h, propagate measurement uncertainty, and authorize B2 only when expected cost and risk remain below operator-defined limits. Such calibration requires multi-year post-implementation data containing false alarms, missed detections, withdrawals, and time-to-failure outcomes; these data were not available for the present study.
2.5. LCC, ELC, FMEA, and Multi-Criteria Scenario Comparison
Life-cycle cost was calculated in RUB/km as the sum of energy cost, maintenance and repair cost, downtime cost, the annualized battery replacement component, and condition-monitoring expenditure [
62]. Strategy B1 used a fixed 5.0-year calendar-replacement horizon. Strategy B2 used a variable condition-based horizon
hB2, evaluated from 5.5 to 7.0 years, with 6.5 years adopted as the central scenario rather than as a guaranteed service life.
The annualized battery replacement contribution was calculated as
and total LCC as
where
is the battery replacement contribution at service-life horizon
h, RUB/km;
is the replacement cost of the battery set, RUB;
is the annual fleet mileage, km/year;
is the energy-cost component, RUB/km;
is the maintenance and repair component, RUB/km;
is the downtime-cost component, RUB/km; and
is the diagnostic and condition-monitoring component associated with horizon h, RUB/km.
Under B2, the adopted horizon was reassessed quarterly. If any mandatory criterion in
Table 3 was not satisfied, the assumed horizon was truncated at the corresponding withdrawal, repair, or replacement date. Consequently, the LCC benefit of B2 was conditional on continued diagnostic eligibility.
Life-cycle emissions were calculated in kg CO2-eq/km by separating operational electricity, maintenance-material, and battery-related contributions. The operational term retained the monthly structure of energy use and grid emission factors rather than applying one annual factor to all records.
The operational contribution was calculated as
where
is the operational electricity contribution, kg CO
2-eq/km;
is measured fleet electricity use in month
m, kWh;
EFgrid,m is the month-specific grid emission factor, kg CO
2-eq/kWh; and
Ltotal is total fleet mileage, km.
For strategy s, total life-cycle emissions were calculated as
where
is the maintenance-material contribution, kg CO
2-eq/km;
is the gross battery-production contribution for strategy s before end-of-life credit, kg CO
2-eq/km; and
is the assumed recycling credit fraction. Sensitivity was evaluated by scaling all monthly grid factors by 0.80 and 1.20 while preserving their seasonal pattern, by considering weighted grid factors from 0.200 to 0.600 kg CO
2-eq/kWh, and by varying the recycling credit from 0% to 20%.
Only failure and defect modes F1–F5 were included in FMEA: F1, battery degradation; F2, battery thermal derating; F3, traction power-electronics failure; F4, high-voltage insulation or charging-contact fault; and F5, auxiliary or high-voltage control-system fault. Scheduled-maintenance events were retained in LCC, downtime, and availability calculations but excluded from RPN so that preventive activities were not treated as failures.
For failure mode
k and strategy
s, the risk priority number was calculated as
where
is the severity score;
is the occurrence score under strategy
s; and
is the detection score. Each score ranges from 1 to 10, and a lower detection score denotes a higher probability of identifying the developing fault before functional loss. Severity was held constant between B1 and B2 because diagnostic controls do not change the physical consequence of a failure once it occurs. B2 was allowed to change only occurrence and detection scores when a specific preventive or monitoring control was assigned to the failure mode.
The failure-event-weighted fleet indicator was calculated as
where
is the observed number of events assigned to failure mode
k.
The relative change was calculated as
The multi-criteria comparison used LCC, ELC, and failure-only event-weighted RPN as three criteria to be minimized. Six predefined combinations of AH intensity and battery strategy were evaluated. Scenario a was classified as dominating scenario b when its LCC, ELC, and weighted RPN were no greater than those of b and at least one criterion was strictly lower. This dominance check was applied only to the evaluated scenario set; it does not constitute continuous multi-objective optimization and does not generate an optimized frontier. Because AH intensity also determines transport coverage, numerical dominance was interpreted only after applying the required service-coverage constraint.