Skip to main content

Empowering Progress: Building a Personalized Training Goal Ecosystem with Databricks

Summary

  • Personalized goal tracking: Tonal uses Databricks to compute metrics tracking member progress toward individualized fitness goals.
  • Holistic performance metrics: Weekly metrics accumulate across workouts, showing how each session contributes to personalized targets.
  • ML-driven guidance: MLflow manages model development for personalized workout recommendations on Tonal's smart home gym.

Empowering Progress: Building a Personalized Training Goal Ecosystem with Databricks

Watch: Empowering Progress: Building a Personalized Training Goal Ecosystem with Databricks
Talk by Giuseppe Barbalinardo, Senior Director, Data Science and AI, Tonal ; Kristi Korsberg, Sr Manager, Data Science and AI, Tonal
Tonal is the ultimate strength training system, giving you the expertise of a personal trainer and a full gym in your home. Through user interviews and social media feedback, we identified a consistent challenge: members found it difficult to measure their progress in their fitness journey. To address this, we developed the Training Goal (TG) ecosystem, a four-part solution that introduced new preference options to capture users' fitness aspirations, implemented weekly metrics that accumulate as members complete workouts, defined personalized weekly targets to guide progress, and enhanced workout details to show how each session contributes toward individual goals.We present how we leveraged Spark, MLflow, and Workflows within the Databricks ecosystem to compute TG metrics, manage model development, and orchestrate data pipelines. These tools allowed us to launch the TG system on schedule, supporting scalability, reliability, and a more meaningful, personalized way for members to track their progress.
Here's more to explore:
Databricks named a leader in the 2024 Gartner® Magic Quadrant™for Cloud DBMS: https://www.databricks.com/resources/analyst-paper/databricks-named-leader-by-gartner
An open, unified approach to your data, BI and AI workloads: https://www.databricks.com/product/databricks-sql
See all the product announcements from Data + AI Summit: https://www.databricks.com/events/dataaisummit-2025-announcements

FAQs

How does Tonal personalize workouts?

Tonal embeds advanced sensors that collect 50+ measurements per second of user movement, velocity, and range of motion. The Databricks Data and AI platform analyzes this data with ML models to personalize workout guidance and track progress.

What is the Training Goal ecosystem?

Tonal's Training Goal ecosystem includes preference options capturing fitness aspirations, weekly metrics showing progress accumulation, personalized weekly targets guiding progress, and enhanced workout details demonstrating session contributions to goals.

How do metrics track meaningful progress?

Rather than single metrics, Tonal computes multidimensional metrics that accumulate weekly. This shows members how each workout contributes to their broader training goals, creating motivation and engagement.

Why is this data infrastructure important?

Handling 200+ billion pounds of training data, Tonal needs the Databricks Data and AI platform to compute metrics at scale, manage ML models with MLflow, and orchestrate pipelines with Workflows to deliver real-time personalization.

Full transcript

