Data and code from: Hidden role plasticity of the reproductive caste in a morphologically differentiated termite society
Data files
Jun 12, 2026 version files 371.48 KB
-
dryad_submission.zip
364.50 KB
-
README.md
6.98 KB
Abstract
Reproductive division of labor is the defining characteristic of eusocial insects, separating germline-like reproductives from soma-like workers. While most studies have focused on the sterility of workers, it is generally assumed that developing reproductives invest only in maturation and not in colony labor. Here, we show that nymphs (pre-alates) in a highly structured termite society can contribute to colony labor under natural conditions. During a rare colony emigration event of a marching termite, Longipeditermes longipes, we observed developed nymphs carrying brood items to the new nest. In ~8 hours of field observation, ~155,000 termites emigrated with ~35,000 brood and ~30,000 food items transported, and nymphs participated exclusively in brood transportation. The traffic flow of nymphs was positively correlated with brood-carrying workers but negatively correlated with soldiers. Movement patterns were not different between brood-carrying and non-carrying nymphs, suggesting that nymphs express nursing worker-like behavior at minimum costs, consistent with the theoretical prediction of task allocations. These results reveal that caste flexibility exists even in highly canalized societies and emerges under ecological stress.
This repository provides the data and source code used for the manuscript:
Hidden role plasticity of the reproductive caste in a morphologically differentiated termite society
Nobuaki Mizumoto, Clement Het Kaliang, Taisuke Kanao
Paper DOI: https://doi.org/10.1002/oik.12492
This study describes the brood transportation by nymphs of a marching termite, Longipeditermes longipes, during a rare nest relocation event. The ~8 hours of videos of nest relocation wwereanalyzed using an event logging software, BORIS, to measure the time development of traffic flow, and a deep-learning posture tracking software, SLEAP, to investigate the movement patterns of nymphs with and without brood transportation.
Repository Structure
This dataset: dryad_submission.zip includes raw data, tracking data, and source code used for analysis.
README.md
code/
data_raw/
code/
| File | Description |
|---|---|
| data_prep.py | Python script used to process and clean SLEAP tracking outputs. |
| analysis.R | R script used for statistical analyses and figure generation. |
data_raw/
| File | Description |
|---|---|
| flow.csv | Traffic flow observations collected from nest relocation videos. |
| working_nymph_data.csv | Metadata describing analyzed working-nymph observations. |
| sleap_trajectory/ | Directory containing SLEAP tracking output files (.h5). |
Data Description
flow.csv
Traffic observations recorded from the videos of the emigration trail.
| Variable | Description | Values / Units |
|---|---|---|
| traffic | Traffic category of the observed individual | "w-outbound", "w-inbound", "min-s-outbound", "min-s-inbound", "maj-s-outbound", "maj-s-inbound", "nymph-outbound", "nymph-inbound" |
| item | Item carried by the individual | "None", "with brood", "with food" |
| Time | Observation time from the beginning of recording | Seconds |
| video | Source video clip identifier | Character string |
| Image_index | Video frame number | Frame |
Traffic category abbreviations:
| Abbreviation | Meaning |
|---|---|
| w | Worker |
| min-s | Minor soldier |
| maj-s | Major soldier |
| nymph | Nymph |
| outbound | Moving away from the original nest |
| inbound | Moving toward the original nesIt t |
The variable item is applicable only to workers and nymphs.
working_nymph_data.csv
Metadata describing video segments used for movement analyses of working nymphs.
| Variable | Description | Units |
|---|---|---|
| video | Source video clip identifier | Character string |
| seq | Observation sequence identifier | Integer (1-9) |
| start | Starting frame within a video clip | Frame |
| end | Ending frame within a video clip | Frame |
| start_seq | Starting frame number across all continuous videos | Frame |
| end_seq | Ending frame number across all continuous videos | Frame |
| behavior | Behavioral category | "working_nymph" |
sleap_trajectory/
This directory contains SLEAP tracking output files in HDF5 format (.h5).
File names follow the convention:
sequence_behavior_start_end.analysis.h5
Example:
1_work-nymph_13035_13225.analysis.h5
where:
| Component | Description |
|---|---|
| sequence | Observation sequence identifier |
| behavior | Behavioral category |
| start | Starting frame |
| end | Ending frame |
The values correspond to entries in working_nymph_data.csv.
These files contain standard SLEAP tracking output arrays with dimensions:
(frames, body parts, coordinates, individual)
where coordinates represent x and y positions.
Tracked body parts are:
- head
- thorax
- wingpad
- tail
Video Files
The video recordings used in this study are not included in this Dryad repository because of their large size.
Video identifiers used in flow.csv and working_nymph_data.csv correspond to the following source video files: Lon_lon_NM23074_nest-emigration_230607_00.mp4, Lon_lon_NM23074_nest-emigration_230607_01.mp4, ..., Lon_lon_NM23074_nest-emigration_230607_15.mp4.
The original video files are available upon request to the corresponding author.
Software Environment
R
R version 4.4.1 (2024-06-14)
packages <- c(car="3.1-3", carData="3.0-5", lme4="1.1-36", Matrix="1.7-0", ggridges="0.5.6", RColorBrewer="1.1-3", patchwork="1.3.0", ggplot2="3.5.1", dplyr="1.1.4", tibble="3.2.1", tidyr="1.3.1", stringr="1.5.1", data.table="1.17.0")
for (pkg in names(packages)) remotes::install_version(pkg, version = packages[pkg])
Python
Python 3.11.4
pip install
h5py==3.13.0
numpy==1.25.0
pandas==2.2.3
scipy==1.15.2
feather-format==0.4.1
pillow==11.2.0
Contact
Nobuaki Mizumoto
nzm0095@auburn.edu
