NoSeMaze — Non-invasive Sensor-rich Maze
Non-invasive Sensor-rich Maze

Watching individuals in unperturbed mouse societies learn, compete, and bond

The NoSeMaze is a semi-naturalistic, open-source platform that continuously tracks reinforcement learning, social rank, chasing, and full social-interaction networks in group-housed mice — 24/7, without human interference. Hardware, control software, and analysis code are fully open.

Illustration of individually tagged mice ascending a staircase — the NoSeMaze follows each individual as it learns, competes, and climbs the social hierarchy
exemplary study with NoSeMaze
>4,000
mouse-days of continuous monitoring
7,200 h
video analysed for social networks
9–12
mice per group, per unit
open-source
from hardware to analysis
What is the NoSeMaze

One habitat. Social and cognitive behaviours, in parallel.

The NoSeMaze is a complex, semi-naturalistic environment for the fully automated, long-term study of mouse societies. Groups of 9–12 mice live in it undisturbed for weeks while the system continuously records how they learn, compete, and interact. Because social and cognitive behaviours are captured in parallel, in the same individuals, the NoSeMaze can ask how these domains relate. The option of systematic group reshuffling then allows systematic testing of whether an individual's traits are stable across changing social contexts. It builds on and extends the open-source AutonoMouse platform (Erskine et al., 2019).

No human interference

Animals are undisturbed; behaviour is self-paced and ecologically valid.

Social + cognitive, in parallel

Learning, hierarchy, chasing, and interaction networks from one system.

Longitudinal & reshuffled

Weeks-long rounds with changing group composition separate stable traits from context.

Fully open source

Open hardware documentation, control software, and analysis code.

How it works

The layout itself creates the data.

Two connected spaces, joined by two tubes with RFID readers. Water is earned only at the olfactory learning module. Because mice must cross the tubes to reach food and water, the everyday act of living in the maze generates exactly the events we measure — no staged tests, no handling.

NoSeMaze scheme: two connected arenas joined by RFID tubes with overhead cameras — capturing social rank and chasing dynamics, social dynamics and clique formation, and reinforcement-learning dynamics with individualized drug delivery.
Tubes (RFID)

Individual ID on every passage → tube competitions (rank) + chasing.

social rank · agonistic behaviour
Open-field arena (cameras)

Video tracking → interaction & directed-approach networks, and the higher-order social structures they form.

interaction & approach networks
Water port (olfactometer)

RFID-gated go/no-go trials → reinforcement-learning profiles.

learning · impulsivity · flexibility
Home arena

Nesting + food; the “home” end of the loop that drives tube crossings.

drives the daily traffic
What you can measure

From a habitat to validated, individual-level measures.

The NoSeMaze yields measurements across four behavioural pillars — reinforcement learning, competition-based social rank, chasing, and video-based social networks — and, crucially, resolves the higher-order social structures that groups form and how these evolve over time. Each measure has been established and validated in peer-reviewed work.

DomainWhat it capturesKey validated metricsStudy
Reinforcement learning & cognitionSelf-initiated go/no-go olfactory learning at the water portCorrect hit / rejection rates; pre-CS licking (impulsivity); CS+ modulation (reward sensitivity); CS+/CS− switch latencies (flexibility); time-to-criterion → three learning strategiesReinwald
Social hierarchy & rankIncidental tube competitionsDavid's score → linear ranks; Elo rating; hierarchy transitivity, steepness, stability, uncertainty-by-repeatability (convergent & temporally stable; validated vs manual tube test)Reinwald
Chasing (agonistic)Voluntary tube chasingFraction of chases initiated / received; concentrated in a few individuals; stable within & across roundsReinwald
Social-interaction networksOverhead video of the open arenaUndirected interaction networks; directed approach networks; interaction-time networks (proximity <10 cm ≥1 s; directional approaches)Nelias
Higher-order structure: rich-clubsNetwork substructure over timeMutual k-NN pruning; normalized weighted rich-club coefficient; stable rich-club (sRC) membership; null-model / permutation testing; reciprocityNelias
Temporal network dynamicsHow consistently ties are maintainedMean Normalized Edge Fluctuation (NEF, novel); out-strength; incoming vs outgoingNelias · new
Trait stability across contextsReshuffled group composition across roundsBetween-round Spearman ρ; intraclass correlation (ICC); strategy-consistency (Sankey)both
Cognition — three learner types reinforcement learning

Clustering on the reward-seeking features separates impulsive go-learners, cautious no-go learners, and flexible learners. These strategies are largely retained when an animal is placed into a new group — a tangible, individual-level cognitive fingerprint from a self-paced task.

Networks → higher-order structure & its dynamics rich-clubs · NEF

Beyond pairwise contacts, the video networks resolve the higher-order social structures a group forms: small, stable, mutually-interacting cliques (“rich-clubs”) emerge in most groups. Members are higher-ranked and more reciprocal, membership arises de novo from group dynamics rather than kinship, and it can be disrupted by a targeted sensory manipulation. A novel measure — the Mean Normalized Edge Fluctuation (NEF) — captures how these relationships change over time, distinguishing steady from erratic social ties.

Cross-domain integration same individuals

Because rank, chasing, cognition, and network role are all measured in the same animals, the platform supports linking them — for example, relating rich-club membership to social rank and chasing. This cross-domain view within one continuous dataset is the platform's differentiator.

