---
name: mobisys-reproducibility
description: Use when recording MobiSys data collection, firmware, and device state so results can be defended in five weeks of shepherding. Covers participants' data. Does not package the artifact.
---

# MobiSys reproducibility

Use this in the field. Most of what matters is outside the repository: which unit, which strap, which day.

Call: https://www.sigmobile.org/mobisys/2027/call_for_papers/

## A session sheet

Fill it at the time, one per recording.

```text
session id | date, local time, zone | place, sketch no. | participant code
device serial | OS build | app commit | firmware hash | battery start/end | charging
worn/held how | re-worn since last: y/n | ambient: temp, noise, light, people near
protocol version | deviations | operator | consent version
raw files + sha256 | usable: y/n, rule applied
```

"Deviations" is the valuable column. Write what happened: a bus passed, the strap slipped, the subject laughed. Two months later it explains an outlier without inventing a reason.

## Device state, automatically

```bash
D=sessions/$ID; mkdir -p "$D"
adb shell getprop > "$D/props.txt"
adb shell dumpsys battery > "$D/battery.txt"
adb shell dumpsys thermalservice > "$D/thermal.txt" 2>/dev/null || true
adb shell dumpsys package "$PKG" | grep -E 'versionName|versionCode' > "$D/app.txt"
adb shell settings get global airplane_mode_on > "$D/airplane.txt"
git rev-parse HEAD > "$D/commit.txt"; git diff > "$D/dirty.patch"
```

For other platforms save the equivalent by hand. For boards: schematic revision, bill of materials with substitutions, and the binary you flashed, not only its source. Toolchains change.

## People's data

- Codes, with the key kept apart and deleted when promised.
- Consent by purpose: analysis, sharing, publication of images. Record each, per person.
- Audio and video: decide before recording whether raw is kept.
- Location traces identify a person even without a name.

Publish only what the consent covers. A dataset that cannot be shared can still be described: distributions, example synthetic traces, and the code that would read it.

## Splits are data

Save folds as files of session ids with a hash, and have the training code refuse a session that is in two folds. Publish them.

## From numbers to paper

Every plot is made by one command from session sheets. Exclusions are applied by rule and counted in the text: "We removed 14 of 412 sessions because the strap was loose." Check this number on the last day.

## For the shepherd

Conditional acceptance can come with requests for evaluation. Keep a map from each claim to sessions, code, and the person who can repeat it. Aim to answer "could you rerun figure 8 without participant 5?" the same day.

## Output

```text
[MobiSys record] sessions <n>, sheets complete <n>, excluded <n by rule>
[Units] <serials> · board revision <x> · binary saved <yes/no>
[Consent] analysis <n> · sharing <n> · images <n>
[Folds] saved and hashed: yes/no
[Figures] one command each: <n of n>
[Repeatable by] <claim -> person>
```

## Reverify each cycle

- The statement on enough information to replicate, and your board's retention terms.
