Climbing · Machine learning
Can a hangboard and machine learning estimate your climbing grade?
Back in 2024, I wanted to learn more about machine learning models, and ended up building a model that guesses a climber's grade from a few hangboard and pull-up tests. I wanted to revisit it, reclean and rebuild the dataset from scratch, and retrain everything, for bouldering and for sport climbing. Finger strength explains a good chunk of how hard people boulder, and the bouldering model lands within two grades of the climber's real grade 75% of the time. Sport is harder to call, mainly because maximum strength matters less. This piece goes through the whole process, from cleaning the data to building and testing the models, and shows where they still get it wrong.
The data
679 climbers, five strength tests and a grade for each discipline.
The data comes from Power Company Climbing, a training company that surveyed its members. Everyone gave their age, height, weight and how long they'd been climbing, the hardest boulder and sport route they'd climbed outdoors in the past year, and their results on five strength tests:
- Max hang. The most extra weight you can hang from a 20 mm edge, about the depth of a finger pad, for around ten seconds.
- Weighted pull-up. The most extra weight you can do one pull-up with.
- Pull-ups. How many you can do in a row.
- Continuous hang. How long you can hang from the same 20 mm edge before you let go.
- Repeaters. Short hangs with short rests on the same edge until you can't hold on. The score is the total time on the edge.
Climbing strength is usually measured relative to bodyweight, because the heavier you are, the more you have to hold up. Send Labs, the app I built on the back of this project, does the same, so the max hang, weighted pull-up and pull-ups here are all scaled by bodyweight. A 70 kg climber who adds 28 kg on the hangboard is hanging 140% of their bodyweight.
526 people gave a bouldering grade, 503 gave a sport grade and 374 gave both. The middle boulderer climbs V7 and the middle sport climber leads around 7a+/7b. Nearly three in four are men. Ages run from 16 to 73, with a median of 32.
Hardest outdoor boulder in the past year, Power Company Climbing survey (526 climbers). The lowest option on the survey was "below V3", which is why there's no V3 bar.
Cleaning the data
Most of the work happens here, before a model gets anywhere near it.
For this version I started again from the two raw survey files instead of reusing the processed files from 2024. Going through them properly turned up problems in my original code, and a couple of them changed the results. Here's what I found and what I did about each one.
| Problem | Affected | What I did |
|---|---|---|
| No outdoor grade in the past year | 153 boulder 176 sport | Left them out of that discipline. The first version gave them a grade of zero, or estimated one from their tests, so the model was learning grades nobody had climbed. |
| A zero on a strength test | 55 answers | Treated as "not done". A strong climber with zero pull-ups almost certainly skipped the question. Zero kg added could be a real answer, but it's also how a blank got stored, so those went too. |
| Impossible or mistyped values | 40 values | Removed the value and kept the climber. These were things like a 927-second hang, or an arm span typed in centimetres when the survey asked for inches. |
| An outlier rule that removed anyone unusual | 6 climbers | The first version dropped any climber who was unusual on any measure. That took out everyone older than 57. I swapped it for limits on what's physically possible. |
| US sport grades converted to French | all 503 | My original conversion table was out by about two and a half grades: 5.12a came out as 6c instead of 7a+. Now uses the standard conversion. |
| "More than 10 years" typed two ways | 25 climbers | One spelling was coded a band higher than the other. Both now go in the top band. |
The cleaning rules in code
def zero_is_missing(s):
s = pd.to_numeric(s, errors="coerce")
return s.where(s > 0) # a 0 means the test wasn't done
for col in ["pullups", "continuous_s", "repeaters_s"]:
df[col] = zero_is_missing(df[col])
for col in ["hang_added_kg", "pull_added_kg"]:
df.loc[df[col] == 0, col] = np.nan # 0 kg was also how a blank got stored
# limits on what's physically possible, checked one value at a time
caps = {"height_cm": (140, 210), "weight_kg": (40, 130), "span_cm": (140, 220),
"pullups": (1, 50), "continuous_s": (1, 180), "repeaters_s": (1, 450),
"hang_added_kg": (0.1, 100), "pull_added_kg": (0.1, 100), "age": (14, 80)}
for col, (lo, hi) in caps.items():
bad = df[col].notna() & ~df[col].between(lo, hi)
df.loc[bad, col] = np.nan # drop the value, keep the climber
# every strength test relative to bodyweight, the way Send Labs does it
df["hang_ratio"] = (df.hang_added_kg + df.weight_kg) / df.weight_kg
df["pull_ratio"] = (df.pull_added_kg + df.weight_kg) / df.weight_kg
df["pullup_ratio"] = df.pullups / df.weight_kg
After that, a climber needs all six measures to go into the model: the five tests plus years climbing. Repeaters was the test people skipped most often. That leaves 423 climbers for bouldering and 403 for sport.
How the Power Company survey narrows down to the climbers each model learns from. Most climbers are in both.
Dropping someone because they skipped one test throws away the rest of their answers. In the first version I kept everyone and filled the gaps with k-nearest neighbours (KNN), which estimates a missing test from the climbers whose other answers are most like yours. This time I dropped incomplete climbers instead and then tested whether that was the better call. Dropping turned out to be no more accurate than KNN, just simpler. The details are in the modelling section below.
What moves with grade
Finger strength for bouldering, endurance for sport. Body size barely registers for either.
Before building anything, I wanted to see which measures move with grade at all. The chart scores each one from −1 to 1. A score of 1 would mean the stronger someone is on that test, the harder they climb, every single time. A score of 0 means there's no link. Nothing gets close to 1, which isn't a surprise given how much else goes into climbing hard.
Spearman correlation between each measure and hardest grade, Power Company survey (between 462 and 526 climbers for each measure, depending on how many answered). Spearman's version only asks whether the two rise together, not whether they rise in a straight line. Sex is scored with men as 1 and women as 0, so a positive score means men report higher grades.
For bouldering, max hang relative to bodyweight comes top at 0.62, and every strength test is clearly linked to grade. Body size has no link, and height and weight score close to zero. Ape index (how much longer your arm span is than your height) only gets to 0.22. Sex has a small link too, 0.19 for bouldering and 0.14 for sport, which the age and sex section below looks at properly. Scaling by bodyweight also made less difference than I expected: raw kilograms added on the hangboard score 0.60, almost the same as the scaled version.
What scaling by bodyweight means
Scaling turns a raw result into one you can compare between climbers of different sizes. Here it means dividing by bodyweight.
For max hang and the weighted pull-up, the score is (bodyweight + added weight) ÷ bodyweight. A 70 kg climber who adds 28 kg scores 98 ÷ 70 = 1.4, or 140%. A 90 kg climber has to add 36 kg to score the same. Pull-ups are divided by bodyweight as well, so 14 pull-ups at 70 kg is 0.2 per kg.
The hang times aren't scaled. They're done at bodyweight anyway, so a heavier climber hanging for 30 seconds is already holding more.
It made little difference here because most climbers in the survey weigh about the same: the middle half are between 63 and 76 kg. Ranked by kilograms added or by the scaled score, climbers come out in almost the same order.
Sport changes the order. Repeaters (0.54) and the continuous hang (0.51) overtake max hang (0.39), and years climbing counts for more as well, 0.48 against 0.36 for bouldering. That fits how the two feel. A hard boulder might be ten moves and a sport route can be fifty, so on a route it's more often your endurance that runs out first.
Strong fingers help, but the spread is huge
Plotting every climber shows both sides of this. For bouldering, the median grade rises steadily with finger strength, from V5 for people hanging under 120% of their bodyweight to V10 for those hanging over 160%. But the 95 climbers hanging 140–150% of bodyweight run all the way from V4 to V14, so you have climbers with strong fingers at almost every grade. For sport, finger strength only helps up to a point. The median goes from 6c+/7a for people hanging under 120% of bodyweight to 7b+/7c at 140–150%, and then stops rising: the strongest fingers in the survey lead no harder on average than people hanging 140%. Repeaters keeps going though, with the median running from 6c+/7a for people who last under a minute to 7c+/8a for those who last over three, and a wide spread at every level.
Max hang against hardest boulder, one dot per climber (490 climbers who did the max hang test). Red lines: the median grade within each band of strength. Dots are nudged slightly so climbers with the same numbers don't sit on top of each other.
Age, sex and reach
Men climb harder on average, but the gap goes away at the same strength. Age still matters after that, and for bouldering so does reach.
Men in the survey boulder about a grade harder than women on average, V7 against V6, and lead about a grade harder too. But men also score higher on the strength tests. Women hang 133% of their bodyweight on average against 143% for men, and the gap on the weighted pull-up is bigger still.
What I wanted to know is whether men and women who are equally strong climb different grades. A regression can answer that by estimating the gap while holding the six measures fixed, which is roughly like comparing men and women who scored the same on every test. When we do that, the gap disappears, which means at the same strength, women boulder 0.2 grades harder than men and lead 0.4 grades harder, and both ranges comfortably include zero.
Grade gap between men and women, in V-grades, for the 421 climbers with every measure and a recorded sex. Dots are the estimate; bars are the 95% confidence range, where the true gap very likely sits. A bar that crosses zero means no clear gap.
Age works differently. Average bouldering grade holds at around V7 until the late thirties and drops to about V6 from 40. Some of that is strength, since older climbers in the survey hang a little less, but not all of it. At the same strength and experience, each extra decade goes with about 0.8 grades less.
Sport is less obvious at first. The average grade rises into the late thirties, and climbers over 45 lead about as hard as people in their twenties. That's mostly down to experience. Older climbers have usually been at it longer, and experience is one of the best predictors of sport grade. Compare climbers with the same strength and the same years on the wall, and each extra decade goes with about 0.7 grades less, close to the bouldering figure. The survey can't say why. Fewer days on rock and slower recovery from injury would both fit, but that's a guess.
Average hardest boulder by age group, Power Company survey (526 climbers).
Reach is the last piece. Ape index is how much longer your arm span is than your height, and in the chart earlier it only scored 0.22 for bouldering. But unlike sex, it doesn't go away at the same strength and experience. Each extra 10 cm of ape index goes with about 0.7 grades harder bouldering, somewhere between 0.4 and 1.1. Half the climbers in the survey fall between 0 and 5 cm, so between two typical climbers the difference is around a third of a grade. For sport the range crosses zero, so the survey can't say either way. The first version picked up arm span too, though unlike strength it isn't something you can train.
Send Labs doesn't ask for age or arm span, so the models below leave both out. For age that costs a little, so I might consider adding it in future. Added to the bouldering model, it cuts the average miss from 1.43 grades to 1.36. Arm span barely moves it, even though its effect is real, because the difference between two typical climbers, about a third of a grade, is small next to a typical miss of 1.4.
Building the models
Starting from a guess that ignores the tests, and working up to three different models.
A model here is a recipe that takes someone's test results and gives back a grade. To judge one, I look at how far off its guesses are on average, in grades. That's the number every approach below is compared on. Alongside it I report R², the share of the differences in grade between climbers that a model accounts for.
Step one: guess the average
The simplest model ignores the tests completely and says everyone is average. It's a terrible model, but it sets the bar anything else has to clear. For bouldering it misses by 1.9 grades on average, and for sport by 2.7.
Step two: one measure, one line
Next, draw the straight line that best fits the max hang chart above and read each climber's grade off it. That one measure gets the bouldering miss down to 1.5 grades. It does much less for sport (2.5), which is what you'd expect given how loosely max hang tracks sport grade.
Step three: all six measures at once
Linear regression does the same thing with all six measures. It gives each one a weight, multiplies and adds up: so many grades for each extra slice of bodyweight on the hangboard, so many for each extra year of climbing. I used ridge regression, which adds a safeguard. Several of the measures overlap a lot, and with overlapping measures a plain regression can hand one a huge positive weight and another a huge negative one that cancel out. Ridge keeps the weights small unless the data clearly calls for more. How hard it pushes is a setting called alpha, which gets tuned.
Step four: decision trees
A decision tree works like a game of twenty questions. Does this climber hang more than 140% of their bodyweight? If yes, have they been climbing for more than eight years? Each answer narrows the guess, and a tree can pick up patterns a straight line can't, like a measure that only starts to matter above some threshold. A single tree tends to memorise the people it learned from, so I tested two ways of combining lots of them. A random forest grows hundreds of trees on different samples of climbers and averages them. Gradient boosting grows them one after another, with each new tree trying to fix the mistakes of the ones before. Both have settings to tune, such as how deep each tree is allowed to grow.
What a decision tree looks like
This is a real tree, grown on the survey's bouldering grades and limited to two questions. To pick each question, it tries every measure and every cut-off, and keeps the one that leaves the two groups most alike in grade. Max hang won both times.
Each climber follows the answers down to a box, and the guess is the average grade of the survey climbers who ended up there. A random forest grows hundreds of trees like this, each deeper and on a different sample of climbers, and averages what they say.
Testing fairly
A model has to be scored on people it hasn't seen, otherwise it can look great just by remembering. So the climbers are split into five groups. The model learns from four and gets scored on the fifth, and that repeats until every group has had its turn as the test. I ran the whole thing five times with different random groupings, so each score is an average over 25 tests.
Five-fold cross-validation. Every climber is in the test group exactly once per run.
The tuning happens inside each round, using only the four training groups. Those get split five ways again, every combination of settings on a grid is tried, and the best one is kept. This setup is called nested cross-validation. It matters because if you tune a model on the same climbers you then score it on, it looks better than it really is. It's a form of what you might have heard called overfitting: the model ends up fitted to the particular climbers it's scored on rather than to climbers in general.
The model comparison in code
outer = RepeatedKFold(n_splits=5, n_repeats=5, random_state=42) # 25 test rounds inner = KFold(n_splits=5, shuffle=True, random_state=42) # tuning, inside each round models = { "ridge": (make_pipeline(StandardScaler(), Ridge()), {"ridge__alpha": [0.1, 1, 10, 30, 100]}), "forest": (RandomForestRegressor(n_estimators=300), {"min_samples_leaf": [3, 6, 12], "max_features": [0.5, 1.0], "max_depth": [None, 6]}), "boosting": (HistGradientBoostingRegressor(), {"learning_rate": [0.03, 0.1], "max_depth": [2, 3], "max_iter": [100, 300], "min_samples_leaf": [10, 20]}), } scores = {name: [] for name in models} for train, test in outer.split(X): for name, (model, grid) in models.items(): search = GridSearchCV(model, grid, cv=inner, scoring="neg_mean_absolute_error") search.fit(X.iloc[train], y.iloc[train]) # tuning only sees the training folds guess = search.predict(X.iloc[test]) scores[name].append(mean_absolute_error(y.iloc[test], guess))
The result
Average miss on climbers the model hadn't seen, five-fold cross-validation repeated five times (423 climbers). R² is the share of the differences in grade between climbers that the model accounts for; guessing the average scores zero by definition.
For bouldering, ridge regression misses by 1.4 grades on average and accounts for 43% of the differences between climbers. 75% of its guesses land within two grades. The two tree methods come out slightly worse. With a few hundred climbers there isn't enough data for their extra flexibility to pay off, and the relationship is close to a straight line anyway. When the simple model and the complicated one score about the same, I'll take the simple one, because you can see exactly what it's doing.
Sport is harder. Ridge wins again, missing by 2.1 French grades (roughly the gap between 6c and 7a) and accounting for 35% of the differences. 56% of its guesses are within two grades. The strength tests capture less of what it takes to get up a long route.
Dropping climbers or filling the gaps
So far, anyone missing a test was left out. The alternative, and what I did in the first version, is to keep everyone and fill each gap with an estimate. I tried two ways of doing that: the median for that test, and KNN, which takes the average of the five most similar climbers. The filling happens inside each training split, so the test climbers stay unseen.
It makes very little difference. For bouldering, the 423 complete climbers are guessed just as well as before, and the 103 who had a gap are guessed a bit less accurately, missing by 1.5 grades on average. For sport, the climbers with gaps are actually guessed slightly better. So dropping the incomplete climbers was no more accurate than filling their gaps with KNN, and no less. It just kept the analysis simpler. In an app, though, people skip tests all the time, so filling the gaps is the more useful option there.
Testing whether more data helps
The obvious way to improve a model is to give it more data, and the app collects more all the time. A learning curve shows whether that's likely to work. You train on 50 climbers, then 100, and so on, scoring each version on the same held-back group.
Each point is the average over 40 random splits: 85 climbers held back for testing, and the model trained on a sample of the rest. The tree models use fixed settings here rather than being re-tuned at each size.
For ridge regression the curve is nearly flat. Trained on just 50 climbers it misses bouldering grades by 1.48; trained on 338, by 1.43. Sport goes from 2.25 to 2.12. The tree models start further back and are still improving at the full sample, so with a lot more data they might eventually catch up, but they haven't yet. More of the same kind of data won't make ridge much better. What holds it back is how much of a climber's grade six strength tests can capture in the first place.
Reshaping the measures doesn't get round that either. I tried several ways of making them easier for a straight line to use: squashing the long hang times, letting each measure's effect curve, multiplying pairs of measures together, treating experience as categories, and using raw kilograms instead of ratios to bodyweight. None of them beat the plain six measures, for bouldering or sport.
What the model leans on
For bouldering, three measures do nearly all the work.
To see which measures matter, I scrambled them one at a time. Shuffle everyone's max hang results between climbers, so the model gets the wrong number for each person, and see how much worse the guesses get. If they barely change, the model wasn't relying on that measure. This is called permutation importance.
How much the average miss grows, in V-grades, when each measure is shuffled between climbers. Ridge regression, measured on climbers it hadn't seen.
For bouldering, max hang matters most by a long way, followed by years climbing and the weighted pull-up. The other three add almost nothing, and a model with just those three is as accurate as one with all six. The first version's ridge regression picked out the same three.
That looks like it contradicts the earlier chart, where continuous hang time tracked grade almost as closely as max hang. The two overlap: someone who can hang a lot of weight can usually hang for a long time as well. Once the model knows your max hang, your continuous hang doesn't tell it much that's new. Sport turns this round. Years climbing comes first, followed by the weighted pull-up and repeaters, and max hang adds next to nothing once those are in.
How importance is measured matters too. A random forest comes with its own built-in score, based on how much each measure's splits improved the fit on the climbers it was trained on. That score gives max hang 44% of the credit for bouldering and spreads the rest across the measures that move with it. Scrambled on unseen climbers instead, the same forest turns out to lean on max hang more than ridge does, 62% of the total against 56%. It also copes worse without it. Blank out max hang, so every climber gets a typical value in its place, and the forest's average bouldering miss grows from 1.48 to 1.71 grades, while ridge's grows from 1.43 to 1.60.
Where it goes wrong
Both models pull everyone towards the middle.
Putting each climber's real grade next to the model's guess shows the main weakness. Strong climbers get guessed too low: people bouldering V11 and above are guessed at about V9 on average. Weaker climbers get guessed too high, with V4 and below guessed at about V5. Sport does the same thing, more strongly. Climbers leading 7c+ and above are guessed at about 7c, and those at 6c and below at about 7a+. The first version's error plots showed the same thing at the top end, with the strongest boulderers guessed too low.
Reported grade against the model's guess for each climber, from the cross-validation (ridge regression, 423 climbers). The dashed line is a perfect guess. Red: the average guess for each group of grades, plotted at the group's average real grade. Dots are spread sideways a little so they don't overlap.
Any model does this when its inputs only explain part of the picture, here a bit over 40% for bouldering and about a third for sport. If the tests can't tell an extreme climber from a moderate one, the safest guess is closer to the average. Whatever lets someone climb V12, be it technique or years of projecting hard problems, these six tests mostly don't pick it up, or there isn't enough data at the higher ends of the scale to train the model.
Testing it on a second survey
The model ranks the Reddit climbers sensibly, but its guesses come out too low.
A second survey, run on Reddit's r/climbharder forum, asked a lot of the same questions. It didn't include the endurance tests and most people left the max hang blank, but 124 climbers answered the max hang, weighted pull-up and pull-ups questions and gave a bouldering grade, and 93 did the same with a sport grade. That makes a good test. Train a model on the Power Company climbers only, then ask it to guess people from a different survey.
For bouldering, the model got the order roughly right, with stronger Reddit climbers guessed higher. But its guesses were about one and a half grades too low on average, enough that it barely beat guessing the average. At every level of finger strength, Reddit climbers reported grades one to two higher than Power Company climbers. Sport held up a bit better. The guesses were about 1.3 grades too low, but the model still beat guessing the average (2.7 grades against 3.0) and accounted for 17% of the differences between the Reddit climbers.
Median bouldering grade at the same max hang, Power Company survey (329 climbers in these bands) and Reddit survey (74). Max hang is weight added as a share of bodyweight.
The results above either mean that the two surveys measure grade differently, or one of the two groups under or over-estimated their grades. The test protocols may differ, with a different edge or hang time, and the Reddit question may have counted climbs from further back. Either way, two surveys can't just be stacked together and treated as one dataset.
Try it
Put in your numbers and see what the two models guess.
Bouldering
V7
Half of climbers with these numbers boulder between V6 and V8, and four in five between V5 and V9.
Sport
7b
Half of climbers with these numbers lead between 7a+ and 7c, and four in five between 6c+ and 8a.
This is the model from this article, trained on one survey. The model inside Send Labs is a different one, and that's what the next piece is about.
On the bouldering model, adding another tenth of your bodyweight on the hangboard is worth about half a grade, and the same on the weighted pull-up about 0.3 of a grade. The sport model gives max hang no weight at all. It leans on the weighted pull-up, endurance and experience instead: an extra tenth of bodyweight on the pull-up is worth about 0.4 of a grade, and an extra minute of repeaters or one more experience band about two thirds of a grade each. Treat both as a guide to what climbers like you tend to climb, not a prediction of your own limit. They miss individuals by more than a grade on average.
Next: putting it into production
A model in a notebook is only the start, and usually the hardest part is putting that model into production where users can interact with it. A version of this one runs in Send Labs, an app where climbers put in their numbers and get a predicted grade back. It retrains as people submit their real grades, and every new version has to be checked so it never replaces a better one just because a round of retraining took place. That brings its own problems, including the one the Reddit check points to: what happens when data from different sources gets stacked together. In the next piece I'll be sharing how I went from the models trained in a notebook, to using MLflow and Databricks to track them, and then enabling climbers to interact with them.
Method. Data: Power Company Climbing member survey (679 climbers), with the r/climbharder survey (617 climbers) used only for the outside check. Grades are on the Send Labs numeric scale, and US sport grades were converted to French with the standard chart. Strength tests are scaled by bodyweight as in Send Labs, a zero on any test counts as not measured, and impossible values were removed. The sex, age and ape index effects come from ordinary least squares regressions that hold the six measures fixed, and pass the standard checks on their assumptions. Models were scored by five-fold cross-validation repeated five times, with settings tuned inside each training split, and importance is permutation importance on the held-out climbers. The interactive uses ridge regressions fitted on every complete climber, with the weights kept at zero or above.
Sources. Power Company Climbing member survey data, as shared by Power Company Climbing; r/climbharder survey (version 3) responses. Code and data: github.com/Tetleysteabags/climbing-grade-predictions. The first version of this analysis was published on Medium in July and September 2024.