Social-network analysis pipeline: from overhead video through pose tracking to social-interaction networks and rich-clubs.
The video pipelineFrom raw overhead video through pose tracking to social-interaction networks and their higher-order structure.
Reshuffling scheme: individuals are recombined into new groups across successive rounds to test trait stability across social contexts.
Systematic reshufflingIndividuals are recombined into new groups across rounds, separating stable individual traits from social context.
Plot of the three learning-strategy clusters (impulsive / cautious / flexible)
Three learning-strategy clusters
Tube-competition hierarchy network (David's-score graph)
Tube-competition hierarchy network
Social-interaction network
Social-interaction network

Validated, not just recorded

Every domain above is backed by convergent validation, null-model testing, and cross-round stability analysis — the measures reflect genuine biology, not tracking artefacts.

Hardware domains

Modular by design — adaptable exactly to what you need.

Three core modules, connected to one control computer. RFID individual identification runs through all of them.

Close-up of the lick port / olfactometer / water module
MODULE 01

Olfactory stimulus–outcome learning

  • Role: the only water source; runs the self-paced go/no-go olfactory task.
  • Components: lick port + water container; custom-built olfactometer + tubing; National Instruments DAQ board (NI-USB 6002; formerly NI-USB 6216 BNC).
  • Detail: RFID identifies each mouse, licks are logged via a Darlington sensor, and mice perform ~463 trials per day on average.
A connecting tube with the RFID readers at both ends
MODULE 02

Tube-test system with RFID

  • Role: automatically scores social hierarchy and chasing from natural tube use.
  • Components: two tubes linking the arenas, each with an RFID reader at both ends.
  • Detail: detection sequences distinguish incidental tube competitions (dominance) from voluntary chasing.
Overhead camera frame showing tracked mice
MODULE 03

Overhead video

  • Role: reconstructs the full social-interaction network in the arenas.
  • Components: overhead USB camera (wide-angle lens) with red-LED illumination for day/night recording; continuous 24/7 capture.
  • Detail: DeepLabCut / CNN tracking of individually bleached fur patterns yields per-mouse coordinates over time.
Threaded through everything — each mouse carries a subcutaneous RFID chip, so every tube passage and every learning trial is attributed to a known individual. That is the backbone that makes group-level, per-animal tracking possible.
Control system & software

Open, approachable software runs the whole experiment.

All modules connect to a single computer running NoSeMazeControl, an open-source Python application that plans experiments, runs them, and stores the data. Its interface lets you design the olfactory task and build trial schedules (the former NoSeMazeSchedule tools are now integrated as tabs). RFID detections trigger the task logic and tag every event to an individual.

  • Written in Python (3.10+) — run main.py from source or use the prebuilt .exe.
  • One UI to plan, schedule, run, and store — no bespoke lab code needed to get going.
  • Hardware interface via NI-DAQmx (PyDAQmx wrapper); currently supports the NI-USB 6002 board.
  • Open lineage — a modified, extended fork of AutonoMouse (Erskine et al., 2019).
NoSeMazeControl software interface (experiment planning / schedule tabs)
Validated in published studies

Every claim here is anchored in peer-reviewed work.

System & social position

Individual differences drive social hierarchies in male mouse societies

Reinwald, Ghanayem, Wolf et al.

Establishes the platform and validates reinforcement-learning profiles, tube-competition social rank, and chasing — and shows these are stable individual traits across reshuffled groups (>4,000 mouse-days, 21 rounds).

Citation & DOI — Reinwald JR, Ghanayem S, Wolf D, et al. Individual differences drive social hierarchies in male mouse societies. eLife 2026;15:RP109354

Analysis code →

Social networks & higher-order structure

Stable clique membership in male mouse societies requires oxytocin-enabled social sensory states

Nelias, Ghanayem, Wolf et al.

Establishes the video-based social-network pipeline and validates rich-clubs, stable rich-club membership, and temporal edge dynamics (NEF) — 7,200 hours of continuous video.

Citation & DOI — Nelias C, Ghanayem S, Wolf D, et al. Stable clique membership in male mouse societies requires oxytocin-enabled social sensory states. Nat Commun 2026;17:8493

Analysis code →

Open-source architecture

Analysing the massive data.

The core repository holds the control software and the full hardware and setup documentation; two companion repositories contain the analysis code behind the studies; and a dedicated tool visualises the temporal social networks. The system extends the open-source AutonoMouse project.

KelschLAB/NoSeMaze

Core. Control software (NoSeMazeControl) + hardware reference, wiring, setup & user guides.

Open repository →
KelschLAB/NoSeMaze-social-status

Analysis scripts (MATLAB & R) for social rank, chasing, reinforcement learning and stability (Reinwald et al.).

Open repository →
KelschLAB/NoSeMaze-stableRichClubs

Python code for social networks, rich-clubs, NEF and null-model testing (Nelias et al.).

Open repository →
KelschLAB/TempNetViz

GUI for visualising temporal graphs — pairs naturally with the network analyses.

Open repository →
★ Star on GitHub Software: GPL-3.0 Analysis repos may carry their own license
Build your own

From documentation to your first round.

Read the hardware reference

See the parts list and specs.

Assemble a unit

Follow the habitat setup & wiring guide.

Install NoSeMazeControl

Python 3.10+ or the .exe; design your task.

Run a round

9–12 mice, weeks-long, unattended.

Analyse

Use the published analysis repositories.

Contact

Wolfgang Kelsch — wokelsch@uni-mainz.de

How to cite

Reinwald JR, Ghanayem S, Wolf D, et al. Individual differences drive social hierarchies in male mouse societies. eLife 2026;15:RP109354

Nelias C, Ghanayem S, Wolf D, et al. Stable clique membership in male mouse societies requires oxytocin-enabled social sensory states. Nat Commun 2026;17:8493