A shot chart shows where a player shoots. An archetype describes how he plays. This project tests whether a convolutional neural network (CNN) can tell a player’s archetype from his shot chart alone.
- Make one shot chart per player per season (2020-21 to 2024-25)
- Group players into archetypes using stats that don’t include shot location
- Train the CNN on most players’ shot charts, then test it on players it hasn’t seen
- Measure its accuracy
I also took a quiz against the CNN to see who could read shot charts better.
Think you can beat it?
The Results
How accurate is the CNN?
It was tested on 235 charts from 79 players it never saw in training.
Primary means the CNN chose the player’s archetype. Primary or secondary also counts his second-closest archetype, since some players are between two.
| Method | Primary | Primary or Secondary |
| Random guessing | 12.5% | 25% |
| Always guessing the most common archetype | 18.3% | 41.7% |
| CNN | 57.9% | 77.9% |
The CNN chose the right archetype for 57.9% of charts, more than four times the rate of random guessing. When it was wrong, its guess was often the player’s second-closest archetype, which brings it to 77.9%.
Can it beat me?
On a 40-chart quiz, the CNN got twice as many right as I did. (See Me vs. the CNN below.)
The Data
I used every regular-season shot from five NBA seasons (2020-21 to 2024-25), about 1.06 million shots, from the NBA stats API. I only kept player-seasons with at least 200 shots, which left 1,643 charts.
Building the Shot Charts
I split the half court into 2 ft squares and counted each player’s shots in each square. I then took the square root of each count, so the many shots at the rim don’t drown out everything else.

Creating the Archetypes
To test the CNN, every chart needed a label. I couldn’t use shot locations, or the CNN would just be guessing answers made from the information it sees. I used 11 stats that describe how a player plays: usage, how long he holds the ball, passes and potential assists, turnovers, drives and how often he passes out of them, free throw rate, post and elbow touches, and how many of his made shots were assisted.
I converted each stat to a z-score within its season, so they were all on the same scale, then used k-means to group similar player-seasons. I tried different numbers of groups and chose eight, because they made the most basketball sense.
- Heliocentric creator: the offense runs through his dribbling (Shai Gilgeous-Alexander, Trae Young)
- High-usage scorer: a main scorer more than a passer (Anthony Edwards, Jayson Tatum)
- Secondary creator: handles and passes, but isn’t the focus (Tyler Herro, Desmond Bane)
- All-around role player: a bit of everything (Josh Hart, Dyson Daniels)
- Off-ball scorer: scores off others’ passes and rarely passes (Mikal Bridges, OG Anunoby)
- Spot-up specialist: mostly shoots when set up by teammates (Klay Thompson, Buddy Hield)
- Post/elbow hub: a big the offense runs through (Nikola Jokić, Bam Adebayo)
- Low-usage big: screens, cuts and finishes (Jarrett Allen, Myles Turner)
To check the labels, I looked at 44 players I knew well. Their closest or second-closest archetype fit every one.
The CNN
I split the data by player, not by chart. A player’s charts look alike from year to year, so if some of his seasons were in training and others in testing, the CNN could score well just by recognizing him. All 1,643 charts were divided into 1,408 for training and 235 for testing, from 79 players the CNN never saw.
Each chart is a 24×25 grid, like a small grayscale image. Two convolutional layers look for patterns in where a player shoots, and pooling layers shrink the chart between them. Dense layers then turn those patterns into a probability for each of the eight archetypes, and the CNN guesses the most likely one.
model = tf.keras.Sequential()model.add(tf.keras.Input(shape=(24, 25, 1)))model.add(tf.keras.layers.Conv2D(16, 3, activation='relu'))model.add(tf.keras.layers.MaxPooling2D())model.add(tf.keras.layers.Conv2D(32, 3, activation='relu'))model.add(tf.keras.layers.MaxPooling2D())model.add(tf.keras.layers.Flatten())model.add(tf.keras.layers.Dense(64, activation='relu'))model.add(tf.keras.layers.Dense(8, activation='softmax'))
I trained it for 15 epochs (passes through the training charts) using the Adam optimizer, then tested it on the 235 charts it had never seen.
Where It Struggled
The CNN did best on post/elbow hubs (83%), low-usage bigs (78%) and spot-up specialists (72%), roles with distinct shot locations. It struggled most with heliocentric creators (19%) and all-around role players (23%). Heliocentric creators were usually mistaken for high-usage scorers or secondary creators, roles that shoot from similar places but differ in passing and ball handling, which a shot chart doesn’t show.



Me vs. the CNN
To see how the CNN compared with a person, I made a quiz from 40 test charts, 5 from each archetype, in random order. Each chart showed a full season of shots, the same information the CNN sees, with court lines added and no names, teams or seasons. I took the quiz without studying any example charts, using only the archetype names. The CNN answered the same 40 charts.
| Method | Primary | Primary or Secondary |
| Me | 27.5% | 45% |
| CNN | 55% | 70% |
The CNN got twice as many right as I did, 22 to 11. We tied on high-usage scorers and low-usage bigs, which have some of the most recognizable charts, getting 3 of 5 each. The biggest gaps were on all-around role players, where it got 4 of 5 and I got none, and on secondary creators, which I almost never guessed. Neither of us did well on heliocentric creators.
This was one person and 40 charts, so it’s a fun comparison rather than proof that a CNN beats people. The CNN’s quiz answers come from an earlier run, so its score is slightly different from the main result.
Think you can beat it?
What I Learned
What shot charts reveal: roles defined by where players shoot, such as bigs and spot-up shooters.
What shot charts don’t reveal: roles that differ in passing and ball handling, such as heliocentric creators vs. high-usage scorers.
One surprise was how difficult the quiz was. Shot charts don’t show how often a player passes or where he passes from. Adding the locations players pass from would be an interesting next step.
Limitations
The archetypes come from k-means, so they’re one way to group players, and some players fall between two.
The test set is small, with only a few players in some archetypes.
The charts show how much a player shoots, not just where.
The archetypes were made from all players, including the test players (though the CNN never saw those stats).
The quiz was one person and 40 charts.
Next Steps
Next, I’d add makes and misses, shot types and passing data to help separate roles that look alike on a shot chart, and use more seasons for a larger test set.
Closing
A shot chart says a lot about a player’s role, but not everything. The CNN was right more than half the time on new players, and its mistakes came from roles that shoot from similar places but play differently with the ball.