Google Data Analytics Capstone Project

Bellabeat Product Usage Analysis

Analysing Fitbit activity and sleep behaviour to identify user patterns and support data-driven wellness recommendations

Python • Pandas • NumPy • Matplotlib • Tableau • Data Cleaning • Feature Engineering • Correlation Analysis • Exploratory Data Analysis

This case study analyses Fitbit activity and sleep records collected between March and May 2016. It explores weekday behaviour, sedentary time, calorie expenditure, exercise intensity and sleep patterns before translating the findings into actionable recommendations for Bellabeat.

Project Overview

Business Area

Wearable technology, wellness analytics and user engagement

Clean Activity Data

1,373 unique daily activity records from 35 Fitbit users

Sleep Analysis Data

410 matched user-day activity and sleep records

Main Tools

Python, Pandas, NumPy, Matplotlib and Tableau

Business Problem

Bellabeat develops wellness products designed to help women monitor and improve their health. To strengthen its marketing strategy, the company needs a clearer understanding of how consumers use wearable fitness devices and which behavioural patterns may support more personalised engagement.

This project examines daily steps, calories burned, activity intensity, sedentary time and sleep behaviour to identify patterns that Bellabeat can use when designing reminders, activity goals, wellness campaigns and sleep-coaching features.

Key Business Question

What activity and sleep patterns can be identified from Fitbit data, and how can Bellabeat use those insights to improve customer engagement and support healthier lifestyles?

Dataset

The project uses Fitbit Fitness Tracker data collected during two reporting periods: March 12–April 11, 2016 and April 12–May 12, 2016. The activity datasets were combined, inspected and cleaned before being joined with daily sleep records.

Activity Metrics

Total steps, distance, calories, active minutes and sedentary minutes

Sleep Metrics

Total minutes asleep, total time in bed and sleep records

Time Variables

Activity date, reporting date and derived day-of-week feature

Analysis Type

Descriptive, exploratory, behavioural and correlation analysis

Analytical Process

The project follows the six phases of the Google Data Analytics process.

?
STEP 01

Ask

Defined the business task and analytical questions.

DB
STEP 02

Prepare

Loaded activity and sleep datasets.

STEP 03

Process

Resolved overlaps, duplicates, dates and quality issues.

Σ
STEP 04

Analyze

Examined activity, calorie and sleep relationships.

STEP 05

Share

Created Python charts and a Tableau dashboard.

STEP 06

Act

Developed recommendations for engagement and wellness.

Behind the Analysis

Open each step to explore the Python workflow and analytical reasoning.

STEP 01Import LibrariesPandas, NumPy and Matplotlib were prepared for analysis.+

Importing the Required Python Libraries

analysis.py
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt

import warnings
warnings.filterwarnings("ignore")
Python libraries imported
Python environment prepared for the analytical workflow.
STEP 02Load Initial Activity DataThe first daily activity dataset was loaded into a Pandas DataFrame.+

Loading the Initial Activity Dataset

Initial Bellabeat activity dataset loaded
The April–May daily activity data was loaded for inspection.
STEP 03Explore Dataset StructureShape, sample records, data types, columns and missing values were reviewed.+

Understanding the Dataset

explore_data.py
df.shape
df.head()
df.info()
df.columns
df.isnull().sum()

Dataset Shape

Dataset shape

Dataset Preview

Dataset preview

Dataset Information

Dataset information

Column Names

Dataset column names

Missing Values

Missing values
STEP 04Combine, Clean and ValidateTwo activity datasets were combined and overlapping user-date records were resolved.+

Preparing the Combined Activity Dataset

01

Load Both Periods

Daily activity records from both collection periods were loaded separately.

02

Concatenate

Matching structures allowed the two files to be combined.

03

Resolve Overlaps

Overlapping April 12 records were investigated and cleaned.

04

Validate Quality

The final activity dataset contained 1,373 records with no missing values or exact duplicates.

Load Both Datasets

Load both datasets

Verify Dataset Shapes

Shapes of both datasets

Concatenate Datasets

Concatenate datasets

Prepare Date Column

Date conversion

Verify Cleaned Shape

Cleaned dataset shape

Duplicate Validation

Duplicate validation

Final Dataset Information

Final dataset information

Data Quality Report

Data quality report
STEP 05Exploratory Data AnalysisActivity, calorie, sleep and weekday behaviour were explored.+

Exploring Fitbit User Behaviour

Summary Statistics

Summary statistics
Observation

