Using Weather Data for Improved Analysis of Vehicle Energy Efficiency
Abstract
:1. Introduction
- Energy spent on traversing the road profile;
- Energy spent on overcoming rolling resistance due to tire losses;
- Energy spent on overcoming aerodynamic resistance due to air drag.
2. Materials and Methods
2.1. Data Sources
2.2. Data Models and APIs
- Knowing the location of the measurement stations makes it possible to judge whether the data are relevant in one’s context. For example, the measurement might take place at a non-relevant location like on the top of hills/mountains rather than in the valley (an example of this is given later in this article).
- Knowing the location of the measurement stations also means that an efficient algorithm can augment data from a moving significantly faster compared to having to query every single GNSS fix in a recorded track (see Section 2.3).
- Being able to access station data for a datetime range is efficient when data for static locations is required (for example a parked vehicle or the depot of a transport company).
- The interpolated result is likely to not be relevant when the original data are not (for example, measurement takes place on the top of hills/mountains rather than in the valley).
- For interpolated data, no efficient algorithm that skips the query of GNSS fixes not adding information can be found since the locations of the original measurement stations are not known. Instead, every single GNSS fix needs to be queried.
- None of the data aggregators examined offer to access data in the form of a time series for the same geographic location. Thus, the same GNSS position occurring multiple times in a recorded track has to be queried several times, i.e., once per respective timestamp, not only once per coordinate.
2.3. Data Access
2.4. Efficient Algorithm for Augmenting Vehicle Logs When Data Are Organized by Specific Stations
Algorithm 1. Efficient retrieval of weather data organized by stations. | |
Step | Action |
1 | Get list of all stations for the parameter in question |
2 | Keep only stations that have been active during the datetime range in question (=GNSS time from vehicle log) |
3 | Keep only stations that are within geo box 1 of the recorded track (+margin) |
4 | Calculate vector of distance between consecutive GNSS fixes of the track |
5 | Accumulate distance vector to get cumulative distance along the track |
6 | Until end of track: |
6.1 | - Select next track point P1 not yet processed |
6.2 | - Determine S1 and S2 with d1 and d2, respectively |
6.3 | - Determine P2 as first point along the track where |
6.4 | - For all points between P1 and P2 set S1 as closest station |
7 | For all unique nearest stations download data for datetime range in question |
8 | For each point in track: |
8.1 | - Calculate closest timestamp in parameter data from respective station |
8.2 | - Calculate time error as difference to GNSS fix time |
8.3 | - Assign parameter value corresponding to closest timestamp to GNSS fix |
8.4 | - (Optional: calculate distance error as difference between location of respective station and GNSS position) |
9 | Return vector with parameter data |
1 Geo box = min and max latitude and longitude of all considered GNSS fixes. |
2.5. Efficient Algorithm for Augmenting Vehicle Logs When Data Are Organized in Map Tiles
Algorithm 2. Efficient retrieval of weather data organized in map tiles. | |
Step | Action |
1 | Rounding all GNSS timestamps in vehicle log to nearest multiple of temporal interval (15 min for HERE) and assign to T |
2 | Calculating map tile ID for all GNSS fixes in vehicle log |
3 | For each unique map tile ID: |
3.1 | - Retrieve matrix M with all grid point coordinates of the tile |
3.2 | - Create vector L1 of all unique longitude values in M |
3.3 | - Create vector L2 of all unique latitude values in M |
3.4 | - For all GNSS fixes in vehicle log that resolve to current tile ID: |
3.4.1 | - Calculate D1 as absolute values of difference between fix latitude and L1 |
3.4.2 | - Create I1 as vector of sort indices of D1 sorted in ascending order |
3.4.3 | - Calculate D2 as absolute values of difference between fix latitude and L2 |
3.4.4 | - Create I2 as vector of sort indices of D2 sorted in ascending order |
3.4.5 | - Four nearest grid points to GNSS fix: N = ((L1[I1[0]], L2[I2[0]]), (L1[I1[0]], L2[I2[1]]), (L1[I1[1]], L2[I2[0]]), (L1[I1[1]], L2[I2[1]])) |
3.4.6 | - If all points in N are part of M: |
3.4.6.1 | - Sort N by planar distance to location of GNSS fix |
3.4.7 | - Else: // the fix location is either on the edge of the covered area or this (lat, lon) combination does not exist in M |
3.4.7.1 | - Calculate D3 as planar distance between all points in M to location of GNSS fix |
3.4.7.2 | - Create I3 as vector of sort indices of D3 sorted in ascending order |
3.4.7.3 | - Four nearest grid points to GNSS fix: N = (M[I3[0], MI3[1], M [I3[2], M[I3[3]) |
3.5 | - For each unique tile timestamp in T for current map tile ID: |
3.5.1 | - Download parameter data |
3.5.2 | - For all GNSS fixes in vehicle log that resolve to current tile ID and current tile timestamp: |
3.5.2.1 | - If fast retrieval: get data for grid point N[0] |
3.5.2.2 | - Else: interpolate data from all points in N |
4 | Return vector with parameter data |
3. Results
3.1. Comparison of Air Temperature Measured in Vehicle vs. Measured in Weather Station
3.2. Comparison of Wind Speed and Direction Measured in Weather Stations from SMHI vs. TrV
3.3. Comparison of Wind Speed and Direction Measured in Weather Stations vs. Interpolated
4. Discussion
5. Conclusions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Sandberg, T. Heavy Truck Modeling for Fuel Consumption: Simulations and Measurements. Licentiate Thesis, Linköpings Universitet, Linköping, Sweden, 2001. Available online: https://urn.kb.se/resolve?urn=urn:nbn:se:liu:diva-145953 (accessed on 5 December 2024).
- Beulshausen, J.; Pischinger, S.; Nijs, M. Drivetrain Energy Distribution and Losses from Fuel to Wheel. SAE Int. J. Passeng. Cars-Mech. Syst. 2013, 6, 1528–1537. [Google Scholar] [CrossRef]
- Filla, R. Operator and Machine Models for Dynamic Simulation of Construction Machinery. Licentiate Thesis, Linköpings Universitet, Linköping, Sweden, 2005. Available online: https://urn.kb.se/resolve?urn=urn:nbn:se:liu:diva-4092 (accessed on 5 December 2024).
- Hyttinen, J. Modelling and Experimental Testing of Truck Tyre Rolling Resistance. Ph.D. Thesis, KTH Royal Institute of Technology, Stockholm, Sweden, 2023. Available online: https://urn.kb.se/resolve?urn=urn:nbn:se:kth:diva-335323 (accessed on 5 December 2024).
- Askerdal, M. On motion Resistance Estimation and Modeling for Heterogeneous Road Vehicles. Licentiate Thesis, Chalmers, Göteborg, Sweden, 2023. Available online: https://research.chalmers.se/publication/535577 (accessed on 5 December 2024).
- Dalessio, L.; Duncan, B.; Chang, C.; Gargoloff, J.I.; Tate, E. Accurate Fuel Economy Prediction via a Realistic Wind Averaged Drag Coefficient. SAE Int. J. Passeng. Cars-Mech. Syst. 2017, 10, 265–277. [Google Scholar] [CrossRef]
- Kaminski, M.; Borton, Z. Development, Application, and Implementation of Passenger Vehicle Wind Averaged Drag for Vehicle Development; SAE Technical Paper 2024-01-2532; SAE International: Warrendale, PA, USA, 2024. [Google Scholar] [CrossRef]
- Barry, N. A New Method for Analysing the Effect of Environmental Wind on Real World Aerodynamic Performance in Cycling. Proceedings 2018, 2, 211. [Google Scholar] [CrossRef]
- Peng, Y.; Jilang, Y.; Lu, J.; Zou, Y. Examining the effect of adverse weather on road transportation using weather and traffic sensors. PLoS ONE 2018, 13, e0205409. [Google Scholar] [CrossRef]
- Almkvist, E.; David, M.A.; Pedersen, J.L.; Lewis-Lück, R.; Hu, Y. Enhancing Autonomous Vehicle Safety in Cold Climates by Using a Road Weather Model: Safely Avoiding Unnecessary Operational Design Domain Exits. SAE Int. J. Passeng. Veh. Syst. 2024, 17, 49–63. [Google Scholar] [CrossRef]
- Neumann, O.; Turowski, M.; Mikut, R.; Hagenmeyer, V.; Ludwig, N. Using weather data in energy time series forecasting: The benefit of input data transformations. Energy Inform. 2023, 6, 44. [Google Scholar] [CrossRef]
- SMHI’s Open Data. Available online: https://www.smhi.se/en/services/open-data/search-smhi-s-open-data (accessed on 5 December 2024).
- Trafikverket’s Data Exchange Portal. Available online: https://data.trafikverket.se/home (accessed on 5 December 2024).
- MET Norway’s FROST API. Available online: https://frost.met.no/index.html (accessed on 5 December 2024).
- Deutscher Wetterdienst CDC-Portal. Available online: https://www.dwd.de/EN/ourservices/cdc_portal/cdc_portal.html (accessed on 5 December 2024).
- Finnish Meteorological Institute’s Open Data. Available online: https://en.ilmatieteenlaitos.fi/open-data (accessed on 5 December 2024).
- RODEO Project. Available online: https://rodeo-project.eu (accessed on 5 December 2024).
- HERE Map Attributes API-Developer Guide: Maps & Layers. Available online: https://www.here.com/docs/bundle/map-attributes-api-developer-guide/page/topics/here-map-content.html (accessed on 5 December 2024).
- REST API Tutorial. Available online: https://restfulapi.net (accessed on 5 December 2024).
- Bright Sky: JSON API for DWD Open Weather Data. Available online: https://brightsky.dev (accessed on 5 December 2024).
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. |
© 2025 by the author. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Filla, R. Using Weather Data for Improved Analysis of Vehicle Energy Efficiency. Data 2025, 10, 31. https://doi.org/10.3390/data10030031
Filla R. Using Weather Data for Improved Analysis of Vehicle Energy Efficiency. Data. 2025; 10(3):31. https://doi.org/10.3390/data10030031
Chicago/Turabian StyleFilla, Reno. 2025. "Using Weather Data for Improved Analysis of Vehicle Energy Efficiency" Data 10, no. 3: 31. https://doi.org/10.3390/data10030031
APA StyleFilla, R. (2025). Using Weather Data for Improved Analysis of Vehicle Energy Efficiency. Data, 10(3), 31. https://doi.org/10.3390/data10030031