XzStark
Model-referenced AR glasses design visualization with a front camera and continuous bridgeModel-referenced AR glasses design visualization with a front camera and continuous bridge
Independent builder

I build AI
you can wear.

AR glasses and JARVIS, with EEG interaction and spatial computing.

Glasses design visualization.

What I've built.

JARVIS. A second brain that can act.

Wearable perception, long-term memory and agents that help with daily life and technical work.

The actual display in focus, with the surroundings out of focus.

Memory, awareness and action.

I built the hardware integration, Android app, Snapdragon VLM runtime and JARVIS agents. Vision, audio and messages feed memory for object search, proactive reminders and tool-based work.

Snapdragon 8 Gen 3

669ms
Fastest single-frame result
~1.052s
Average single-frame inference

NVIDIA RTX 5060

343ms
Fastest single-frame result
~650ms
Average single-frame inference

Single-frame VLM inference.

Glasses mainboard engineering view

JARVIS, without a tap.

Workbench recognition opens JARVIS automatically.

A day in memory.

Observations, messages and plans, summarized together.

One shared context.
Specialized agents.

GlassesCamera & audio
Local perceptionQNN / HTP
Shared memoryRetrieve & summarize
Tool executionTasks & engineering
Glasses cameraPhone VLMTemporal evidence

QNN/HTP accelerates the on-device VLM. Aligned frames connect visual descriptions, token identities and observations over time.

Technical implementation

Camera and audio transport connect the glasses to Android. A custom inference runtime runs the VLM through QNN/HTP. Time-aligned vision, real-time speech, location and message summaries share a memory layer with specialized agents.

Reused visual tokens support SLAM and annotated-object matching. Matched objects link to stored positions for navigation.

Tasks JARVIS can handle

Compare products, track prices, manage reminders and calendars, and generate reports. Use tools for 3D modeling, PCB design, coding, debugging and engineering analysis.

Message and email notifications join earlier conversation context to support follow-up and reply suggestions. Inbox search, browser and desktop tools extend the same memory into work.

HarmonicFoldNet-SSVEP

A compact convolution–Transformer EEG decoder, developed toward brain-controlled interaction with glasses.

306participants across five public datasets
435kfolded executable parameters
2.85msmedian single-thread CPU inference at 1.2 s
49,000folding checks, zero label changes

Accuracy across
observation windows.

Subject-disjoint evaluation, three training seeds. Switch datasets and observation windows.

1.2 s68.70%HarmonicFoldNet balanced accuracy+6.75 ppversus protocol-adapted SSVEPformer
BETA: participant-mean balanced accuracy by observation windowHarmonicFoldNet compared with a protocol-adapted SSVEPformer. Observation windows from 0.4 to 1.5 seconds. Source values are available in the data table.0204060801000.40.60.81.01.21.5Observation window (seconds)
HarmonicFoldNetSSVEPformer
70 participants

Local branches merge.
Attention stays.

EEG
ConvIdentityNormΣ
Merged local operator
Reduced tokensHarmonic attention
Shared
scorer
435,043deployment parameters
49,000 / 0folding checks / label changes
28.9×fewer parameters than MTSNetBETA · 1.2 s · 68.70% vs 68.58% balanced accuracy
+5.29–11.84 ppexternal validation vs SSVEPformerDong2023 · 1.0–1.5 s · 59 participants
Model comparison
BETA · 1.2 s · 70 participants · five folds · three seeds
ModelBalanced accuracy (%)ParametersMACs (M)CPU median / p95 (ms)
SSVEPformer61.951,247,2406.400.851 / 1.214
DG-Conformer56.53142,38854.353.798 / 4.265
EEG Conformer24.77288,8007.621.734 / 2.308
MTSNet68.5812,569,600189.047.546 / 8.259
HarmonicFoldNet68.70435,04322.752.846 / 3.841
FB-SSVEPformer67.303,741,72419.202.681 / 3.382

Matched-protocol implementations. CPU: Ryzen 9 8945HX, float32, batch one, one thread. MACs count convolution and dense matrix products. Timing weights are not the accuracy-producing checkpoints for every row.

At this operating point, HarmonicFoldNet uses 8.3× fewer MACs and 2.65× lower median CPU time than MTSNet. Accuracy differences from MTSNet were not detected after Holm correction. SSVEPformer is faster; stronger short-window references remain ahead at 0.4 s.

On external Dong2023, differences from MTSNet are -1.35, +0.67 and +1.88 points at 0.4, 0.8 and 1.2 s; none is significant after Holm correction. HarmonicFoldNet uses 20.0–28.9× fewer parameters and 1.9–2.7× lower mean CPU latency.

Component validation and personal adaptation
Token compression

Stride 2: 157 → 79 tokens, within 0.20 accuracy points of no compression at 0.4/0.8/1.2 s, with 11.4–12.6% fewer MACs. Stride 4 gains 0.73 points at 0.4 s but loses 1.28 at 1.2 s versus stride 2.

Temporal and spectral evidence

The temporal candidate path adds 1.30–2.64 points across tested windows. The spectral path has an independently detected contribution at 1.5 s.

