Featured Product
This Week in Quality Digest Live
Training Features
Gleb Tsipursky
Belief that innovation is geographically bound to office spaces is challenged by empirical evidence
Jamie Fernandes
From design to inspection to supply chain management, AI is transforming manufacturing
Gene Russell
Resources to help increase your financial literacy
Rich Nobliski
Helping narrow the manufacturing skills gap with 3D tech
Susan Robertson
How to ensure new ideas get real consideration

More Features

Training News
Online Jan. 23, 2024, 11:00 a.m. Pacific / 2:00 p.m. Eastern
A tool to help detect sinister email
On-demand modules provide introduction and fundamentals for pumps and systems
Partnership with local manufacturers to upskill workers for emerging technology
Immersive 3D tools to enhance customizable mobile learning
How well are women supported after landing technical positions?

More News

Angie Basiouny

Training

What Machine Learning Reveals About Forming a Healthy Habit

For starters, there’s no magic number of days to achieve it

Published: Monday, July 24, 2023 - 11:02

Wharton experts used machine learning to help uncover the secret formula for successful healthy habit formation, and it turned out there’s no one formula.

“There’s this widely spread rumor that it takes 21 days to form a habit,” says Katy Milkman, a Wharton professor of operations, information, and decisions. “You may have also heard it takes 90 days to form a habit. There are popular books that tout these numbers that don’t have a sound basis in research. What we find is there is no such magic number.”

Milkman spoke to Wharton Business Daily on SiriusXM about her recently published study. Wharton professor Angela Duckworth, who co-founded Penn’s Behavior Change for Good Initiative with Milkman, is one of six co-authors on the piece.

The ‘magic’ behind a healthy habit

The team including Milkman and Duckworth developed a machine learning methodology to parse millions of data points tracking two behaviors that can become habitual: gym attendance and hand sanitizing. They partnered with 24 Hour Fitness to obtain years of check-in records for more than 60,000 gym members, and they worked with a technology company that tracked whether 5,200 healthcare providers at 30 hospitals sanitized their hands whenever they entered or exited a patient’s room.

They found that it took weeks on average for people to get into the habit of hand sanitizing, and months to start going to the gym regularly. The time element isn’t more precise because there was so much variation in the data across individuals, which Milkman says is further proof that a magic number is elusive.

‘Gyms have been sort of the fruit fly of habit-formation research.’
— Katy Milkman

“This really points to a false belief in the idea of a magic amount of time,” she says. “We’re probably better off focusing on things like how complex is the behavior, how often are you repeating it, what’s the nature of the reward you’re receiving as the main drivers of the habit formation speed, as opposed to a gravitational pull toward a magic number.”

The paper also found that once gym-goers established a habit of regular attendance that could be detected by a machine learning model, they were much less sensitive to an intervention from the gym that provided reminders and rewards to motivate attendance. Milkman says that’s a significant takeaway for marketers.

“We can predict with machine learning when they’re in that state [of habit], and we know once they’ve reached that state, they are going to be harder to perturb off their course,” she says. “That’s also important just for thinking about tailoring and personalizing the kind of offers you provide if you’re a marketer, a healthcare plan, an employer.”

The key to measuring a healthy habit

The authors deliberately chose two very different habits because they wanted to make sure the results could be generalized to other contexts. Gym attendance was the easy choice.

“Gyms have been sort of the fruit fly of habit-formation research,” Milkman says. “An enormous amount of work in this literature focuses on gym attendance as the outcome [because] it’s something that’s quite easy to measure without having people report to you and not lie,” Milkman said.

Self-reporting is notoriously inaccurate for dieting, nail-biting, smoking, working out, or anything for which people may not want to confront the truth about their habits, she says. But the electronically monitored gym entry at 24 Hour Fitness provided convenient, accurate data.

The authors then went looking for something else that could provide objective data and found hand sanitizing; the healthcare providers’ behavior was tracked with RFID technology.

“We thought it was really exciting to pair those two and see how different or similar are they,” Milkman says.

‘Data teach us what’s true—as opposed to what we’d like to believe or what we think is true based on our own observations.’
— Katy Milkman

What can machine learning teach us beyond healthy habit formation?

While Milkman said most people who read the study will be intrigued by the results that disprove a magic formula for healthy habit formation, she thinks the biggest contribution of the paper is in the scientific approach taken to analyze the data. It shows what’s possible with machine learning and how it helps researchers get at the ground truth.

“Data teach us what’s true—as opposed to what we’d like to believe or what we think is true based on our own observations,” she says. “So, it was really exciting to bring 52 million observations to this question, as opposed to [self-report] data from questionnaires or the intuitions of people who are writing self-help books.”

Milkman, whose research focuses on behavioral economics and decision-making, says the machine learning methods applied in this study helped find patterns and nuances in habits so she and her colleagues could better understand how they are formed. She’s eager to use the same methodology to study other kinds of decision making.

“To our knowledge, our work is the first to look at habit formation happening in the wild, in a naturalistic way, with people going on about their daily lives and their habits taking shape,” she says. “I think there’s enormous creative potential here, and we’re just starting to scratch the surface.”

First published July 3, 2023, on Knowledge@Wharton.

Discuss

About The Author

Angie Basiouny’s picture

Angie Basiouny

Angie Basiouny is a freelance editor and writer based in Atlanta.