Users averaged 7,377 daily steps and approximately 1,001 sedentary minutes.

Business Insight

Bellabeat can focus on reducing sedentary time and increasing daily movement.

Average Daily Steps by Weekday

Average daily steps by weekday
Observation

Saturday recorded the highest activity, while Sunday recorded the lowest.

Business Insight

Sunday reminders and targeted challenges may help maintain weekend activity.

Daily Steps vs Calories Burned

Steps and calories scatter plot
Observation

Daily steps and calories showed a moderate positive correlation of 0.58.

Business Insight

Step goals are useful, but activity intensity should also be promoted.

Average Activity Minutes by Level

Activity levels
Observation

Sedentary time dominated the daily activity profile.

Business Insight

Movement reminders and gradual activity targets can support healthier routines.

Sleep Duration vs Time in Bed

Sleep duration and time in bed
Observation

Sleep duration and time in bed had a very strong positive correlation of 0.93.

Business Insight

Bellabeat can provide sleep-efficiency insights and personalised sleep goals.

Very Active Minutes vs Calories Burned

Very active minutes and calories
Observation

Very active minutes and calories burned showed a strong positive relationship.

Business Insight

Personalised vigorous-activity goals may improve fitness and engagement.

STEP 06Build Tableau DashboardThe Python findings were translated into a business-friendly dashboard.+

Communicating Results Through Tableau

The final dashboard combines weekday activity, calorie relationships, activity intensity and sleep behaviour.

Bellabeat Tableau dashboard
Tableau dashboard summarising the principal findings.

Visualizations

Six focused analyses explain activity, intensity, calories and sleep behaviour.

01

Summary Statistics

Establishes baseline activity, calorie and sedentary-time benchmarks.

02

Weekday Activity

Compares average daily steps from Monday through Sunday.

03

Steps and Calories

Measures the relationship between movement and calorie expenditure.

04

Activity Intensity

Compares active and sedentary minutes.

05

Sleep Behaviour

Examines sleep duration in relation to total time spent in bed.

06

Vigorous Activity

Evaluates how very active minutes relate to calories burned.

Tableau Dashboard

The dashboard communicates the major findings in a concise format suitable for decision-makers.

Bellabeat Fitness Activity Dashboard

Bellabeat fitness activity Tableau dashboard

Key Findings

The analysis revealed clear patterns in weekday activity, sedentary time, exercise intensity, calories and sleep.

Saturday was the most active day.

Sunday recorded the lowest average step count.

Users averaged approximately 7,377 daily steps.

The average indicates moderate activity with room for greater consistency.

Sedentary time dominated the daily routine.

Users averaged approximately 1,001 sedentary minutes per recorded day.

Steps and calories were moderately related.

The Pearson correlation coefficient was 0.58.

Sleep duration closely followed time in bed.

A correlation of 0.93 indicated a very strong positive relationship.

Vigorous activity increased calorie expenditure.

Very active minutes showed a strong positive relationship with calories burned.

Business Recommendations

The findings support personalised strategies focused on consistency, movement, exercise intensity and sleep quality.

01

Encourage Consistent Daily Activity

Use Sunday reminders, weekend challenges and personalised step goals.

02

Reduce Sedentary Behaviour

Introduce standing alerts, movement reminders and walking challenges.

03

Promote Higher-Intensity Exercise

Recommend short vigorous workouts and weekly exercise goals.

04

Improve Sleep Coaching

Provide bedtime reminders, sleep-efficiency feedback and personalised sleep goals.

05

Deliver Personalised Health Insights

Combine activity and sleep data to generate relevant coaching and progress tracking.

Executive Summary

This project analysed Fitbit activity and sleep data from 35 users between March and May 2016. Two activity datasets were combined and cleaned, resulting in 1,373 unique daily activity records. A separate sleep dataset was prepared and matched to activity data, producing 410 unique user-day records.

The analysis found that Saturday was the most active day and Sunday the least active. Users averaged approximately 7,377 steps per day but spent a substantial proportion of their recorded time being sedentary. Daily steps showed a moderate positive relationship with calories burned, while very active minutes showed a stronger relationship. Sleep duration and time in bed were very strongly related.

The findings support targeted activity reminders, sedentary-time reduction, personalised exercise goals and sleep-coaching features.

Skills Demonstrated

PythonPandasNumPyMatplotlibTableauData CleaningData ValidationFeature EngineeringExploratory Data AnalysisCorrelation AnalysisBehavioural AnalyticsData VisualizationBusiness InsightsData Storytelling