Harmonic attention

Harmonic-neighbourhood attention mass: 72.78–73.79%, versus 9.87–10.22% with the bias masked. Independently trained bias ablations detect accuracy benefits at 1.0 and 1.5 s.

113-parameter adaptation

With two calibration blocks, BETA accuracy rises from 55.52% to 66.24% at 0.8 s, and 68.73% to 78.28% at 1.2 s. Retrospective block evaluation; source decoder frozen. Calibrated controls include TRCA, ensemble TRCA and TDCA.

Electrode transfer

Wearable, 1.2 s: dry 55.05%, wet 72.64%; dry-to-wet 64.25%, wet-to-dry 42.29%, showing asymmetric transfer.

Prediction-preserving folding

49,000 held-out comparisons, zero label changes. Parameters: 435,139 → 435,043. Repeated runtime gains depend on backend and window.

Architecture and harmonic attention

Foldable local convolution → temporal and complex-spectral candidate evidence → token reduction → harmonic-biased attention → Transformer candidate modeling → shared scoring.

HarmonicFoldNet architecture.
Harmonic attention: allocation and independently trained bias ablation.
Datasets, protocol and full results

Five public datasets, 306 unique participants. Benchmark and BETA informed development; Dong2023 was reserved for external validation, with training confined to each subject-disjoint fold. The same trained checkpoint covers multiple windows.

Benchmark35 participants
BETA70 participants
Wearable102 participants / dry & wet
Kim2025BetaRange40 participants
Dong202359 participants / external validation

CPU: Ryzen 9 8945HX, float32, batch one, one thread; 100 warm-up and 1,000 timed passes per session. EEG integration with glasses is the next validation step.

BETA participant-mean balanced accuracy
WindowHarmonicFoldNetSSVEPformer
0.4 s27.37%30.26%
0.6 s43.47%43.46%
0.8 s55.60%52.79%
1.0 s63.56%58.52%
1.2 s68.70%61.95%
1.5 s73.12%65.09%
Download research data

AI with a sense of space.

Visual-token reuse connects SLAM, recognized objects and remembered locations for object search and navigation.

From recognition
to spatial memory.

The scenic navigation prototype combines recorded maps, visual relocalization, route instructions and glasses display. The recorded route below contains 1,281 keyframes.

646 / 1,281
Route from Mingzhi Square to Ningxia Luoying Pavilion
Mingzhi SquareNingxia Luoying Pavilion

A route, reconstructed in 3D.

Saved point cloud and camera trajectory.

Gaussian splatting
and spatial AI.

Gaussian-splatting reconstruction is validated at prototype level. Next: spatial anchors, occlusion and scene-linked JARVIS memory.

What I'm building next.

Glasses-compatible EEG

Move from scalp decoding to ear and temple electrodes. Test repeat wearing, motion, drift, personal calibration and deliberate command recognition.

Temporal perception models

Connect successive observations, object changes and user actions for coherent memory, earlier intent recognition and timely assistance.

World models for wearable AI

Train world models from visual features, spatial state, memory and actions. Test object continuity during occlusion and action-conditioned predictions.

Spatially grounded assistance

Connect Gaussian-splatting scenes, persistent anchors and incremental maps so objects and memories stay linked as surroundings change.

Models built, adapted and deployed.

HarmonicFoldNet-SSVEP

Architecture & training

Compact EEG decoder: architecture, training, multi-dataset evaluation, ablations and a 113-parameter personal adapter.

TinyVLM / LoRA

Alignment & fine-tuning

Visual–language connector training and LoRA fine-tuning, with saved checkpoints and ten completed second-stage epochs.

Visual encoder student

Distillation pipeline

Teacher-guided visual distillation, projector alignment and generation tests.

On-device VLM & token reuse

Runtime integration

Snapdragon QNN/HTP runtime. Reused visual features connect place recognition, annotated objects and SLAM navigation.

Public work, open to inspection.

The glasses, AIVISION app and JARVIS are maintained in private repositories. Older public projects are not actively maintained.

Earlier builds.

Experiments in wearable displays, circuits and controls, leading to the current optical-waveguide glasses.

2022 · ESP32, OLED and prism display.

Camera-fed helmet display

A fully enclosed Iron Man-inspired helmet. A camera feeds an internal display, whose image reaches the eyes through a prism.

Camera → internal display → prism → eyes.
2022

Reflection display

ESP32, OLED and a prism formed the first wearable display. A later version used a camera viewfinder.

Raspberry Pi prototype

An early build connecting a Raspberry Pi, camera, display and external power.

An early Raspberry Pi-based glasses prototype.

Repulsor gauntlet

An Iron Man-inspired hand-mounted prototype, combining a wearable shell and control electronics.

Gesture lighting

ESP32 and MPU6050 connected motion sensing with light control.

Motorized belt mechanism

A custom enclosure, clamp and torque motor tested controlled belt contraction.

Touch-control watch key

Modified a vehicle-key circuit, added touch buttons and integrated it into a watch.

A day with JARVIS.

A historical, automatically generated recap.

Automatically generated recap, translated into English. Personal names and locations anonymized.

Loading the recap…