GPS-based sensing
The smartphone acquires position, vehicle speed, and GPS accuracy using Google Play Services Location.
Smartphone-based adaptive music for driving support
AdaptiveMusicDrive is an Android research application that acquires vehicle speed using smartphone GPS, obtains road speed-limit information from OpenStreetMap-based data, and adapts music playback to the driving condition.
This project investigates a smartphone-based system that changes music presentation according to the relationship between the current vehicle speed and the road speed limit. The present implementation is designed as a research platform for controlled experiments and real-road feasibility evaluation.
The smartphone acquires position, vehicle speed, and GPS accuracy using Google Play Services Location.
MapLibre is used for map display, while OpenStreetMap-based road information is used to obtain speed-limit data.
Driving condition, GPS data, speed, speed limit, selected BPM, and music switching events can be recorded in CSV format.
The application provides three selectable experimental conditions. During a real-road experiment, the condition can be selected before the experiment starts.
No music is played during the experimental run.
Music assigned to a fixed tempo category is played throughout the experimental run. The current condition uses 80 BPM.
The music tempo is selected automatically from 60, 80, and 120 BPM categories according to the current driving state.
| Driving condition | Selected tempo |
|---|---|
| Δv ≥ 10 km/h | 120 BPM |
| 5 km/h ≤ Δv < 10 km/h | 80 BPM |
| Δv < 5 km/h | 60 BPM |
Audio files are not included in the source-code repository. For controlled experiments, researchers can place fixed MP3 files in tempo-specific asset directories.
Recommended project structure:
app/src/main/assets/
├── bpm60/
│ ├── song01.mp3
│ └── ...
├── bpm80/
│ ├── song01.mp3
│ └── ...
└── bpm120/
├── song01.mp3
└── ...
AdaptiveMusicDrive is managed on GitHub. Clone the repository and open the project in Android Studio.
The AdaptiveMusicDrive source code is released under the MIT License. Audio files are not covered by the software license unless explicitly stated.