A Kernel headset holds dozens of optical modules against the scalp, and every source and detector on it has to land in a known place on almost any adult head. For Flow 50, I designed that geometry: I sized it from a national survey of head shapes, built the head surface and split it into eight plates carrying 52 modules. For Flow2, I designed the optical modules and helped on the headset. I also wrote the tools that pull every optode position out of the CAD, check each hardware release and place the modules on the standard EEG 10-10 map.
A headset is rigid where it matters: the optics need a fixed spacing and a fixed angle to the scalp. Heads are not, so the geometry has to start from how much they vary. The reference I used is the NIOSH head-and-face survey. For NIOSH, Anthrotech measured 3,997 U.S. workers who wear respirators, 21 dimensions each, and scanned 1,045 of them in 3D. NIOSH then built a set of digital headforms from those scans.
Head circumference alone spans about 77 mm between a small woman's head (5th percentile) and a large man's (95th). I laid the modules out on the medium NIOSH headform, with the small and large forms marking the range the same layout has to cover.
Percentiles from the survey's weighted tables (U.S. population, ages 18–66). Source: Zhuang & Bradtmiller, Anthrotech for NIOSH.
Flow 50's module has one source in the middle and six detectors around it, 10 mm out. I tiled the headform with 52 of them at a near-constant pitch: every module's nearest neighbour sits 30.7 to 33.1 mm away. An even pitch gives every module the same mix of short and long channels to its neighbours, so no region of the head is over- or under-sampled.
The tiling sits on one design surface built from the NIOSH headform (part 70-0213). I cut that surface into eight module plates, four on each side (70-0141 to 70-0148), each with a cosmetic cover plate. A plate holds its modules at fixed spacing and angles. Where one plate meets the next, the spacing opens up: between the front, crown, side and back plates, the closest modules are at least 36.5 mm apart.
Everything downstream of the hardware depends on one table: where each source and detector touches the head. Image reconstruction uses it, channel selection uses it, and so does every comparison between subjects. If someone typed that table by hand, it would drift from the hardware within a release. So I made the CAD produce it.
Each hardware version gets its own assembly. The plate sub-assemblies for that version go onto the head surface they were designed on.
A sketch point for each source and detector is constrained to that optode's optical axis, where the axis meets the scalp. When a plate moves, its points move with it.
A Python script drives SolidWorks through its API. It visits every module in the assembly and reads each point's position in the head's frame, so nothing is copied by hand.
Each optode is written in the headform's own frame and in the atlas frame the analysis software uses. The second frame is a fixed rigid transform away from the first.
The new file is overlaid on the previous one in an interactive 3D plot. Only the modules on the changed plates should move, and the plot shows that at a glance.
The checked file goes out with the hardware release as that version's location file. Every recording on that headset uses it.
Optode IDs encode the module and the optode, so the same parser reads Flow 50, every Flow2 version and the dev kits. The headform-to-atlas transform is a mirror in x, a 75° turn about the ear-to-ear axis, and an offset.
In time-domain fNIRS, a channel is a source–detector pair close enough for light to cross the tissue between them. Short pairs see the scalp; longer pairs reach the cortex but return fewer photons. A layout is only as good as the set of pairs it offers, so I wrote scripts that take the extracted coordinates, compute the distance for every pair on the head, and draw each pair inside a distance window as a line. The result looks like a spiderweb. I used the same scripts to compare candidate module layouts before Flow2's was fixed, including a version with a seventh detector in the middle of each module.
Counts are unique source–detector pairs per wavelength, from the released coordinates. Flow2 counts leave out the internal reference detector.
Researchers don't think in headset coordinates. They think in the EEG 10-10 system: 61 named sites such as Fz, C3 or Oz, drawn as a flat disc with the nose at the top. To say which module covers which site, the 3D positions have to land on that disc in the right place. A plain top view gets that wrong: it squeezes everything below the head's widest line toward the middle.
I treated it as a learning problem. The 61 standard sites are known both in 3D on the headform and on the flat layout. I fit a kernel ridge regression with a Gaussian (RBF) kernel from one to the other, then pushed the module centres through the same mapping. The fit reproduces the 61 training sites to within 1 mm. The same projection places Flow2's EEG electrodes on the map, which is how each version's EEG sites are named in its release notes: AF3, AF4, FCz and CPz on 2.0, with the frontal pair split into AFp1/AFp2 and AFF5/AFF6 on 2.3.
KRR: RBF kernel, γ = 10⁻⁴ mm⁻², α = 10⁻², one model per axis, trained on the 61 sites. The result is then flattened onto its principal plane.
Every point below has a known answer: the 61 standard sites have a 3D position on the headform and a place on the flat 10-10 layout, so each method can be scored against them. Hollow circles are where the sites belong. Dots are where a method puts them, and the lines show the error. The grid is a set of latitude and longitude lines drawn on the headform around the vertex, carried through the same method. Press Unfold, or drag the slider, to watch each method carry the head down onto the map; drag the scene to turn it at any point.
Even at its best scale, a plain top view is off by 8 mm on average and by 17 mm at the temples (T7, T8), where the scalp turns down and the view crowds the sites inward. Flattening about the vertex does better, but still misses by up to 6 mm at the front corners (F7, F8). The kernel ridge regression bends the grid only where the sites tell it to. The fair test is to leave each site out of training, fit the other 60 and predict the one left out. Scored that way, the error falls below 1 mm. The kernel width γ sets how far one site's influence reaches. Too small and the fit is too stiff to follow the layout; too large and each site only explains itself, so held-out sites fall apart. The width used in the workflow, γ = 10⁻⁴, sits at the bottom of the held-out error curve.
Error is the distance on the 10-10 layout (mm), after the same flattening onto the layout plane. Ridge α = 10⁻² throughout. Click the chart to set γ.