
How the Ninox Model Works
A plain-language explanation of our AI video detection system — no technical background required.
Why AI Video Detection Matters
Artificial intelligence can now create video of people saying things they never said, doing things they never did, or being in places they never were — and it takes only seconds to produce. These are called AI-generated videos, and they are becoming indistinguishable from the real thing.
The consequences reach far beyond social media. A fabricated video of a politician, a CEO, or a public figure can move financial markets, trigger political crises, destroy reputations, and undermine courtroom evidence. In an age where "seeing is believing," that old saying has become a liability.
Content warning: Examples of AI-generated video misuse may include fabricated depictions of real people in harmful, explicit, or politically sensitive contexts.
Detection tools are the countermeasure — the forensic equivalent of carbon-dating a document or fingerprinting a suspect. But a detection tool that cannot explain its reasoning is only half the solution. Courts, journalists, and platform moderators need more than a verdict. They need evidence they can examine.
The core challenge
Generating fake video is fast, cheap, and increasingly effortless. Detecting it — reliably, transparently, and at scale — is a hard problem that requires purpose-built AI systems, not general-purpose tools.
The Base Model: Ninox 1
85.12% accuracy · three core components
Ninox 1 is built from three components that work in sequence: a Latent Encoder, a Patch Encoder, and a Visual Transformer. Together they take a raw video and produce a verdict. Understanding each one also reveals why the model is well-suited to this task — it is deliberately designed to understand the same internal language that AI video generators use to create synthetic footage.
Why the design mirrors AI video generators
The most advanced AI video generators — the tools that produce synthetic footage — work by starting with pure digital noise and gradually refining it into a coherent video. They do this inside a compressed mathematical space called latent space, passing the noise through a chain of processing blocks called Diffusion Transformer blocks (DiTs) until the noise becomes a structured, detailed video.
Ninox 1 is built on the same principles — compressing video into dense representations, breaking it into spatial-temporal patches, and reasoning across those patches with a transformer. The exact internal spaces of any given generator are proprietary and unknown. But the shared architectural philosophy positions the detector to be sensitive to the structural patterns that synthesis tends to leave behind, patterns that are often invisible at the pixel level but legible at the level of structure and motion.
AI Video Generator
Random Noise
pure static
DiT Blocks
12–28 transformer layers
Denoised Latents
structured latent space
Decoder
latents → pixels
Video Frames
output
Ninox 1 Detector
Video Frames
input
Latent Encoder
frames → latent space
Patch Tubelets
spatial-temporal patches
Visual Transformer
12-layer attention
Verdict
AI-generated or Real
The detector mirrors the generator's architecture — both compress video into latent space and reason with transformer blocks.
Latent Encoder
A raw video file contains an enormous amount of data — millions of pixel values per second. Working with all of that directly would be like trying to analyse a book by examining every individual ink droplet on every page. The Latent Encoder compresses each frame into a much smaller, information-dense representation called a latent.
Think of a latent as the mathematical essence of a frame — not the pixels themselves, but a compact description of what the frame contains: shapes, textures, relationships, structure. This compression discards the redundant parts and retains the meaningful ones. This approach follows the same principle that underpins AI video generation: rather than working with raw pixels, operate on compact representations that emphasise structure over surface detail. Ninox 1 adopts this philosophy — not because it has access to the internal workings of any specific generator, but because this level of representation is where the structural traces of synthesis tend to be most legible.

Patch Encoder — and Tubelets
Once the video exists in latent space, the Patch Encoder divides each frame into a grid of small, equally-sized tiles called patches. The relationship between a patch and an image is the same as the relationship between a word and a sentence: just as a sentence is a sequence of words, an image is a grid of patches. This makes them easier for a transformer-based model to reason about — the same fundamental approach that powers large language models, applied to video.
But video adds a dimension that a static image does not have: time. To capture it, the Patch Encoder groups patches into units called tubelets. A tubelet takes the same patch — the same x/y position in the frame — from two consecutive frames and bundles them together. This means every unit the model analyses contains not just what a region looks like, but how it has changed from one moment to the next.
This is significant for detection. A generated video may have patches that look convincing in isolation. But the tubelet — pairing each patch with its twin from the next frame — gives the model access to how that region changed over time. Patterns that appear consistent frame-by-frame can reveal subtle irregularities when their temporal evolution is encoded directly. By capturing change alongside appearance, the Patch Encoder exposes a dimension of evidence that frame-by-frame analysis would miss entirely.

The tubelet concept follows the approach described in the ViViT (Video Vision Transformer) research paper, which established this as an effective way to encode both spatial and temporal information simultaneously.
Visual Transformer
After the Patch Encoder produces a sequence of tubelets, the Visual Transformer has one job: understand how they all relate to each other. It does this through a mechanism called attention — at each step, it asks "which other parts of this video are most relevant to understanding this part?"
A skilled human reviewer watching for a deepfake does something similar: they do not just stare at one spot. They notice that the way a person's hair moves does not match the wind visible in the background; that the shadow on a face points in a different direction from the shadow on a wall three metres away; that a mouth shapes a word that the rest of the face does not. The Visual Transformer does this systematically, across every tubelet in the video simultaneously.
This cross-video awareness is where AI-generated footage most often betrays itself. A generator constructs a video region-by-region, and the local results can each look plausible. But global consistency — the kind that emerges naturally from a real camera recording a real scene — is genuinely difficult to synthesise. The Visual Transformer is specifically designed to surface those global inconsistencies.

Together, the three components give Ninox 1 an accuracy of 85.12% — correctly classifying roughly 85 out of every 100 videos. The model's design follows architectural principles parallel to those used in AI video generation, positioning it to detect patterns consistent with synthetic construction rather than natural capture.
The Gap: What Ninox 1 Still Misses
Even at 85% accuracy, roughly 1 in 7 videos is misclassified. The core limitation comes down to the scope of what tubelets capture. A tubelet pairs the same patch across two consecutive frames — giving the model a window onto short-range change. What it does not directly capture is continuous motion across many frames: the arc of a hand gesture, the sustained trajectory of a moving object, the cumulative drift of a camera pan.
In real footage, movement is governed by physics — weight, momentum, inertia. Objects accelerate and decelerate in predictable ways; bodies carry the momentum of their last position into the next. In AI-generated footage, this continuous physical logic is often subtly wrong. The movement may look plausible frame-to-frame, but over a longer window it drifts in ways that no real object would. Ninox 1's two-frame tubelet window is not wide enough to consistently catch this kind of sustained irregularity.
Consistent spacing — momentum preserved
F3→F4 stalls (↔20), F4→F5 overcorrects (↔75)
This is the gap that the next version of the model is specifically designed to close.
The Improvement: Adding Optical Flow
Ninox 1.1-Flow — 93.53% accuracy
Optical flow is a technique for computing, at every point in a frame, exactly how much and in which direction each pixel has moved since the previous frame. The result is not another image — it is a dense map of motion vectors covering the entire scene, updated at every moment in the clip. Where a normal frame answers "what does this look like?", an optical flow map answers "how is everything moving, and at what speed?"
The maps are generated by a dedicated flow estimation algorithm applied to each consecutive frame pair as a preprocessing step — before the model processes anything. For each pair, the algorithm produces a dense field: two values per pixel, encoding horizontal and vertical displacement. The result is a separate motion input for every moment in the clip.
Video Frame
Optical Flow Map
Every pixel gets a motion vector — direction and magnitude, at every frame transition throughout the clip.
Imagine watching a river. A photograph tells you the water is there. But a current map — showing exactly how fast the water moves, in which direction, at every point — tells you something fundamentally different. Optical flow gives Ninox 1.1-Flow that current map for every moment of the video.
How optical flow differs from tubelets
As described above, tubelets capture one patch position across two consecutive frames — a local snapshot. That two-frame window is too narrow to track how motion evolves over time.
Optical flow captures a continuous field of motion across the entire clip. Rather than sampling change at discrete patch locations, it measures how every part of every frame flows into the next — the full trajectory of every moving object, the consistency of motion across regions that should be physically linked, the way acceleration builds or dissipates over many frames. It is sensitive not just to what moved, but to whether the movement is physically coherent over time.
Tubelet — Discrete & Local
Optical Flow — Continuous & Global
A tubelet captures one patch at two moments. Optical flow captures every pixel across every frame transition.
Why AI generators struggle to beat optical flow
AI video generators are optimised to produce frames that look realistic. Most of their training signal comes from visual appearance — does the output look like real video? That objective does not require the generator to model the physics of the world. There is no internal simulation of mass, momentum, or trajectory.
As a result, generated video tends to produce motion that is locally plausible — any given moment-to-moment transition looks reasonable — but globally inconsistent. A hand may move smoothly for two frames, then subtly skip; a camera pan may slow in a way that has no physical cause; background elements may drift at speeds that do not match the foreground. These are not errors that show up in a single frame or even a single tubelet. They are patterns in the continuous flow of motion that only become detectable when you measure trajectories across many frames at once.
Defeating optical flow detection would require generators to explicitly model physical motion dynamics — not just generate realistic-looking pixels, but ensure that every trajectory, every acceleration, every deceleration follows the laws of physics with global consistency across the entire clip. That is a substantially harder problem, and one that current generators have not fully solved.
Ninox 1.1-Flow adds a second parallel stream to the original architecture. The first stream is unchanged: raw frames through the Latent Encoder, Patch Encoder, and Visual Transformer, producing a classification score from appearance and structure. The second stream takes the pre-computed flow maps and runs them through an identical pipeline — its own Latent Encoder, Patch Encoder, and Visual Transformer — trained independently on motion evidence alone. A learned fusion layer then combines the two scores into a single verdict, having learned during training how to weight each stream depending on the type of evidence present.
Ninox 1
85.12% accuracy
- ✓ Frame appearance
- ✓ Spatial-temporal patches (tubelets)
- ✓ Cross-video attention
- — Continuous motion physics
Ninox 1.1-Flow
93.53% accuracy
- ✓ Frame appearance
- ✓ Spatial-temporal patches (tubelets)
- ✓ Cross-video attention
- ✓ Continuous motion physics (optical flow)
The addition of optical flow lifted accuracy from 85.12% to 93.53% — an improvement of more than 8 percentage points. In practical terms, the upgraded model correctly handles roughly 57 more cases out of every 100 that the base model would have misclassified.
Why Evidence Matters, Not Just a Verdict
Many AI detection tools operate as a black box: you put a video in, you get "real" or "fake" out, and you are expected to trust the answer. That is not good enough for any situation where the verdict carries real-world consequences.
The Ninox system can generate an attribution video alongside its verdict. An attribution video is a copy of the original footage with each region highlighted according to how strongly it influenced the model's decision. Regions that drove the prediction glow brightly; regions that had little bearing on the outcome remain dim.
Original video
Attribution overlay
Brighter regions drove the model's verdict most strongly — the attribution video makes the reasoning examinable.
How the attribution is generated: Integrated Gradients
The attribution video is produced using a method called Integrated Gradients (IG). Rather than approximating which parts of a video matter, IG computes it mathematically — with the same precision as the classification itself.
The process works like this: start from a neutral baseline — a completely blank or uninformative version of the video that the model has no opinion about. Then gradually introduce the actual video, one small step at a time, and at each step measure how much the model's confidence score shifts. The regions whose introduction causes the largest movements in the score receive the highest attribution. The regions that the model barely notices receive the lowest.
The "integrated" in the name refers to the fact that these measurements are accumulated across every step of the path from blank to real — not just a single snapshot. The result is a complete accounting of each region's total contribution.
IG accumulates how much confidence shifts at each interpolation step — regions whose introduction causes the largest rises receive the highest attribution.
IG is the preferred method here for three reasons:
- Mathematically complete. The attributions are guaranteed to sum exactly to the model's prediction score. Nothing is lost, estimated, or approximated — the evidence accounts for the full verdict.
- Sensitivity guaranteed. If a region genuinely influenced the decision, IG will assign it attribution. Features that matter cannot be silently ignored.
- No separate explanation model needed. IG operates directly on the classifier — it follows the exact path the model takes from input to output, rather than training a separate system to approximate it. The evidence reflects how the classifier actually reasoned, not a surrogate's guess about it.
Evidence unlocks four things that a bare verdict cannot:
To Control
A journalist, moderator, or judge can examine the attribution video and ask: "Is the model focusing on the right things?" If the model flagged a video as AI-generated because of an unrelated artefact — a watermark, a compression glitch, an unusual camera setting — that is immediately visible. Evidence gives humans a meaningful lever to oversee and override the system, rather than blindly accepting its output.
To Justify
A verdict backed by a visual evidence trail carries weight that a confidence percentage cannot. In legal proceedings, content moderation appeals, or editorial fact-checking workflows, pointing to specific, highlighted regions of the footage is the difference between an assertion and a substantiated finding. It also makes the finding challengeable — which is how legitimate evidentiary processes are supposed to work.
To Improve
When the model makes an error, the attribution video shows where it went wrong — which regions it over-weighted, which patterns it confused for evidence of synthesis or authenticity. This kind of structured error analysis is what drives meaningful model improvement. Without it, accuracy gains become guesswork.
To Discover
Examining attribution patterns across many videos can reveal things the model has learned that its builders did not explicitly teach it — regions or temporal patterns that consistently distinguish synthetic from real footage. Some of these discoveries are expected; others are genuinely surprising. Attribution evidence turns the model into a research instrument, not just a classification tool.
The principle
Trusting an AI verdict without examining the evidence is like accepting a medical diagnosis without seeing the scan. The scan does not make the doctor infallible — but it makes their reasoning examinable, contestable, and improvable. That is what turns a tool into a trustworthy instrument.
The Cost of Getting It Wrong
Even at 93.53% accuracy, roughly 1 in 15 videos will receive the wrong verdict. Understanding the type of error matters as much as the error rate itself. There are two distinct failure modes, and they carry very different consequences.
False Positive
Real video labelled AI-generated
- Authentic footage removed from platforms
- Individuals falsely accused of fabrication
- Genuine eyewitness evidence dismissed in legal proceedings
- Journalists' credible sources undermined
- Truth suppressed under the cover of a technical finding
False Negative
AI-generated video labelled real
- Synthetic footage circulates as authentic news
- Fabricated evidence presented in legal proceedings
- Fraudulent impersonation goes undetected
- Political or financial manipulation succeeds
- Public trust in genuine video erodes further
Neither failure mode is acceptable in high-stakes situations. This is why accuracy improvements — from 85% to 93% — are not incremental refinements. Each percentage point represents real decisions, real content, and real people.
It is also why the attribution evidence layer is not optional. When a misclassification occurs, the evidence trail is what allows it to be challenged, corrected, and learned from — rather than silently accepted.
Evidence as a path to recourse
A misclassification without evidence is a dead end. The system said something, you disagree, but there is nothing to examine, nothing to dispute, and no clear path to correction.
A misclassification with attribution evidence is the beginning of a process. The affected party — a content creator whose video was wrongly flagged, a journalist whose source was dismissed, a defendant whose evidence was challenged — can point to specific regions of the attribution video and ask: "Why is this being weighted so heavily?" A reviewer can examine whether the highlighted regions are genuinely suspicious or whether the model latched onto something irrelevant. An engineer can trace the error to a specific gap in training data or a weakness in the architecture and fix it.
This is what meaningful accountability looks like in practice. Not the elimination of error — no system achieves that — but the construction of a process where errors can be seen, contested, and corrected. Attribution evidence is not just a feature of the Ninox system. It is what makes the system suitable for use in situations where the stakes are real.
See It in Action
Upload a video and watch the model generate a verdict alongside an attribution visualisation — showing exactly which regions of the footage drove its decision.
Try the GenAI Video Classifier →