7Dakar → Paris, on the whiteboard · episode 7 of 10
The chat minute by minute, without artificial intelligence
Over the 30 days of the trip, the audience wrote more than 2.3 million messages in the chat. Words, abbreviations, and above all the little pictures unique to Twitch.
Having an artificial intelligence read all that would have cost a lot, for little gain. Because the chat mostly says one useful thing: where something happened. And to find that out, counting is enough.
The chat, the clips and the moderators' notes show where something happened. Very short messages, often just emotes, arriving in a continuous stream, are poorly suited to a language model and very well suited to counting. The chat is captured live; the calculations are run afterwards, on each hourly pass.
This episode describes how the interest score is computed minute by minute: time series, a robust z-score over a local window, reaction lexicons, then the use of the moderators' timestamped notes.
Independent Veden project, not affiliated with Nico, Ascend or their partners.
Move forward with the arrow → or the Next button. “Discovery / Technical”, at the top, changes the level of the text; “Listen” reads it aloud.
7Counting
One value per minute
Step one, with nothing clever about it: we file each message under the minute it was sent, and count. Same for the clips, filed under the minute they show.
We get a curve, minute after minute, over the whole trip. When it suddenly climbs, something probably happened.
Each message is filed under its minute of sending (server timestamp), and we count: messages, reactions by family, clips and their views. A clip is filed under the minute it shows (replay start plus its offset), or failing that 30 seconds before its creation. This gives time series with one value per minute over the whole duration of the livestream.
The minute is a good granularity: fine enough to pin down a moment, wide enough that the counts are not all 0 or 1. On average, the chat received about 55 messages per minute.
7The trap
The peak that hides itself
To spot an exceptional minute, the first idea is to compare it with the average. But a huge fit of laughter pushes the average up, and the neighbouring minutes then look calmer than they are.
Another problem: the chat is far more active in the evening than at night. Compared with the whole day, every evening would look like a peak, and every night like a trough.
The reflex is the z-score: the distance from the mean divided by the standard deviation. But the mean and standard deviation are sensitive to extreme values, that is, to the very peaks we are looking for: a surge inflates both, and the peak masks itself.
Second bias: a continuous livestream does not have the same volume at 15:00 and at 04:00. A reference computed over the day makes the whole evening look like a peak.
7The median
The median, over the surrounding hour
The solution: compare each minute with the “middle” value of the hour around it, rather than with the day's average. A peak, however huge, barely shifts that middle value.
Each minute is thus judged against its own context: evening with evening, night with night.
Robust version: the median replaces the mean, the median absolute deviation (MAD) replaces the standard deviation, and both are computed over a window of ± 30 minutes. The factor 1.4826 makes the MAD comparable to a standard deviation on normally distributed data. If the chat is almost empty, the MAD is 0: we replace it with 1.
See the code: the local robust z-score
import statistics
def z_robuste(valeurs: list[float], i: int, demi_fenetre: int = 30) -> float:
fenetre = valeurs[max(0, i - demi_fenetre): i + demi_fenetre] # one hour around the minute
med = statistics.median(fenetre)
mad = statistics.median(abs(v - med) for v in fenetre) or 1.0
return (valeurs[i] - med) / (1.4826 * mad)
7Reactions
Laughter, excitement, shock, sadness
Counting messages measures volume, not emotion. To tell a fit of laughter from a moment of shock, we use simple word lists: “mdr”, “ptdr”, or Twitch's little laughing images on one side; “wtf” or the stunned images on the other.
It is rudimentary, and that is deliberate: the chat is a language of its own, which a hand-kept list covers better than a generic tool.
Four hand-kept lexicons: laughter (mdr, ptdr, KEKW, OMEGALUL, xd…), excitement (Pog, PogChamp, gg, letsgo…), shock (wtf, monkaS, omg, dinguerie…) and sadness (Sadge, BibleThump, rip…). A message counts towards a family if it contains at least one of its words or emotes.
A list covers a language made of platform emotes, abbreviations and repetitions better than a generic classifier; it can be read and corrected in a minute.
7The score
One score per minute
We combine everything into one score per minute. Clips count the most: creating a clip is a real choice, typing “mdr” much less so. Only increases count: a silent chat is not a moment.
We then keep the most remarkable minutes, spacing them at least five minutes apart so as not to pick the same fit of laughter ten times. This list helps us check and explore the trip: the travel log itself is written from what was said, the clip titles and the moderators' notes.
A minute's score: robust z of clips (weight 1), plus robust z of message volume (0.5), plus robust z of reactions (0.5), keeping only positive deviations. Minutes with no chat count only through their clips.
The best minutes are kept in decreasing order of score, skipping those within 5 minutes of a moment already kept. To be honest: this ranking serves human inspection, not the pipeline. Only the clip titles per minute and the moderators' notes go into the request sent to the model; the slices to be narrated are all the transcribed slices, not just the peaks.
7The moderators
The moderators' notes: a hint, not the truth
During the livestream, the moderators jot down by hand what is happening, with a special command in the chat, for example (made-up example): “!t 45 arrival at the harbour”, meaning it happened 45 seconds earlier.
These notes help the artificial intelligence pin down an event. But what is narrated always comes from what was said in the stream.
Moderators type !t followed by an optional offset (in seconds by default, or in minutes) and a description. The program keeps only the notes from moderators and the channel, and recomputes the real time of the moment; an offset of more than three hours is ignored, and the note stays at the time it was sent.
The notes go into the slice's request, in a separate section: a hint that flags and locates an event, with the transcript providing the content and the quotes. A setting lets us remove them: they then become an independent human reference for evaluating what the model finds on its own.
7In summary
What to remember
- The chat mostly shows where something happened, and for that, counting is enough.
- Each minute is compared with the hour around it, not with the whole day.
- Word lists tell laughter, excitement, shock and sadness apart.
- The moderators' notes help, without replacing what was said.
- Per-minute series rather than a language model over millions of messages, for human inspection.
- Robust z-score (median, MAD × 1.4826) over a local window of ± 30 minutes.
- A weighted score: clips 1, messages 0.5, reactions 0.5, positive deviations only.
- Human notes used as a hint, or removed to serve as a reference.
Thousands of messages, reviews or tickets to monitor?
Before an AI model, well-chosen statistics often tell you where to look. Write to me: we will look together at what is feasible.
Let's talk about your project