If you want a procedural generator to hit a target arousal curve, keep control of the sections that give the lap its character and the kinds of driving that should produce its peaks. In their 2024 paper Closing the Affective Loop via Experience-Driven Reinforcement Learning Designers, Matthew Barthet, Diogo Branco, Roberto Gallotta, Ahmed Khalifa and Georgios N. Yannakakis found that two generators matched predicted rises and falls in arousal better than random track construction in Solid Rally. That makes the curve useful for ranking variants within rules you set: the designer can decide where a signature corner belongs and what should make it tense, while the generator explores different ways to get there.
What the Arousal Score Measures
The researchers scored a track by sending a driving agent around it. The agent chased checkpoints for three laps, and every three seconds the arousal model compared the latest stretch of driving with the previous one. It looked for similar pairs of time windows in recorded human sessions, using speed, distance to opponents and other telemetry. The closest examples carried the most weight in predicting whether arousal was rising or falling. Here, arousal describes how activated players reported feeling; a rise does not say whether they enjoyed what happened.
Both guided generators beat random tile placement across the conditions the authors tested. The generators searched for tracks that reduced the area between the predicted and target curves, while the reported accuracy counted how often the two curves agreed on the direction of change. The authors tested rising, falling and rise–fall–rise targets against the full pool of player data and three separately modelled groups. Across those 12 conditions, the reinforcement learning generator scored higher than the genetic search in ten, with four differences meeting the authors’ criterion for significance: non-overlapping 95% confidence intervals.
Where the Layout Gets Its Character
The researchers shaped the possible layouts through the pieces they supplied and the rules for closing a circuit. Both guided methods selected ten pieces from a kit that included straights, corners and loops for the candidates compared at the end of each run. Those ten pieces did not include any extra tiles needed to close the circuit. The researchers used Dijkstra’s algorithm to find the shortest legal route back to the start and fill it with straights and simple turns, so the finished circuit could contain more than ten pieces. If the algorithm could not find a legal route, the researchers discarded the track. When it did find one, the driver experienced those connecting tiles as part of the lap.
The reinforcement learning generator also depended on what the researchers chose to count as a distinct layout. It saved partial tracks in an archive so it could return to them and try adding another piece. The archive grouped tracks by counts of straights, turns, loops and bridges, along with the length of the closing route, and kept the higher-scoring track when two shared a slot. So two partial tracks could put the same turns in a different order and offer different approaches to a corner, yet compete for one place in the archive.
The layouts the generators produced show why the source of a peak deserves a separate look. Tracks built to increase arousal used more event pieces such as loops and bridges, while tracks built to decrease arousal used more straights and turns. The authors suggested that event pieces could raise the chance of driving errors, which might contribute to predicted increases. They describe a reason to check those increases against the drive itself: “More specifically, the agent does not factor in opponent cars, so it is prone to collide with them in situations that most human players would likely avoid.” A peak near a corner could therefore reflect contact with another car rather than the braking decision the designer meant to put under pressure.
Applying This to Your Game
A designer can give the generator room to vary a lap by locking the few sections that need to drive a particular way. In a hypothetical rally track, the signature move might be braking over a crest into a tightening right-hander, then getting far enough down a straight to set up a pass. The designer could lock the crest, braking approach and corner exit, reserve enough straight for the pass, and anchor the target rise and release to those sections. Anchoring the beats this way means a longer opening sector can still be a useful variant without moving the intended peak away from the corner.
The circuit closer needs to respect those same decisions because a legal connection can still spoil the rhythm. In the crest example, the designer could restrict the circuit closer to the gap between the last sector and the start line so it leaves the passing straight intact. The level editor could highlight the tiles the circuit closer adds, and the designer could use the same tool to regenerate one unlocked sector at a time. If the predicted drop in arousal disappears after a revision, the designer can compare the two versions to see whether the regenerated sector, the closing route or both changed near the intended release.
A review view can help the designer choose between similarly scored tracks by showing what happened at each predicted peak. The team could line up the target and predicted curves with braking, contact and off-road events on the track map, then retain a few near-matches with genuinely different approaches. If one candidate peaks when the agent hits traffic and another peaks while it brakes cleanly over the crest, the second is a better candidate for a playtest of the intended beat, even if its curve fits slightly less well.

A playtest can show whether those controls preserve the intended beat without making every lap feel the same. The team could compare constrained and unconstrained candidates built for the same curve, then ask drivers to mark where pressure rose and eased and what they were doing at those points. Those reports can sit alongside replays showing whether drivers braked for the crest and had room to set up the pass. Tighter rules may yield fewer distinct routes or a worse predicted fit, so the useful comparison is whether players recognize the intended sequence while still finding different lines and passing opportunities across variants.
Sources
- Closing the Affective Loop via Experience-Driven Reinforcement Learning Designers
paper · Matthew Barthet, D. Branco, Roberto Gallotta et al., 2024; full text read via arXiv HTML on 2026-11-30 · Source accessed: