Code: github.com/PhilippMarquardt/nightwatch
Night Watch: Camera, Thermal and LiDAR Perception After Dark
Security robots do most of their work at night in places they weren't trained on. Standard vision pipelines run into two problems immediately: RGB cameras go nearly blind in the dark, and standard dataset splits put frames from the same camera locations into both train and test.
Night Watch is a compact two-head perception stack built around those constraints:
- Slow head: Qwen3.5-9B with LoRA, taking all available sensors and outputting structured per-person reports (bounding box, posture, and metric distance).
- Fast head: a 12M-parameter CenterNet (ResNet18-FPN, no NMS) running every frame in 0.7 ms (TensorRT FP16), trained from human labels on known sites plus pseudo-labels from the 9B model on unlabelled field data. Uncertain frames escalate to the slow head.
An unseen forest at night. Left: RGB camera (almost pitch black). Middle: thermal overlaid with range-colored LiDAR and white ground-truth boxes. Right: system output. This is the strongest window for the fast head; its overall forest F1 is 0.31.
Datasets and held-out splits
Because the official LLVIP and TriSAR splits leak near-duplicate frames from the same cameras into train and test, I re-split everything strictly by site, sequence, or time:
| LLVIP | TriSAR-3D | LTDv2 | |
|---|---|---|---|
| Sensors | Camera + thermal | Camera + thermal + 128-beam LiDAR | Thermal only |
| Scene | Nighttime street surveillance | Robot rig: indoor lab & outdoor forest | Fixed harbor camera in Denmark |
| Resolution | 1280×1024 | 640×512 (all sensors projected into thermal frame) | 384×288 (people ~16–19 px tall) |
| Labels | 2D person boxes | 3D person boxes with posture and range | 2D person boxes |
| Split | By site: train 01–07, unlabelled 08–18, test 19–24 & 26 | By sequence: train in lab, test full night forest + 2 held-out lab sequences | By time: adapt on May 2020, test on March–April 2021 |
| Size | 3,438 labelled, 8,164 unlabelled, 3,463 test | 9,832 frames; test 2,751 (2,119 forest) | 2,000 unlabelled adapt frames; 15,925 test frames (142 clips) |

On LLVIP, I hide the labels for sites 08–18 and treat them as unlabelled deployment data that the 9B model labels for the 12M student. On TriSAR-3D, everything is rendered into the thermal camera's frame: RGB is warped via homography (the cameras sit 10 cm apart, keeping parallax under one visual token), LiDAR is z-buffered into range, intensity, and hit channels, and 3D boxes become 2D boxes retaining posture and metric range.
One caveat on splits: while no test site, sequence, or month ever entered training, I evaluated on the TriSAR night forest repeatedly while iterating, so in practice the forest became a development set. The genuinely untouched test set is the LTDv2 harbor, scored once per finished model.
Architecture and evaluation discipline

To feed thermal and LiDAR into Qwen3.5-9B, I compared two fusion approaches:
- Zero-initialized side branch: a frozen DINOv3 encoder per extra sensor whose features are projected and added onto the VLM's visual tokens. At step 0 the model behaves identically to the pretrained VLM and uses the same visual token count as RGB alone. (An earlier version used a zero-initialized
tanhgate, which starved the projection of gradient until logged contribution ratios caught it.) - Extra sensors as images: level-matched thermal frames and turbo-colormapped
1/rangeLiDAR projections passed directly through the VLM's native image encoder (more tokens, zero custom modules).
Because frames from the same camera are heavily correlated, I computed confidence intervals by resampling whole sites, sequences, or clips rather than individual frames. Every comparison ran on identical frame sets (enforced in code so mismatched subsets couldn't slip through) across three seeds whenever variance mattered. One early student seed hit 0.866 and looked like it matched human labels while another gave 0.830. I also kept a per-slice regression gate checking every site, the darkest 25% of frames, crowded scenes, camera-dead, and thermal-dead ablations, plus a quick sanity check that caught a bug where pseudo-labels only covered 1,500 frames and the student silently fell back to ground truth on the rest.
Camera + thermal fusion on LLVIP
Evaluated on 1,500 frames across the 7 held-out LLVIP test sites:
| Qwen3.5-9B variant | F1 | 95% site CI | Camera dead | Thermal dead |
|---|---|---|---|---|
| Zero-shot, camera only | 0.839 | 0.80–0.88 | 0.00 | n/a |
| Zero-shot, camera + thermal (2 images) | 0.696 | 0.64–0.78 | 0.20 | 0.83 |
| Fine-tuned, camera only | 0.882 | 0.83–0.92 | 0.00 | n/a |
| Fine-tuned, thermal only | 0.923 | 0.89–0.95 | n/a | 0.00 |
| Fine-tuned, DINOv3 side-branch fusion | 0.894 | 0.87–0.93 | 0.80 | 0.88 |
| Fine-tuned, 2 images (token-matched to side branch) | 0.928 | 0.90–0.94 | 0.91 | 0.88 |
| Fine-tuned, 2 images | 0.937 | 0.92–0.95 | 0.93 | 0.89 |
Zero-shot, passing camera and thermal as two images scored worst of all (0.696) because the VLM double-counted the same people across both images, which is why I built the custom side-branch fusion in the first place. After LoRA fine-tuning, though, the plain two-image baseline completely stopped double-counting and beat my side branch on all 7 test sites by +0.043 F1 (and still won on all 7 sites at a matched token budget, 0.928 vs 0.894), while degrading much more gracefully when either sensor went black. My regression gate rejected the side-branch model against every stronger baseline.

Looking closer at per-site behavior showed two useful properties: the gain over RGB-only tracks scene darkness (+0.13 F1 on the darkest site vs around −0.035 on the two brightest), and the model really is using thermal spatially. Feeding it a mismatched thermal frame from a different timestamp drops F1 to 0.53, much worse than simply zeroing out thermal (0.88). A misaligned sensor is more dangerous than a dead one.

Adding LiDAR on TriSAR-3D (three attempts)
TriSAR-3D is much harder: trained only in an indoor lab, then tested in a dark outdoor forest plus two held-out lab sequences.
| Qwen3.5-9B variant | Seeds | All | Unseen forest | Held-out lab | Lab, camera dead |
|---|---|---|---|---|---|
| Zero-shot, camera (600-frame subset) | 1 | 0.07 | 0.00 | 0.26 | – |
| Fine-tuned, camera only | 1 | 0.25 | 0.00 | 0.78 | 0.00 |
| Fine-tuned, side-branch fusion (thermal + LiDAR) | 2 | 0.26 | 0.00 | 0.81 | 0.00 |
| Fine-tuned, thermal as image | 1 | 0.41 | 0.33 | 0.82 | n/a |
| Fine-tuned, camera + thermal as images | 3 | 0.48 | 0.40 | 0.85 | 0.77 |
| Fine-tuned, camera + thermal + LiDAR as images | 3 | 0.52 | 0.44 | 0.84 | 0.79 |

As on LLVIP, the side branch was ignored. Turning off thermal or LiDAR changed lab F1 by under 0.03, and with RGB blanked out the model emitted the same memorized box every frame. (An early side-branch run actually hallucinated 3,373 false people in the black forest; I initially blamed the fusion modules until catching that 20% RGB-dropout augmentation had trained the model to keep predicting lab targets on all-black frames. Removing dropout dropped false detections to zero.) Passing thermal as an image immediately let the VLM detect people in the dark forest (0.00 → 0.40 F1).
Attempt 1: LiDAR as a third image
At first glance, adding a range image bumped F1 by +0.03 to +0.05 on every seed (0.48 → 0.52), and passed my camera-dead bar (lab F1 0.77–0.82 vs ≥ 0.50 target). Precision still fell short (0.52–0.60 vs ≥ 0.70 target), and weirdly, the +0.03–0.05 lead survived even when the LiDAR image was blacked out (turning LiDAR off changed lab F1 by ≤ 0.004).
Digging into the test frames exposed a preprocessing bug: 259 forest test frames had a dead thermal channel, and my per-frame thermal normalization stretched pure sensor noise into bright speckle the models had never seen. The actual people in those frames were ~57 m away with zero LiDAR returns, so every model scored near zero there; the apparent gain came only from the three-image model hallucinating fewer tiny boxes on speckled frames. On the 2,492 valid frames, two-image and three-image tied (0.546 vs 0.540).
Attempt 2: Utonia point-cloud tokens
Since 2D range images weren't helping, I ran the raw point cloud through a frozen Utonia point-cloud transformer and trained a small projector to slot its features into the LiDAR visual tokens. A linear probe confirmed the features carried strong signal: AP 0.77 for "person in cell" on lab validation (0.43 in forest) compared to 0.27 (0.10 in forest) for the range image.

Yet the VLM still ignored them. Dropping LiDAR cost only 0.007–0.012 lab F1 across two seeds and didn't improve range estimation. To force the model to use LiDAR, I added 15% training samples with both RGB and thermal blacked out and rescaled the LiDAR tokens to match visual token norms (after verifying 7/7 spatial grid alignment against Qwen3.5's visual tokens). With LiDAR alone, it still just predicted ~2 boxes in the center of the frame. Ironically, that run became my best overall detector (+0.04–0.05 F1 over three-image, +0.05–0.07 in forest), except the gain stayed when LiDAR was turned off, meaning it came purely from training with missing-camera regularization.
Attempt 3: Pre-align the projector, then train LiDAR-only first
Checking training logs explained why attempt 2 failed: the projector's gradient collapsed by 50–100x within the first 100–200 steps because RGB and thermal already solved the lab scenes, and 15% LiDAR-only samples amounted to only ~36 optimizer steps.
So I split training into three stages and appended each cell's measured metric range explicitly to its token:
- Pre-align the projector (17 minutes, LLM frozen): train projected LiDAR tokens to match Qwen3.5's thermal visual tokens at each occupied cell, plus a small linear head predicting person presence and range.
- Fine-tune on LiDAR alone for two epochs.
- Jointly train on all three sensors, starting a fresh LoRA adapter on top of the pre-aligned projector (carrying over the LiDAR-only adapter hurt lab F1 down to 0.64).
After stage 2, the VLM could finally detect people from point clouds alone (0.48 F1 on lab validation, 0.49 on lab test, up from 0.00). Running two controls on lab validation (one seed each) turned up a humbling result:
| LiDAR-only input (lab val) | F1 | Recall at 20–40 m |
|---|---|---|
| Pre-aligned Utonia tokens | 0.48 | 0.31 |
| Plain range image via VLM image encoder | 0.43 | 0.15 |
| Utonia tokens without pre-alignment | 0.14 | 0.10 |
Even the plain range image I had written off reached 0.43 F1 once it was trained without RGB and thermal taking over. The VLM just needed a reason to read it, with the native point-cloud encoder mainly paying off at 20–40 m range.
Evaluating the full three-sensor model on the TriSAR test set (2,751 frames, single seed, so treat as provisional):
| Model | Held-out lab F1 | Unseen forest F1 | Forest precision | Forest distance error |
|---|---|---|---|---|
| Attempt 2 (ignores LiDAR) | 0.86 | 0.51 | 0.54 | 10.2 m |
| Attempt 3, all sensors | 0.86 | 0.21 | 0.17 | 1.8 m |
| Attempt 3, LiDAR off | 0.85 | 0.48 | 0.68 | 4.5 m |
| Attempt 3, LiDAR only (600 frames) | 0.49 | 0.05 | 0.04 | – |
This cleanly separated two problems. On detected people in the forest, LiDAR slashed distance error from 4.5 m down to 1.8 m, and in the lab it maintained 0.49 F1 with both cameras dead. But on outdoor detection, precision collapsed from 0.68 to 0.17 because the model started reading trees and brush as people, since it had only ever seen indoor lab point clouds. Dropping LiDAR-only samples from stage 3 didn't cure it (forest F1 0.27, precision 0.23 vs 0.46 with LiDAR off). On the full structured report (box + posture + distance), two-image camera + thermal still slightly edged out three-image (0.31 vs 0.29), so the model I'd actually deploy today is still the one without LiDAR.
Fast head and routing on TriSAR
Unlike the VLM, the 12M fast head on TriSAR naturally relied on LiDAR (turning LiDAR off dropped F1 from 0.37 to 0.22, while dropping RGB did nothing). Adding per-frame thermal level matching in training and inference got it using thermal too, lifting 3-seed forest F1 from 0.30 to 0.37. Combining both heads (VLM detections plus non-overlapping fast-head detections) added +0.054 to +0.066 F1 over the fast head alone, provided the VLM abstained cleanly in dark empty frames.

Distilling the 9B VLM into the 12M detector
Familiar domain (LLVIP)
On LLVIP, the 9B VLM pseudo-labelled the 8,164 unlabelled frames from sites 08–18, and I trained the 12M fast head on them alongside two controls: self-training (the fast head labels those same frames itself) and a compute-matched baseline trained for the same step count on only the 7 labelled sites. Evaluated on all 3,463 test frames across 3 seeds:
| 12M fast head training labels on sites 08–18 | F1, mean (range) | AP50 |
|---|---|---|
| None (7 labelled sites only) | 0.821 (0.805–0.833) | 0.872 |
| None, compute-matched steps | 0.844 (0.827–0.861) | – |
| Self-training (fast head's own labels) | 0.859 (0.855–0.862) | 0.893 |
| 9B VLM labels | 0.832 (0.827–0.836) | 0.907 |
| 9B VLM labels filtered by fast-head agreement | 0.853 (0.830–0.868) | 0.915 |
| Human labels on all 18 sites (upper bound) | 0.855 | 0.912 |
The self-training control flipped my expectations here: on familiar street pedestrians, the 12M model's own pseudo-labels closed the gap to human labels just as well as the 9B teacher (though the 9B labels did produce better confidence ranking, reaching 0.915 AP50). Escalating the 20% most uncertain frames to the 9B recovered 61% of the fast-to-slow gap (vs 28% for random escalation), whereas on TriSAR uncertainty routing was worse than random because the fast head was uncertain on the exact dark scenes where the side-branch VLM was blind.

Genuinely unseen site a year later (LTDv2 harbor)
To test distillation where the small detector is actually out of distribution, I took the LLVIP thermal fast head (0.86 F1 at home) and dropped it onto LTDv2, a low-resolution harbor camera in Denmark where people are only 16–19 pixels tall. Every arm got 3,000 fine-tuning steps on one unlabelled month (May 2020), using fixed LLVIP thresholds, and was tested on 142 clips from March–April 2021 (3 seeds per arm):
| Adaptation labels (May 2020) | F1 a year later | AP50 | F1 back on LLVIP |
|---|---|---|---|
| None (zero-shot) | 0.13 | 0.07 | 0.86 |
| None, extra steps on LLVIP | 0.14 | 0.07 | 0.86 |
| Self-training (fast head's own labels) | 0.14 | 0.09 | 0.86 |
| 9B + fast-head agreement filter | 0.23 | 0.22 | 0.86 |
| Raw thermal 9B labels | 0.46 (0.45–0.47) | 0.37 | 0.87 |
| Human labels (upper bound) | 0.57 | 0.52 | 0.86 |
Here the story reversed completely. Zero-shot, the 12M detector found only ~5% of people at the harbor (self-labels at F1 0.10), so self-training had almost nothing to bootstrap from and stalled at 0.14. The 9B VLM started much stronger (F1 0.44), so its raw labels lifted the 12M detector from 0.13 to 0.46, closing roughly three quarters of the gap to human labels without any drop back on LLVIP (0.87). (The pre-planned comparison was agreement-filtered 9B labels vs self-training, which gained +0.08 to +0.10 F1 across all 3 seeds with every 95% CI excluding zero; raw 9B labels were analyzed post hoc and did much better because a weak student vetoes too many true positives.)
Site memory for anomaly detection
Finally, I tested a lightweight JEPA-style site-memory model on 8 months of footage from the LTDv2 harbor camera. Given recent frames and a learned per-site memory, it predicts the next frame's frozen DINOv3 tokens; anomaly score is peak token prediction error, z-scored by hour of day and daylight. It detected inserted people at 0.70 AUROC (vs 0.52 for a pixel baseline) and crowds at 0.85 AUROC (vs 0.67 for a token baseline). I also tried hand-defined geometric event rules (like a "person at the water's edge" zone), which fired on almost every frame due to a bad region definition, so I dropped those numbers.