{
  "fetched_at": "2026-10-20T04:56:16Z",
  "source_url": "https://www.kaggle.com/competitions/dataquest-nascon23/data",
  "pages": [
    {
      "name": "data-description",
      "content": "\nThese blood glucose records were obtained from two sources: an automatic electronic recording device and paper records. The automatic device had an internal clock to timestamp events, whereas the paper records only provided ”logical time” slots (breakfast, lunch, dinner, bedtime). For paper records, fixed times were assigned to breakfast (08:00), lunch (12:00), dinner (18:00), and bedtime (22:00). Thus paper records have fictitious uniform recording\ntimes whereas electronic records have more realistic time stamps.\n\n1 Patient records consist of four fields per record. Each field is separated by a tab and each record is separated by a newline.\n\n### File Names and format:\n1. Date in MM-DD-YYYY format\n2. Time in XX:YY format\n3. Code\n4. Value\n\n### The Code field is deciphered as follows:\n33 = Regular insulin dose\n34 = NPH insulin dose\n35 = UltraLente insulin dose\n48 = Unspecified blood glucose measurement\n57 = Unspecified blood glucose measurement\n58 = Pre-breakfast blood glucose measurement\n59 = Post-breakfast blood glucose measurement\n60 = Pre-lunch blood glucose measurement\n61 = Post-lunch blood glucose measurement\n62 = Pre-supper blood glucose measurement\n63 = Post-supper blood glucose measurement\n64 = Pre-snack blood glucose measurement\n65 = Hypoglycemic symptoms\n66 = Typical meal ingestion\n67 = More-than-usual meal ingestion\n68 = Less-than-usual meal ingestion\n69 = Typical exercise activity\n70 = More-than-usual exercise activity\n71 = Less-than-usual exercise activity\n72 = Unspecified special event\n\n**NOTE: ”Ignore all the codes that are not available in the description.”\n\nIn this competition, we challenge participants to generate new features from a dataset containing diabetes patient records obtained from two sources: an automatic electronic recording device and paper records. The primary objective of this competition is to improve predictive models for diabetes-related outcomes by creating new features that capture meaningful information from the available data.\n\nThe dataset consists of four fields per record, including the date, time, code, and value. The code field represents various diabetes-related events, such as blood glucose measurements, insulin doses, and exercise activities. Participants are expected to create at least 30 features that capture additional information about these events and their relationship with diabetes related outcomes.",
      "isPublished": false,
      "hasIsPublished": false,
      "postTitle": "",
      "hasPostTitle": false,
      "mimeType": "",
      "hasMimeType": false
    },
    {
      "name": "Description",
      "content": "# Predicting Blood Glucose Levels in Patients\n\n## I. Predicting Blood Glucose Levels in Patients\n\nEffective management of blood glucose levels requires continuous monitoring of patients’ records, which can be obtained by combining data from electronic and paper records. This comprehensive approach enables healthcare professionals to gain a better understanding of how various factors, such as diet, medication, and physical activity, affect blood glucose levels. With this information, healthcare professionals can make informed decisions about treatment options, adjust medication dosages, and provide personalized advice to patients. This approach enhances the accuracy and timeliness of information available to healthcare professionals, improving the overall management of the condition.\n\nMachine learning techniques can help healthcare professionals manage blood glucose levels more efficiently by automating the analysis of patient records. This can lead to better patient outcomes, lower healthcare costs, and improved quality of life. By using algorithms to analyze patient data, medical professionals can gain insights into patients’ health status, making it easier to make informed decisions about treatment options. This technology has the potential to revolutionize the healthcare industry by enabling faster and more accurate decision-making, ultimately improving the well-being of patients and the efficiency of healthcare systems.\n\n## II. Problem Statement\n\nThe goal of this competition is to predict the blood glucose levels of patients after breakfast, lunch, and dinner. For that, we need to extract meaningful information from the available data and use a combination of domain expertise and machine learning techniques to build robust and accurate predictive models. By creating novel features that capture important aspects of the data, participants can improve the performance of their prediction models. These new features may reveal previously unknown relationships or patterns that can help better understand the underlying factors that contribute to blood glucose levels. Ultimately, the aim is to create a prediction model that accurately identifies patients with high or low blood glucose levels and helps healthcare professionals to provide targeted and effective treatments. \n\nThe goal of this competition is to extract meaningful information from the available data and use a combination of domain expertise and machine learning techniques to build robust and accurate predictive models. By creating novel features that capture important aspects of the data, participants can improve the performance of their prediction models. These new features may reveal previously unknown relationships or patterns that can help better understand the underlying factors that contribute to blood glucose levels. Ultimately, the aim\nis to create a prediction model that accurately predicts the blood glucose levels of patients after breakfast, lunch, and dinner and helps healthcare professionals to provide targeted and effective treatments.\n\nWe challenge participants to generate new features from a dataset containing patient records obtained from two sources: an automatic electronic recording device and paper records. The primary objective of this competition is to improve predictive models for diabetes-related outcomes by creating new features that capture meaningful information from the available data.\n\nTo succeed in this competition, participants will need to demonstrate a deep understanding of the data and the underlying biology of diabetes. They will need to use creative and innovative approaches to feature engineering, such as time-series analysis, statistical modeling, and machine-learning techniques.\n\n## Task 1: Feature Engineering\n\n**You have to make a dataset named “Engineered-single-Features.csv” which should contain the following features for each timestamp in a single file.**\n1. patient_id (patient unique identifier)\n2. time_of_day (e.g., morning, afternoon, evening, night)\n3. day_of_week (e.g., Monday, Tuesday, Wednesday, Thursday\n4. year\n5. month\n6. time_since_beginning (in seconds)\n7. week_day (either true or false)\n8. quarter (1 of 4 quarters in a day)\n9. glucose_level_since_beginning (initially 0)\n10. typical_exercise_activity\n11. more_than_usual_exercise_activity\n12. less_than_usual_exercise_activity\n13. unspecified_special_event\n14. diabetic_status_since_beginning (low, moderate, high)\n15. pre_breakfast_blood_glucose_measurement\n16. pre_lunch_blood_glucose_measurement\n17. pre_supper_blood_glucose_measurement\n18. Pre_snack_blood_glucose_measurement\n19. post_breakfast_blood_glucose_measurement\n20. post_lunch_blood_glucose_measurement\n21. post_supper_blood_glucose_measurement\n22. regular_insulin_dose\n23. NPH_insulin_dose\n24. UltraLente_insulin_dose\n25. hypoglycemic_symptoms\n26. typical_meal_ingestion\n27. more_than_usual_meal_ingestion\n28. less_than_usual_meal_ingestion\n\n**Now, create a dataset named “Engineered-aggregated-Features.csv” which should contain the following features for each patient.**\n\n1. average_change_breakfast (Average change in blood glucose level before and after breakfast)\n2. average_change_lunch (Average change in blood glucose level before and after lunch)\n3. average_change_supper (Average change in blood glucose level before and after supper)\n4. average_glucose (Average glucose level throughout)\n5. maximum_glucose_level (Maximum glucose level)\n6. minimum_glucose_level (Minimum glucose level)\n7. average_time_between_meals (Average time between meals )\n\n## Task 2: Data Analysis and Visualization\n\nPerform the exploratory data analysis on the dataset created above and answer the following questions. Please note that your claims must be supported by visualizations.\n\n1. Determine the patient exhibiting the highest degree of glucose level stability in comparison to the rest of the patient population. This involves analyzing the standard deviation of glucose levels across all patients and identifying the individual with the lowest value. This approach provides insight into which patient has the most consistent glucose levels over time, thereby aiding healthcare professionals in designing tailored treatment plans to maintain optimal glucose levels.\n2. Glucose levels in the body vary throughout the day. The levels typically rise after meals and then gradually decline over time. This fluctuation in glucose levels is affected by factors such as food intake, physical activity, and insulin production. To what extent does the data support or contradict the statement? Can you describe the pattern of change in glucose levels throughout the day? Specifically, how do glucose levels vary over time, from waking up in the morning to going to bed at night?\n3. What is the correlation between diet and exercise with blood glucose levels over time, and how does it compare to the correlation between food intake or physical activity alone and blood glucose levels?”. This question requires visualization of data to analyze the relationship between diet, exercise, food intake, physical activity, and blood glucose levels. By comparing the correlations between these variables, it may be possible to\ndetermine whether the statement that diet and exercise both affect blood glucose levels is supported by the data.\n\n## Task 3: Prediction Labels\n\n** Make predictions of the following attributes**\n\n1. pre_breakfast_blood_glucose_measurement\n2. pre_lunch_blood_glucose_measurement\n3. pre_supper_blood_glucose_measurement\n\nOverall, the key to success in this competition will be to think creatively about how to extract meaningful information from the available data and to use a combination of domain expertise and machine learning techniques to build robust and accurate predictive models.\n\nGood luck!\n\n## Submission Instructions\n\nWhen submitting your predictions for a Kaggle competition, there are a few key instructions to follow. Your submission should consist of a single file that includes both a unique ID and its corresponding prediction value. \n\nFurthermore, it is crucial that the IDs in your submission file match exactly with the IDs in the test dataset. Any discrepancies in the IDs can lead to errors and inaccuracies in the judging process, which could negatively impact your overall score.\n\nBy following these instructions, you can successfully submit your predictions and participate in the Kaggle competition. It is essential to pay close attention to the details and ensure that your submission is accurate and free from errors. With a bit of careful preparation and attention to detail, you can increase your chances of success and potentially win the competition.",
      "isPublished": false,
      "hasIsPublished": false,
      "postTitle": "",
      "hasPostTitle": false,
      "mimeType": "",
      "hasMimeType": false
    },
    {
      "name": "Evaluation",
      "content": "## Evaluation Criteria\n\n| **Criteria** | **Points** |\n| ------------ | ----------- |\n| Feature Engineering &amp; Data pre-processing | 30 points |\n| Data Analysis and visualisations  | 20 points |\n| Model Training and Predictions | 20 points |\n| Documentations | 10 points |\n| Presentation and Q&amp; A | 20 points |\n| **Total** | 100 points |\n",
      "isPublished": false,
      "hasIsPublished": false,
      "postTitle": "",
      "hasPostTitle": false,
      "mimeType": "",
      "hasMimeType": false
    },
    {
      "name": "rules",
      "content": "This is a page where you can include rules that participants must accept before joining. You may wish to include rules like:\n\n - Apply yourself!\n - Have fun!",
      "isPublished": false,
      "hasIsPublished": false,
      "postTitle": "",
      "hasPostTitle": false,
      "mimeType": "",
      "hasMimeType": false
    }
  ]
}