Problem #74
Author:OJIA 2025
Difficulty
Your best score
N/A
Implement an AI/ML model to predict the caloric consumption of an activity given a training set train_data.csv and a test set test_data.csv (on which you only need to make predictions).
The dataset contains the following fields with their meanings:
User_ID: ID of the user who performed the activityGender: user's genderAge: user's ageHeight: user's height in cmWeight: user's weight in kgDuration: activity durationHeart_Rate: average heart rate during the activityBody_Temp: average temperature during the activityCalories: number of calories consumed during the activity (present only in the training dataset)The target attribute is Calories. Given the other attributes, the goal is to predict Calories based on the test dataset. The evaluation metric used is MAE (mean absolute error between the value predicted by the algorithm and the correct value).
Part 1 (20p). Based on the training dataset, calculate the following:
"Samples, No.Males, AverageDuration, SeniorUsers"
Samples: number of rows in the training datasetNo.Males: number of training examples that describe activities performed by menAverageDuration: average duration of activities in the training setSeniorUsers: number of users in the training set who are at least 75 years oldEach of the 4 subtasks is worth 5p.
Part 2 (80p)
Subtask 5: (60p) Develop an AI/ML model and perform prediction for the Calories attribute for each example in the test data file, for which the Subtask column has the value 5.
Subtask 6: (20p) A men's handball team needs to estimate caloric consumption to optimize the players' diet. Develop an AI/ML model and predict the number of calories for each example in the test data file for which the Subtask column has the value 6.
A csv file output.csv that should include the following 3 columns:
subtaskID - represents the subtask number (1, 2, 3, 4, 5 or 6)datapointID - which refers to the User_ID column from test_data.csvanswer - the answer corresponding to the datapoint for the respective subtaskNote: For subtasks 1, 2, 3 and 4, which require a single answer for the entire dataset, display a single line whose datapointID should be 1.
Submit a single csv that contains the answers for all subtasks you have solved. To see an example, download the sample_output.csv file