This repository contains the R scripts to curate, validate, and generate the final model and visualization from the naturalistic driving study NUBI-Drive.
- R and RStudio
- Required packages
Packages are available on CRAN and can be installed using a simple call to install.packages()
:
install.packages('PackageName')
Validation Scripts (vs)
- vs-descriptive-plots.rmd
- Generates the descriptive statistics plot from the data
- vs-correlation-matrix.rmd
- Produce the correlation matrix and checks the colenearity of the features
- vs-driving-NASA-models.Rmd
- Creates the driving and the NASA models
- Visualizes the model figures
- vs-non-driving-model.rmd
- Generates the non driveng model and the model figure
-
Model_Data.csv
- P_ID: Participant's ID
- Day_Num: Observation day of the study Day1 = Monday, Day7 = Sunday
- Trips: Trip number of a particular day
- Trip_Time: Time of the trip [Morning, Afternoon]
- Weather_Info: Weather information while driving [clear, clouds, Rain, OT(Other)]
- Mean_Raw_HR: Mean heart-rate of participants while driving
- Mean_Speed: Mean speed of the car
- Mean_ATP: Mean throttle of the car
- Mean_JF: Mean jam factor of the road while driving
- mean_acc_energy: Mean hand acceleration
- mean_rot_energy: Mean hand rotaion
- Gender: [Male/Female]
- TA: Trait Anxiety, a psychometric measurement of how participants generally feel, with a score range [20–80]
- Ext: Extraversion, the level of participant’s outgoing nature with score range [2-10]
- Agr: Agreeableness, the level of participant’s friendliness with score range [2-10]
- Cons: Conscientiousness, the level of participant’s organized nature with score range [2-10]
- Neuro: Neuroticism, the level of participant’s nervousness with score range [2-10]
- Open: Openness, the level of participant’s curiosity with score range [2-10]
- State_Anxiety: State anxiety, the psychometric measurement of how participants feel right at the moment, with a score range [20–80]
- MD : Perceived mental load induced by morning/afternoon drives
- PD : Perceived physical activity induced by morning/afternoon drives
- TD : Perceived time pressure induced by morning/afternoon drive
- P : Perceived success in executing morning/afternoon drive
- E : Perceived amount of work expended to achieve said performance in morning/afternoon drive
- F : Perceived level of irritation in performing morning/afternoon drive
-
Non_Driving_Data.csv
- P_ID: Participant's ID
- Days: Observation day of the study Day1 = Monday, Day7 = Sunday
- Day_Indicator: Indication of weekdays or weekend [weekdays, weekend]
- TIME_Of_Day: Time of the trip [Morning, Afternoon]
- HR_Drive: Mean heart rate of driving
- HR_NON_DRIVE: Mean heart rate of non-driving
- Gender: [Male/Female]
- TA: Trait Anxiety, a psychometric measurement of how participants generally feel, with a score range [20–80]
- Ext: Extraversion, the level of participant’s outgoing nature with score range [2-10]
- Agr: Agreeableness, the level of participant’s friendliness with score range [2-10]
- Cons: Conscientiousness, the level of participant’s organized nature with score range [2-10]
- Neuro: Neuroticism, the level of participant’s nervousness with score range [2-10]
- Open: Openness, the level of participant’s curiosity with score range [2-10]
- State_Anxiety: State anxiety, the psychometric measurement of how participants feel right at the moment, with a score range [20–80]
-
Trait_Data.csv
- P_ID: Participant's ID
- TA: Trait Anxiety, a psychometric measurement of how participants generally feel, with a score range [20–80]
- Ext: Extraversion, the level of participant’s outgoing nature with score range [2-10]
- Agr: Agreeableness, the level of participant’s friendliness with score range [2-10]
- Cons: Conscientiousness, the level of participant’s organized nature with score range [2-10]
- Neuro: Neuroticism, the level of participant’s nervousness with score range [2-10]
- Open: Openness, the level of participant’s curiosity with score range [2-10]