Possession-chain modelling to measure the threat of AFL attacks
A model of how much scoring threat each AFL attack creates, from winning the ball to the shot, used to compare types of attack by how fast and direct the ball moves and where it started.
Background
Inside 50 counts and scores leave out most of what an attack did. Two teams can each go inside 50 fifty times and create very different chances, and a team can kick inaccurately and still have attacked well. Coaches want to know which ways of moving the ball create good chances; broadcasters want to show how dangerous a team's attacks were, not only how many there were.
This project values every moment of every attack in expected points, then compares types of attack by how they moved the ball and where they started.
Data
Every possession chain from the AFL match centre for the 1,279 men's premiership matches from 2021 to 2026 that have them: 2.6 million kicks, handballs, marks, contests and shots, each with where it happened and when.
How it works
Every value is in xScore, expected points: what a chance is worth on average, not what the kick happened to do. A goal is 6 and a behind 1, so a shot's xScore runs from 0 to 6. Using it in place of the scoreboard keeps the kicking luck out: a goal from a hard shot does not make the play that led to it better, and a miss from a sitter does not make it worse.
- A shot's xScore is 6 × the chance of a goal + 1 × the chance of a behind, from where it was taken (distance, and how much of the goal mouth the kicker can see), whether it was a set shot, and how the kicker got the ball. Shots from within 15 m average 4.8; from beyond 55 m, 1.9.
- An attack is one team's turn at goal. It starts when the team wins the ball and ends when it scores, when the other team takes the ball away, or when the ball stops outside its forward half. A ball-up or throw-in inside its forward half does not end it: forcing one is part of attacking.
- Attack value is, at any moment, the xScore the team is expected to create before its attack ends, counting the shots it has not taken yet. A centre bounce is worth about 1.0 to the team that wins it; a free kick 26 m out, about 4.
- Defence value is the other side of the ledger: the xScore the opposition is expected to create in their next attack if this one ends without a score. With the ball deep in your own defence it is about 0.9, because losing it there hands them a short kick at goal; within 30 m of goal it is under 0.2.
- Net value is attack value minus defence value: how good the moment is for the team with the ball. With the ball in hand it runs from −0.46 deep in defence to +1.88 inside 30 m of goal.
- Change is what each event did. The number on an event is the change in net value from that event to the next one, plus the xScore of any shot it took. So the number on a kick includes where it landed, and the number on a landing includes whether it was marked. A turnover scores the value lost plus what it hands the opposition. A chain's changes add up to its net added.
Each value is a LightGBM model of what followed hundreds of thousands of similar moments: where the ball was, whose it was and how they got it, how the attack began and how far it had come, the time and the margin.
Chain types and similar chains
Attack values say how much a chain was worth; they do not say what kind of chain it was. Each chain is also described in up to three phrases, read off its events with the ball always moving towards the attacking goal:
- Source: how and where the team won the ball. A centre clearance, a stoppage clearance, a forward-half stoppage, a kick-in, a rebound 50 (the ball won back in the team's defensive 50), a midfield intercept or a forward 50 turnover. A chain that gained 20 m or more is fast when its pace towards goal was in the top third of such chains (5 m/s or more, to its furthest point before any shot) and slow in the bottom third (3 m/s or less).
- Movement: where and how it moved the ball, once it had two disposals. Through the corridor (most of its possessions within 20 m of the centre line), down a wing, or with a switch kicked across the ground; and by running (a bounce or a carry of 20 m or more), a handball chain, or kick and mark.
- Entry: how it first went inside 50. A kick, long when launched 60 m or more from goal, to the square, the top of the square, the pocket, or shallow (landing beyond 35 m), "for a mark" when it was marked; or a run inside 50 with no kick.
Put together they read like a coach's description: "Fast rebound 50 · corridor running · kick to the pocket for a mark". The 314,200 chains since 2021 fall into 4,411 such types, and each carries how many chains share it and how often they scored. Most chains are short: a rebound 50 that goes no further is the single most common type, and none of the 20,935 scored. A forward 50 turnover scores 48% of the time, a forward-half stoppage 24%.
Types are rules, so two chains with the same type can still look different. To find chains that look alike, each chain is also turned into a shape: the path of the team's own possessions, resampled to eight evenly spaced points and mirrored so every chain starts on the same side of the ground, together with its source, how long it took, its mix of kicks, handballs and running, and where it entered 50. The similar chains to any chain are its nearest neighbours by that shape.
Reading the chain viewer
Above the chain, the match summary gives each team's totals for the whole match: its score; its xScore, what its shots were worth; and its xThreat, the attack values its attacks started with (what it was expected to score from where it won the ball). Under xScore and xThreat is how far the score came in above or below each. In the Grand Final Brisbane kicked 96 from shots worth 90.2 (+5.8) and attacks that started at 78.7 (+17.3); Fremantle kicked 89 from 95.0 (−6.0) and 91.3 (−2.3).
The chain card gives each chain's source and the metres it moved the ball towards goal and how fast. Its xThreat row then reads, side by side for the chain's team: start, its attack value at the chain's first event; end, the xScore of its shots if it took any, otherwise its attack value when it last had the ball, with its change from start; and result, how the chain ended (a goal, a turnover, out of bounds), with the points when it scored. The change from start to end is what the chain's play was worth in expected points; a score set against the end value is the kicking. Each event in the list carries its change, amber when net value went up and rose when it went down. The Threat layer colours the ball's path the same way.
Below the replay, the timeline draws every chain in the match, home above the line and away below. Pinching it zooms in on a stretch of play, and the playhead drags to move through the match. Dragging the panel taller shows the match chart on the same time scale: each team's running score, xScore and xThreat, or the margin between the teams, so you can see where a side's attacks kept building threat that its scoreboard did not show.
The card's first row is the chain's type, with how many chains since 2021 share it and how often they scored. Under the card, similar chains lists the five nearest in shape from the published matches, each with its end xThreat and change. Choosing one opens it, in its own match if need be.
Fremantle's first goal of the 2026 Grand Final (first quarter, 4:03, from the centre bounce after Brisbane's opener):
| Event | Attack | Defence | Net | Change |
|---|---|---|---|---|
| Centre bounce | 1.01 | 0.42 | 0.59 | +0.14 |
| Gather from the hitout | 1.10 | 0.37 | 0.73 | −0.14 |
| Kick forward from the centre | 0.97 | 0.38 | 0.59 | +0.34 |
| Lands 49 m from goal, wide on the left | 1.25 | 0.33 | 0.93 | +1.27 |
| Uncontested mark | 2.30 | 0.10 | 2.20 | −0.30 |
| Set shot, recorded 54 m from goal | 2.04 | 0.14 | 1.90 | −0.18 |
| Goal | +0.23 |
The card's xThreat reads start 1.01, end 1.95 (+0.94), result Goal. The biggest change in the event list is the mark: the landing row carries +1.27 because the kick was marked, which took Fremantle from a loose ball 49 m out to a set shot. The mark's −0.30 is the shot being recorded 5 m further back and wider than the mark. The shot itself is worth 1.95, and its row's change is that 1.95 banked against the 1.90 the position was worth before it; the goal's 6 is 4.05 more: the kick going through, which xScore leaves out. (After a shot the chain should be worth nothing; the model puts the goal row at −0.23, and its +0.23 cancels that.) The event changes are on net value, which also counts Brisbane's chance of hitting back, so they add to 1.36: from the net 0.59 the chain started at to the 1.95 it banked. The +0.94 from start to end is the same play on attack value alone.
Brisbane's goal in the last quarter (7:32) is a goal the model marks down, and it comes from a turnover. Twenty seconds earlier Brisbane had gone inside 50 and won a hard ball 33 m out, then kicked it away. Fremantle picked it up about 30 m from their own goal, fumbled it through an ineffective handball and a second loose-ball gather, and gave away a free kick. That free kick is a turnover, so it starts a new Brisbane chain and a new Brisbane attack.
| Team | Event | Attack | Defence | Net | Change |
|---|---|---|---|---|---|
| Fremantle | Loose ball get, 27 m from their own goal | 0.49 | 1.07 | −0.58 | 0.00 |
| Fremantle | Handball, ineffective | 0.48 | 1.06 | −0.58 | −0.32 |
| Fremantle | Loose ball get, 23 m from their own goal, then concedes the free | 0.33 | 1.23 | −0.90 | −3.26 |
| Brisbane | Free kick, 26 m from goal | 4.16 | 0.07 | 4.09 | −1.18 |
| Brisbane | Plays on, now 31 m out and wider | 3.14 | 0.22 | 2.91 | −0.01 |
| Brisbane | Shot | 2.98 | 0.08 | 2.90 | −0.23 |
| Brisbane | Goal | −0.06 |
Each team's values are from its own side.
- Fremantle's −3.26 is the free kick. With the ball loose near their own goal they were already at −0.90: what they might create was small, and what Brisbane might create if they lost it was large. Conceding a free kick 26 m out made it −4.16, Brisbane's attack value at the free, turned to Fremantle's side.
- At the free kick Brisbane were expected to score 4.16 from this attack. A set shot from 26 m, close to in front, goes through more often than not.
- Playing on moved the ball to a spot worth 2.91 net. That fall, −1.18, is the free kick row's number, because each number is what happened after its event.
- The shot was worth 2.61. Its change, −0.23, is that 2.61 against the 2.90 the spot was worth just before it. The goal row's −0.06 cancels the small value the model leaves on a goal row.
Expected against actual. Brisbane's attack was worth 4.16 at the free kick and 2.61 at the shot, so playing on cost 1.55 expected points. The goal scored 6, which is 3.39 more than the shot was worth: the kick going through, which xScore leaves out. Against the 4.16 they started with, Brisbane finished 1.84 ahead, made of −1.55 from the decision and +3.39 from the kick. The chain's net added, −1.48, is the same decision counted on net value (4.09, since Fremantle's 0.07 chance of hitting back had also gone). The chain card's xThreat reads start 4.16, end 2.61 (−1.55), result Goal.
Where possession is worth most
The attack model can be asked what one kind of possession is worth anywhere on the ground. Each map takes real possessions of that kind, moves each one to every 5 m square, and averages what the model says it is worth there.
Where a mark is worth most
A mark straight in front of goal 27 m out is worth 4.6 expected points to the attack; 37 m out, 3.7; 47 m out, 2.7; on the centre square, 1.6. The fan narrows fast: 18 m from the goal line but 33 m towards the boundary, a mark is worth 2.3, less than one 47 m out in front.
What the mark itself is worth
The same spot won as a ground ball is worth much less, because there is no set shot and the ball is still in a contest. The gap is widest about 28 m out, where a mark is worth 2.2 more; in the goal square a ground ball is a snap and the gap closes to 1.7.
Fast against slow
A mark at the end of 40 m or more gained, in under 10 seconds against over 40. Speed counts most around the centre, worth up to 0.38 more, while the defence is still getting back. By the time the ball is inside 50 the gap is down to about 0.1: the spot matters more than how the team got there.
Turnover against stoppage
The same mark, in an attack that began with a turnover or with a ball-up or throw-in. The map is nearly flat: within 0.08 anywhere. Once the team has marked the ball, how its attack began has almost stopped mattering.
Attack value in expected points, attacking to the right. Faded squares have fewer than 20 real possessions.
View data as a table
What it finds
Compared with attacks that began in the same place and way, and with at least three disposals:
- Forcing a stoppage in the forward half is worth having: a ball-up or throw-in inside 30 m of goal carries an attack value of 1.34 for the team whose half it is.
- Running holds up best: attacks with a carry of 18 m or more, or a bounce, create 0.54 more xScore, and still 0.26 more than attacks that gained the same ground.
- Speed works when it gains ground: quick ball movement alone creates less, mostly fast handballs in traffic that go nowhere; fast and direct creates more.
- Holding the ball up costs threat: slow attacks create 0.28 less than attacks that won the same ground faster.
By chain type, each chain's xThreat change (end minus start, as the chain card reads it) against chains from the same source that started in the same part of the ground:
- Running is the strongest movement: chains with a bounce or a carry of 20 m or more add 0.77 more xThreat. A switch adds 0.35, kick and mark 0.22 and the corridor 0.12; staying down a wing adds 0.45 less, and so does a handball chain.
- Pace helps a little at equal ground won: fast chains (5 m/s or more) add 0.13 more than chains of middling pace that gained as much ground, slow ones (3 m/s or less) 0.04 more.
- Where the kick inside 50 lands matters from the same spot: against kicks launched from the same distance and side of the corridor, a kick to the square or the top of the square is worth 0.21 more afterwards, a kick to the pocket 0.31 less and a shallow kick 0.20 less. Marked entries, 19% of them, are worth 1.77 after the kick against 0.51 for the rest.
These describe what goes with threatening attacks. Teams choose how to play under different pressure, so they are not proof that switching to a style would produce its number.
Evaluation
Seasons 2021–2024 train, 2025 validates and 2026 is held out to the end. On 2026, xScore's log loss is 0.910 against 0.992 for distance alone, and its predictions are within 0.15 points per shot of what happened in 17 of 20 bins, set shots and general play alike. Attack values track what attacks went on to create in every tenth of their range, from 0.07 to 2.7, though 2026 attacks created about 0.06 xScore more than the model expected throughout, as scoring per attack has risen since 2021–2024.
Demo
A 3D chain viewer replays the five most recent matches, the 2026 finals from the semi finals to the Grand Final, with each team's match totals (score, xScore and xThreat), every chain's type, threat and similar chains, and every event's change. Attack types league-wide and by team, a team's attacking style against the league, and a match recap of expected against actual threat follow.