In this section, for each of the domains described above—vehicular batteries, LV feeder, and HEMS—we address a significant problem and explore how a relevant cloud-based service, drawn from the literature, can be built using a measurement-oriented framework such as Measurify.
Before going into detail, we briefly present the generic design workflow supported by Measurify. The first step in the workflow consists of domain modeling, where the domain field objects are mapped to Measurify API’s resources, each one with its schema, which are accessible through the API routes.
Table 1 provides an overview of the primary Measurify resources. Once a Measurify installation is configured with the domain-specific instantiation of the configuration resources (i.e., features, things, devices and tags), the system is ready to receive data (i.e., measurements) in JSON format from the field through the common RESTful APIs. For the sake of data integrity verification, Measurify is responsible for ensuring that each received measurement is formatted according to its corresponding format. Measurify is in charge of verifying. More information can be found in [
20].
3.1. Range Prediction
Range prediction is a complex and challenging problem that depends on numerous influential factors. A data-driven energy consumption prediction method for EVs, developed in [
37] for energy-efficient routing, has demonstrated both high prediction accuracy and ease of use. Several parameters influence the range of vehicles, including state of charge (SoC), ambient temperature, driving behavior, route, and traffic, as shown in
Figure 4. The weightage of influencing parameters on EV range prediction has the following values: 54% SoC, 25% ambient temperature, 10% driver behavior, 6% route, 5% traffic, according to [
38]. The accuracy of the estimated range for an electric vehicle (EV) mainly depends on the accuracy of the state of charge (SoC) estimation. The driving range depends upon both estimating the remaining energy in the battery and predicting the future energy consumption pattern of the remaining trip.
The SoC of a battery indicates the level of charge remaining in percentage compared to its maximum available capacity. It is a crucial parameter for the charging/discharging strategies to protect the battery from overcharging/overdischarging. In [
39], the authors critically analyzed the various algorithms for estimating the Li-ion battery state of charge (SoC). The real-time, accurate estimation of SoC in EVs is challenging because of the strong time-variables and nonlinear characteristics with the driving loads and operational conditions [
28]. Open-circuit voltage (OCV) profiles play a crucial role in SoC estimation as they provide a direct relationship between voltage and battery capacity. During charging and discharging, the OCV changes with SoC due to battery chemistry, hysteresis effects, and ageing, making accurate profiling essential for precise estimation. By leveraging OCV-SoC characteristics, BMS can improve SoC accuracy. Charging and discharging events are best detected and managed locally by onboard energy-management systems. However, characterizing and understanding the voltage hysteresis phenomenon observed during these cycles provides valuable insights into battery degradation trends. A difference between the open-circuit voltage (OCV) curves during charging and discharging indicates voltage hysteresis, often caused by kinetic limitations, phase transitions, or irreversible electrochemical reactions. This hysteresis reflects energy loss and can signal reduced efficiency or degradation mechanisms within the battery.
To see the characteristics OCV during charging and discharging we can gain the relationship between voltage range and SoC as in
Figure 5. The fifth cycle of charging and discharging from the Li-ion battery B0005, taken from the battery ageing datasets, is used to visualize the graph [
40]. The maximum charging voltage reaches 4.2 V, while the discharge voltage drops to 2.7 V. The charging OCV is higher than the discharging OCV due to voltage hysteresis, internal resistance, and electrochemical reaction dynamics, causing polarization effects and ion transport limitations.
It is a complete case for SoC estimation from BMS as in [
17], but we move further to predict a range of EVs. Most studies regarding range estimation focus on predicting variable energy consumption and assume the remaining energy in the battery, in the form of SoC and state of health (SoH). Tannahill et al. proposed a range estimation method incorporating environmental and behavioral factors, along with SoC and vehicle efficiency, yielding greater accuracy than traditional SoC-based approaches [
41]. A data-driven approach integrates real-world driving, geographical, and weather data to predict energy consumption across a road network. This method reduces error in multiple linear regression models to 12–14% of average trip consumption, with 7–9% attributed to SoC estimation [
37].
The force required to move the electric vehicle, also known as the tractive force, is given by Equation (
1) as the sum of the gravitational force, aerodynamic drag, and rolling resistance.
where
m is the mass of the vehicle,
g is the gravitational acceleration,
is the air density,
is the drag coefficient,
A is the vehicle’s frontal area,
v is the speed,
is the frontal wind speed, and cr is the rolling resistance coefficient. The necessary power delivered by an engine
to travel a
distance while the vehicle maintains a desired acceleration and speed is given by the following Equation (
2).
For simplicity, we assume, in the first order, that the rolling resistance coefficient, drag coefficient, air density, and vehicle mass are constant. The energy consumption can be described as a linear combination of the kinematic parameters
,
,
, and h =
ds sin
as in [
42]. To represent the consumption of the auxiliaries, the formula was then extended with a time-linear, temperature-scaled term.
Block diagram of range prediction system’s workflow is illustrated in
Figure 6. The methodology employed in this study integrates real-world physics-based computations to analyze vehicle energy consumption, incorporating aerodynamic drag, rolling resistance, and inertial forces. A data-driven approach utilizing linear regression is applied to predict future range and energy depletion based on historical trip data. Furthermore, the methodology includes visualization techniques to assess trip efficiency, enabling a comprehensive evaluation of energy usage patterns for electric vehicle performance analysis. It begins by defining EV and environmental constants while loading trip data, including battery and drive cycle data. The data undergo preprocessing (resampling and imputation), followed by computing elevation, time difference, and distance. Aerodynamic and inertial forces are then calculated, leading to the computation of overall energy consumption, including regenerative braking effects. The system generates time-series data for SoC, distance, and energy, which is then used to train linear regression models and predicts range. Modeling of the range prediction service to a Measurify model is straightforward and mapped as in
Table 2.
3.2. Power Flow Analysis
The global electrical power industry faces challenges like generation diversification, asset optimization, energy conservation, demand response, and carbon footprint reduction. Efficient energy monitoring and control are crucial for maximizing renewable energy benefits. Power (Sometimes called as load) flow analysis is an essential method for examining power system operation and planning by determining node voltages and branch power flow based on a given generation state and network structure [
43]. It provides a steady-state solution, disregarding transient processes, by formulating the problem as a nonlinear algebraic equation derived from Kirchhoff’s Current Law (KCL) at each bus. The Newton–Raphson (NR) method solves these equations using iterative linearization based on Taylor series expansion. The general form of the power flow equations is given as follows:
where
are voltage magnitudes at buses
i and
j,
are conductance and susceptance between buses
i and
j, and
is the phase angle difference between buses
i and
j. After that, NR solves the nonlinear power flow equations iteratively by linearizing them using the Jacobian matrix until the error is within an acceptable threshold.
Figure 7 depicts a block diagram of power flow analysis to calculate power losses in the feeder to know the congestion time (overload time) to reduce energy wastage for distribution system operators. It uses the Newton–Raphson method for power system studies. It begins with the load measurement data of the feeder, including bus data, line data, and load profiles. The next step involves mapping the power grid model, incorporating a slack bus and multiple load buses to represent the network structure. Then, power loss results are initialized, and the Newton–Raphson method is used to iterate over various time steps, solving power flow equations dynamically. The computed results help in analyzing power losses, which are crucial for identifying periods of high congestion. Ultimately, these insights help identify congestion times, enabling effective load management strategies to enhance system efficiency and reliability. The application domain can be easily mapped to the Measurify framework as in
Table 3.
3.3. Appliances Scheduling
Cost-reflective grid tariff designs encourage consumers to reduce peak demand by adjusting their electricity usage patterns, helping to balance the grid more efficiently [
44]. As a result, power suppliers implement dynamic electricity tariffs, where prices vary based on demand, promoting cost-effective and sustainable energy consumption. Appliance scheduling services aim to determine the most economical operational schedule for a set of appliances to minimize electricity expenditure. For appliances that have flexibility in starting time and/or other features, the operation dependence of inter-appliance and intra-appliance scheduling is designed to exploit price variation further. The scheduling algorithm changes the power mode of each electric device dynamically. We employ a model predictive control method that utilizes a building energy-management controller (BEMC), as described in [
45]. The timeline is divided into fixed-size schedulable slots. The BEMC receives the instantaneous electricity price, operational time, and power consumption rating of each appliance for each time slot, and then solves an optimization problem to minimize the energy cost of electrical appliances across all available time slots. The problem can be formulated as an optimization model to minimize the total electricity cost over a given scheduling horizon.
where
is the electricity price at time
t,
is a appliance signature representing state of load
i at time
t,
is the power consumption of load
i. This formulation helps in cost savings of residential occupants by shifting energy-intensive tasks to periods of lower electricity prices.
The methodology for appliance scheduling is based on a combination of descriptive analytics, time series analysis, cost optimization, and decision support systems (DSS) to recommend the most cost-effective hours for using high-power appliances, as shown in
Figure 8. Initially, the system aggregates household energy consumption data on an hourly basis and analyses fluctuations in electricity prices to identify cost variations throughout the day. By multiplying hourly energy consumption by corresponding electricity prices, the system calculates the total cost of running appliances at different times. A rule-based decision-making approach is then employed, where hours with the lowest cost per kWh are recommended for operating energy-intensive appliances. This optimized scheduling helps minimize electricity bills and improve overall energy efficiency by shifting appliance usage to off-peak hours with lower rates. The appliance scheduling service seamlessly integrates with the Measurify framework, allowing for efficient mapping and utilization of its features as in
Table 3.
3.4. Synopsis
This sub-section synthesizes the characterization of the three services presented above through two synoptic tables. First,
Table 2 provides an outlook of the three energy IoT services, where the metamodeling illustrates inputs, outputs, data processing algorithms, stakeholders, benefits and constrains. Then,
Table 3 summarizes the main data characteristics and their mapping to Measurify resource types.
The widespread use of IoT for data measurement, combined with the long-term accumulation and large-scale analysis of such data, requires careful definition of sampling rates (typically ranging from a few Hz to several kHz) to avoid both redundancy and the loss of transient, potentially valuable events. Heterogeneity in the measured sensor data is frequent, and can be due to different data sources, network and spatial distribution across the monitored area. These factors introduce synchronization challenges and variability in data collection intervals, especially in dynamic environments or under unreliable network conditions. Such inconsistencies, caused by different sampling rates, node failures, packet loss, or measurement precision, can compromise data quality and hinder practical analysis. To address this, Measurify assigns a unique timestamp to every sample within a measurement, ensuring accurate temporal alignment across heterogeneous data streams. Moreover, each measurement is linked to its source device, which allows spotting and taking into account individual effects (e.g., drift).