Thanks everyone for coming out. We have a great session today that is going to be led by the Tonal team. Tonal is the world's smartest at home gym. Um, and today they'll be talking about a suite of features that they've built on data bricks to drive better exercise outcomes for their customers. So, without further ado, I'd like to introduce Christy Korsberg and. Hopefully, I got that somewhere right. Awesome. Oh, I'm so sorry.
Here you go. Welcome. Thank you everybody for having us today. We're here to talk about empowering progress, building a personalized trading training goal ecosystem with data bricks. with me. Today here's the agenda for the day. We'll tell you who we are and a little bit about tunnel, the problem that we wanted to solve and how we approached data bricks to try to solve that problem. The solution we decided to implement and some of the methods that we developed using data bricks.
Finally, we'll go through the impact and some of the next steps that we want to implement in the future. But let's start with what is tunnel. Tunnel is the most intelligent home gym that fits on your wall and uh allows you to train, allows you to do the best workout receiving the best guidance because it knows you and because it can personalize your journey. We embedded a lot of intelligence in tunnel and the reason why we can embed that intelligence is because we have very advanced sensors both embedded sensors including our cable data that can measure every fraction of seconds 50 times every second how we move the position the velocity and all the derived quantity for example quantities for example the range of motion we also can measure through IMU units inertial units accelerometer gyroscope Oops.
We can measure accelerations and uh angular velocity of our smart handles. We also can connect our phone to have a side view camera that allows us to receive the best guidance when we do movements. And with the tunnel 2 that we just released in January, we're able we have now a smart view integrated camera that is able to collect more than 500 points every second. We also can connect all sort of third party sensors like heart rate monitors, Polar, Apple Watch, Straa, LKit and so on.
And thanks to that we were able to build the last the largest strength training data set in the world. I put here some data from 2024. We collected more than 200 280 billion pounds during the last year. About more than a billion sets performed and overall more than 100 billion seconds of workout data. Multiply these seconds times a thousand points every second and understand the size of our data set. We have hundreds of terabytes of motion and motion and performance data.
And thanks to these large data sets, we can really provide the best personalization to our members. For example, here on the right of this slide, I place one of the guidance and feedback that we provide to our members that allow them to move through following better movement patterns. Allow them to be more confident and do better movement. And as we know, when you learn how to move better correctly in a confined environment, in a controlled environment like a gym, movements are transferable.
Movement quality is transferable and you're going to move better doing your daily activity and achieve better longer term goals. Now, let's jump into the problem to solve and how we leverage data bricks to achieve this solution. And uh before telling you about the technical part. I want to tell you a little bit about the theory. And the theory is really rooted into how can we drive more engagement. And for us, engagement really means doing one more session, doing one more count, doing one more rep, one more second.
And this means for our members achieve better outcomes, living a stronger life, a leaner life, a more confident or overall a healthier life. For us, engagement is strongly correlated with real outcomes, whether it's aerobic, strength, de load, stretching, every session count. And on the left, we have the triggers, the tools, the touch points that we can use to drive engagement. For example, we can control our trainer experience while you do the workout.
We can show you the right metrics. We can show you the right guidance. the mobile experience after you do the workout. For example, you go re drinking your protein shake and you have the right metrics displayed to you. Hey, this is what you did during workout. Good job, you achieved your PR. The push notifications are very helpful because they allow us to get the attention of the user at the right time. For example, perfect to provide a feedback, a question.
Do you want to schedule a workout today? Which workout do you want to schedule? Which kind of session? Or yesterday you did a a great workout. You can do a stretching or a reload session today. And last, emails. We don't know when people will open emails, but we know for example, they're a good tool to provide after the workout some feedback on how we did. And now the punch line of this talk, which we'll try to answer, is it possible to hack motivation?
Can we convince people to come in front of the machine or to do one more session for example? And the answer is yes. And along the way we learned some uh opportunities that we had to develop a better technology in particular opportunities in contents discover discoverability user personalization and data visualization and we also found some technical complexities because as you saw our data set is highly multimodel and thanks to data bricks we were able to store this multimodel data in the most efficient way as well as retrieve that And moreover, as you know, having things real time complicates everything.
So we'll see how we needed. We were able to deal with that. Let's go through the solution. And the solution is rooted into behavioral science. You may be aware of this theory called self-determination theory which basically tell us that there are two kinds of motivation. unhelpful motivation also known as control motivation or helpful motivation autonomous motivation unhelpful motivation means that I don't see for example the point in doing workouts I work out because somebody makes me work out or myself I force myself to do workout otherwise I feel bad this is control motivation not very helpful however if we shift to the right and we start moving into auton Autonomous motivation, identified motivation.
I understand what are my goals and I work to break them down and I work to achieve smaller goals every week. This is a way to create motivation and this is what we mean by hacking motivation and we built several features around this theory. We wanted really to bring from theory to practice to technology this uh idea of habit formation and we did that through four features. First of all, we want our user to set or update their goals.
So we updated our preference center and we revamped that. We also want our members to find the right activity to do to achieve their goals and we needed to go back get every single piece of content that we had generated till now and tag that with the new goals. Next members will need to after they find the right goal actually do the action actually do the workout and in the workout we also improve the experience and added more workout metrics that you can follow and track.
And finally, you want to be able after you're done with the workout to prog to track your progress. How are you doing towards your goals? And then the weekends and you can compare your work with what you were commit you committed to. You can check if you achieve your goals or if you're not able to achieve your goals and your goal needs to be adjusted and we start from step one. So this four steps rule is what we wanted to build for habit formation and to hack motivation.
And these are the eight goals that we built. Muscle growth, weight loss, strength, performance, functional strength, endurance, movement quality, and consistency. It was a very iterative process. This is just a snapshot of the hundreds and hundreds of Slack messages between data science, our team, the performance and innovation team who is a team of applied scientists that work with us, the product team and of course back end front end.
The reason why we needed to do a lot of iterations was because we needed to tag every single member, create embeddings, create vectors that describe motivation for every single of our members and every single piece of our content. So, I'm pretty excited to pass it to who will walk us through how we implemented these features using data bricks. Okay, thank you. All right. So, we're going to walk through all of the methods that we deployed in order to stand up this uh training goals series of features.
The first thing, as mentioned, that we wanted users to be able to do was set their goals in the preference center. So, we established two different flows for users. The first was for new users. They can go in and establish their preferences with the onboarding flow. The second flow was for people that already existed, which was already hundreds of thousands of users at this time. And they were able to update their preferences either on the mobile app or on the trainer.
And what you can see on the screen at the bottom is just the existing UI that we have that allows people to select up to three three or four different options. And so the first thing that we learned after we enabled this was what people are trying to do on the machine. On the I guess your left hand side of the screen, um we have what we call the area of focus. So that's more of your topline goal, your topline preference.
Um, most of our users are trying to uh grow their muscle mass, right? Hypertrophy. After you select your area of interest, you can select up to two different sorry area of focus, you can select up to two areas of interest. And what we noticed with that um highlighted in green is that functional strength or strength to kind of go about your day-to-day and be a little bit stronger for things like carrying groceries was really the most consistently popular thing across all of the areas of focus.
And we were able to close some of the gaps in terms of left blank on the area of interest field which I'm sure some of you noticed. Um once we knew what people wanted to do, we had to tag all of our um workouts in our workout library. And there's a lot of different ways that users can find relevant content. Um so we had to enable this and expose this um information across a lot of different elements on the UI. First, users can select the training goals that are most aligned with their preferences with just basic filtering.
Um, so in this example, we have somebody who has selected muscle growth, endurance, and weight loss. The other thing that we do is with the content tags on our workouts, we can recommend different pieces of content just on the home screen, right? So, you don't really have to filter if you don't want to. You can just select the workouts that are most relevant. And then after you've selected your workout of interest, we actually surface the strength or the magnitude of each of these training goals with what we call um the workout details page.
And so you can compare what your goals are to the magnitude of impact that we would expect that workout to have on your goals. And this was an iterative process. Um, as mentioned, we worked with a lot of different team members for this particular process. We initially partnered with the performance team. So, the way that it would work is performance would conduct a lot of research so that we knew what movements would be associated with what goals um, and we knew what types of sets or how people move would be associated with these goals.
Once we got that research finished, we moved into more of the coding. So we kind of translated what performance explained to us into SQL Python, right? And then we built out an algorithm to score and rank the effects of each of these goals, which is what you were able to see on the workout details page. And of course, we used data bricks to enable um all of this workflow. So there were at least five data bricks elements that we had to leverage in order to stand this up.
The uh feature from data bicks that wraps around the entire process is the workflows tool. We were able to set up Chrome jobs and just schedule the content tagging um logic to run on a regular basis to regularly update our workout library or tag new workouts that come in within the workflows. uh we store all of our data inside of the Unity catalog, right? So that's where we're able to create the enrichments for our workouts and understand, you know, what is prescribed for each workout.
The notebooks element was where we did a lot of our development and wi uh was also the tool by which we um kind of flowed into workflows in order to make the jobs run regularly. And then we uh passed the data back and forth between the datab bricks environment and our tonal infrastructure with AWSS3. And you'll see this process come up in a couple of other um flows as well because this worked super well for us. And what do we know now about our content, right?
So we see here um the kind of prevalence of each of the different training goals across our workout library. At the time that we pulled this data um what you'll notice is that functional strength is the most prevalent of all of the goals that we have in our um content library. And that's actually followed by endurance. Um, which is sort of interesting because we saw that most people are are most interested in muscle growth, right?
So, this type of information also lets us understand, well, maybe we need to build more muscle growth content since that's what a lot of people are super interested in. Okay. Tracking progress. Um, so tracking progress comes in a couple of different flavors. The first piece that we enabled was what we call accumulations. So after each workout and at the end of each week, we want users to know how much of a given uh goal they have quote accumulated, right?
How much effort did they do across the week that we can then attribute to their goal of interest. And so what you can see here is that we have this information available as historical performance, right? Um the green bar in the middle labeled as a is the metric accumulation that we store for users for the current week and we also showcase that information for them for the past four to eight weeks. Um we are setting weekly targets which is what you users can compare their accumulations to and I'll talk about that um a little bit later.
So how did we figure out how to accumulate a certain amount of effort or a particular movement to a specific training goal? This is a very similar process to content tagging. So now performance rather than looking at a workout prescription um might look at how users move when they're doing a workout and they'll say if so and so lifted x% of their one rep max, we're actually going to tag that to the strength training goal as an example.
So we would take that explanation, we would translate it into code and then again we would build out an algorithm so that every single workout activity that we have in our database was uh had training goal efforts kind of tagged to it. And this um deployment was actually very different than content tagging. So users do workouts, you know, all the time. And we wanted to be able to showcase the accumulation right after somebody completed their workout.
And so the problem that we had to solve with this was actually a bit more of a streaming problem. And so what we have here is the tonal infrastructure, right? A workout ends um and then we pass all of the workout activity information. We collect it all in Kafka micro batches, right? And then we pass that information to our datab bricks environment, right? It's important to pass the workout activity over to data bricks because we need a lot of enrichment data that's only available in the data bricks environment in order to understand if somebody is doing a strength set or an endurance set or if they're just, you know, uh doing a muscle growth activity.
And so pass the information to data bicks, enrich it with um all the information that we already have stored there and then send the enriched information back through Kafka and expose it into our mobile app and general tonal infrastructure so that users can understand how much of any given workout they accumulated for that um after that workout. Okay, for this uh we spent a lot of time on the phone with our data bricks reps to understand how to make more performant joins.
Um one of the tools that we used for this was query planning. So we were able to um again set up more performant joins by looking at all of the different um kind of planned architecture as well as realized architecture and uh leveraged caching and reduced shuffles so that we could have faster data merges and reduce the compute time. We had to get the workout accumulations available to users in a matter of seconds. So evaluating every step of this process was really critical.
And what do we see now as users? Hopefully they see just super basic numbers even though there was a lot under the hood. Um in this particular example, what you'll notice is we plotted the number of strength and endurance sets for just one random user. And um for the first year of their time at Tonal. So this particular example, the user did between about two and five strength sets every week and then between five and nine endurance sets.
So a very interpretable sort of final integer after lots of uh lots of computations. Okay. So we know what users want to do. We know which content to surface to them in order to help them achieve their goals. We also know how much effort they're putting towards their goals every week. The final thing that we really had to do was provide a recommendation for how much to accumulate for every week for their goals of interest.
And so we call this weekly targets. And weekly targets are set at the beginning of each week. So you can log in on Mondays and understand how much tonal would recommend that you lift for any given week. Um it's visualized in the mobile app with a pretty classical kind of workout ring structure. Um where the dark gray bars will represent Tonal's recommendation for how much you should lift for a given goal. Um in this particular example, muscle growth is measured by volume.
So just pounds lifted. And so we are recommending for this user 42,000 pounds for a given week. So this person's using tonal pretty regularly. Targets were developed a little bit differently um than content labeling, workout accumulations, and of course the preference center. Um this was one of the only this was actually the only piece of the project where we had to do any kind of um forecasting, predictions into the future, that type of thing.
And so um what we did with this was we leveraged ML flow and we ingested a lot of different information about historical user um behavior and then we created low and high bounds based on um recommendations from our performance team. So we built out this model and then we did have to do a little bit of manual adjusting. Um what we found was that for people that were super lowly engaged, we were actually getting recommendations, you know, do half a strength set, do 1.
75 endurance sets, you know, kind of nonsensical, very small values. So we um adjusted those small r adjusted those small values and created ranges that were a little bit more uh progressoriented if you will forward thinking um to get final results for people. And this one uh very similar structure I would say to the content tagging effort that we did. So, um, in order to get the weekly targets stood up, we used all of the data available in our Unity catalog.
And then we actually run three separate jobs on top of it with three different um, notebook flows. One job runs just on Sunday nights. That's our standard job. Um, and that will give us scores for all of the users in our user base um, for every Sunday. Of course, people work out after we run that job. So, we run um what we call like a catch-up script the following early morning um just to grab anybody who maybe did a workout after after the job ran.
And then those scores get updated as well. And then finally, um for any users that start with tonal in the middle of the week, we don't force them to wait until the Sunday to get their weekly targets. So we run a regular regularly recurring job for new users so that they can have recommendations right when they get started with tonal. As with the other um processes here, we land all of that information in S3 before exposing it to the tonal infrastructure and ultimately back into the Unity catalog again.
And each one of these jobs is monitored. Um, so we have all of the jobs set up um, inside of data bricks and you can go into the UI and just make sure that they're all running as scheduled. Um, you can obviously for any of you who have used uh, workflows, you can click in and sort of see how long the job took, if there were any issues. You can debug super easily. So uh, look at this screen probably way more than I should.
Okay. Impact. Oh, before we get into how this affected our users, um, if I click this, will it play? No. Okay. We have a video that walks through the entire user experience. So, of course, this was about four different features for the engineering team to deploy. But for the user, it's just one experience, right? So, first they go in and they select their goals. As I described, we've got a typical muscle growth user.
I think this person picks endurance. Um, and weight loss. Yes. So, now they've selected their preferences. Now, we're going to take them to some workouts that we might recommend based on those preferences, right? Um, and they can also select uh to look at different workouts, of course, based on the content tags that we have. So, we've got this these workouts. We're going to click in now and just take a look quickly at like the magnitude of effect, right, that we might expect to see for any one of these workouts and kind of how well Tonal did in terms of surfacing the information to me.
So I see muscle growth, weight loss, endurance, all with very high effects. And the last thing I want to do is check my progress. So have I met my goals for the current week? Um how has my previous and historical performance sort of trended over time? It's all available to you in one kind of enclosed ecosystem here. And I think that's it. Great. So, thinking back to the motivation and kind of our purpose behind this to really get people back on the trainer to be excited to work out, right?
Um, we wanted to understand if this changed any user behavior. So, the first thing that we looked at was what we call weekly target completion. So, this is going to measure the percent of users that close their rings or achieve their goals um for any given week. And we did a pre-post analysis for this and we had four different cohorts. So, we had what we'll call sort of a baseline cohort. We have pre-post period for people who never interacted with this feature on the trainer on the mobile app.
Then we go and we look at of the people who did engage with the feature, we see people who interact with it a very minimal amount, maybe just once. We call those the only viewed cohort. And then we have the low and high frequency users as well. And as you can see in the bar chart, um, basically engagement with the feature is correlated with closing your rings and working out more, right? So all of those signs sort of indicate to us, okay, great.
We're kind of working towards achieving our own goals of helping people kind of self-motivate with this progress tracking tool. The other thing that we always like to check is workout activity. You know, we want people on the machine. We want people to be using it on a regular basis. And um the trends that we see you looking at this outcome metric are very very similar to what we saw with um percent of users achieving their weekly targets.
And lucky for us, we also stood up a dashboard um and so now we can monitor all of those metrics not just in a pre-post fashion, but we can monitor them just generally, right? Um week over week. So this is more of a standardized dashboard view. What we have uh we have a series of metrics for different features called um efficacy metrics. Of course for training goals the efficacy metric here is the percent of users that um meet their weekly targets.
We've also established the very a very similar um cohorting approach as was described on the prior page. So we have people that don't use the feature at all. we have people that interacted with it just once in the given week. And then we have the medium and high engagement. So people um using it more or less than the median number of times. And this chart shows a very similar um sort of trend as the last chart did where we have high engagement being correlated with the outcome metric that we're trying to drive.
Uh and you might notice the spike in blue for the people that don't engage. It's a blip, but um we always release a big um mark we do a big marketing push in January associated with like you know New Year's resolutions. So our zero engagement users do see a spike there but still much lower than than the others. Okay. So in some um data bricks really was our centralized solution to enable all of this. You all saw that we referenced the Unity catalog for our data enrichments and our data storage.
Um for a lot of the components of this feature, we used workflows to schedule our Chrome jobs. We um used autoloader and m and ml flow for different components to help us um efficiently process data and to um register any models that we create into a library. And then notebooks was really the engine for developing code and um maintaining all of the jobs. And then of course finally we have the dashboards which lets us visualize our progress and make sure that we are developing features that actually make an impact for our member base.
So what are our next steps? There's a lot of ways and a lot of places that we could go with this. Um right now we calculate training goal accumulations and weekly targets based on the type of workouts that users complete, right? Um, you could imagine in the future us leveraging some of our newly released features like the computer vision feature um to calculate these metrics more on how users move, right? Understanding a little bit more range of motion or um poor or pos good or bad form.
The other thing that we do right now is offer content recommendations based on the preferences that users select. Um, one very impactful way that we could change this is by offering recommendations to users that would just let them achieve their weekly target, right? Like you have 10,000 pounds left to meet your muscle growth goal. You should do this workout because we think you'll get 10,000 pounds out of it. Um, that requires us estimating the amount of training effect goals quantitatively on each of our content um, pieces of content.
So, definitely a bit more work to do there. And then the last thing uh just that be mentioned we have eight training goals. We actually only have a suite of metrics um for seven of them. Um so we have one that's missing and of course we would like to get values for that one as well. Um so and I are the two on the stage here today but I think there's about 24 faces on this page. Um, it was a an enormous group effort across a lot of different teams, engineering, data science, product, user research, uh, performance.
So, it really took a lot of different folks to enable, test, envision, evaluate what this feature looked like. Um, and some of them are even here in the room today. So, uh, thank you guys so much for your attention. Um, we actually do have a tonal setup in the main building um for Mosone. Yeah, it's in Hall F. Um, and it's it's we've got a couple of folks there from our retail team to sort of help help you with demos if that's of interest.
And we're really excited to have been able to kind of hack our way through motivation.

Learn more about the Databricks Data and AI platform.

The information provided herein is for general informational purposes only and may not reflect the most current product capabilities or configurations.