5D Library › Rhythmic Acoustic Stimulation, Auditory Steady-State Responses and Modulation Signal Engineering · 中文

Chapter 8. A Ten-Flag Audit and a Pre-Registered Crossover Trial

Ten questions

This chapter turns the book into ten questions a script can check against any rhythmic audio or sleep sound product, the author’s own included. They are not medical or hearing-care advice.

  1. Is a binaural beat claimed through loudspeakers or bone conduction? (Chapter 4)
  2. Is the carrier of a binaural beat above 1,000 Hz? (Chapter 1)
  3. Is a static pure tone claimed to entrain brain waves or repair anything? (Chapters 1 and 2)
  4. Is 7.83 Hz sold as the “Schumann resonance”? (Chapter 5)
  5. Does the slope of the so-called pink noise miss 3.01 dB per octave by more than 0.5 dB? (Chapter 3)
  6. Is the masker above 45 dBA at the pillow? (Chapter 3)
  7. Does the recommended daily use push the hearing dose above 0.5? (Chapter 5)
  8. Is the isochronic tone gated by a square wave with no ramp? (Chapter 4)
  9. Does the evidence come only from uncontrolled before-and-after surveys? (Chapter 6)
  10. Are many EEG cells tested without correction? (Chapter 6)

The audit as a program

The program writes the ten questions as ten automatic flags and applies them to two illustrative products: a “naive” one (a typical marketplace track and its claims) and an “audited” one corrected chapter by chapter in this book.

Calculation

# Chapter 8. p15: Ten automatic flags for an audio entrainment product.
# Each flag is a yes / no check that a script can run on a product's
# own specification and claims; the chapter of this book that supplies
# the threshold is given in brackets. Two illustrative products:
#   "naive": the typical marketplace track and its claims;
#   "audited": the same product after the corrections of this book.
FLAGS = [
    ("binaural claimed via speakers or bone conduction [4]",
     lambda p: p["binaural"] and p["ia_db"] < 30),
    ("binaural carrier above 1,000 Hz [1]",
     lambda p: p["binaural"] and p["carrier"] > 1000),
    ("static tone claimed to entrain or repair [1, 2]",
     lambda p: p["static_claim"]),
    ("7.83 Hz sold as the Schumann resonance [5]",
     lambda p: p["schumann_claim"]),
    ("pink noise slope off by more than 0.5 dB/oct [3]",
     lambda p: abs(p["slope"] + 3.01) > 0.5),
    ("masker above 45 dBA at the pillow [3]",
     lambda p: p["masker_dba"] > 45),
    ("recommended daily dose above 0.5 [5]",
     lambda p: p["dose"] > 0.5),
    ("square gating with no ramp [4]",
     lambda p: p["ramp_ms"] < 2),
    ("evidence only from before / after surveys [6]",
     lambda p: not p["sham_controlled"]),
    ("many EEG cells tested, none corrected [6]",
     lambda p: p["tests"] > 1 and not p["corrected"]),
]

PRODUCTS = {
    "naive": dict(binaural=True, ia_db=3, carrier=1200,
                  static_claim=True, schumann_claim=True, slope=-4.2,
                  masker_dba=55, dose=0.79, ramp_ms=0,
                  sham_controlled=False, tests=285, corrected=False),
    "audited": dict(binaural=False, ia_db=50, carrier=400,
                    static_claim=False, schumann_claim=False,
                    slope=-2.99, masker_dba=40, dose=0.012, ramp_ms=20,
                    sham_controlled=True, tests=3, corrected=True),
}

if __name__ == "__main__":
    for name, prod in PRODUCTS.items():
        hits = [f for f, test in FLAGS if test(prod)]
        print("   {}: {} of {} flags".format(name, len(hits), len(FLAGS)))
        for f in hits:
            print("     [x] " + f)
    print("\nReading: the naive product trips every flag. The audited")
    print("one trips none, which only means its claims are no longer")
    print("contradicted by acoustics and arithmetic; whether it helps")
    print("anyone sleep or focus is a question for the trial of p16.")
#    naive: 10 of 10 flags
#      [x] binaural claimed via speakers or bone conduction [4]
#      [x] binaural carrier above 1,000 Hz [1]
#      [x] static tone claimed to entrain or repair [1, 2]
#      [x] 7.83 Hz sold as the Schumann resonance [5]
#      [x] pink noise slope off by more than 0.5 dB/oct [3]
#      [x] masker above 45 dBA at the pillow [3]
#      [x] recommended daily dose above 0.5 [5]
#      [x] square gating with no ramp [4]
#      [x] evidence only from before / after surveys [6]
#      [x] many EEG cells tested, none corrected [6]
#    audited: 0 of 10 flags
#
# Reading: the naive product trips every flag. The audited
# one trips none, which only means its claims are no longer
# contradicted by acoustics and arithmetic; whether it helps
# anyone sleep or focus is a question for the trial of p16.

The naive product trips all ten flags. The audited one trips none, but that says only that its claims no longer contradict acoustics and arithmetic, not that it helps anyone sleep or focus. Only a trial can answer that.

A pre-registered crossover trial

Hypothesis · not established

Trial protocol. Each sleeper spends three kinds of night in random order: pink-noise masking at 40 dBA; a 40 Hz isochronic tone followed by pink noise; a quiet control. Primary outcomes, tested at 0.05 with Holm’s step-down procedure (Holm 1979): H1, the micro-arousal index, masking against quiet; H2, 40 Hz steady-state phase locking, isochronic against binaural; H3, self-rated morning sleep quality, masking against quiet. Carried out with pre-registered code by an independent analyst with no financial relationship with the author; results published whether positive or negative.

Calculation

# Chapter 8. p16: Sizing and checking a pre-registered crossover trial.
# Each sleeper spends nights in three arms in random order: pink noise
# masker at 40 dBA, an isochronic 40 Hz track then pink noise, and a
# quiet control. Outcomes, tested with Holm's procedure at 0.05:
#   H1 micro-arousal index, masker vs control (paired d_z = 0.3);
#   H2 40 Hz ASSR phase locking, isochronic vs binaural (d_z = 1.0);
#   H3 morning self-rated sleep quality, masker vs control (d_z = 0.2).
# Paired normal approximation: n = (z_a + z_b)^2 / d_z^2 at power 0.80,
# with the first Holm level 0.05 / 3. Then 20 % dropout. Finally a
# simulation of 4,000 null trials checks that the Holm procedure keeps
# the chance of any false claim at or below 0.05.
import math
import random

def z_two_sided(alpha):
    lo, hi = 0.0, 10.0
    for _ in range(100):
        mid = (lo + hi) / 2
        if math.erfc(mid / math.sqrt(2)) > alpha:
            lo = mid
        else:
            hi = mid
    return (lo + hi) / 2

def holm_any(pvals, alpha=0.05):
    m = len(pvals)
    for i, p in enumerate(sorted(pvals)):
        if p > alpha / (m - i):
            return i > 0
    return True

if __name__ == "__main__":
    za, zb = z_two_sided(0.05 / 3), 0.8416
    print("   Holm first level 0.05 / 3 -> |z| > {:.3f}".format(za))
    need = 0
    for name, d in (("H1 micro-arousals", 0.3),
                    ("H2 ASSR locking", 1.0),
                    ("H3 sleep quality", 0.2)):
        n = math.ceil((za + zb) ** 2 / d ** 2)
        need = max(need, n)
        print("   {:18s} d_z = {:.1f}   n = {:4d}".format(name, d, n))
    print("   sleepers to complete: {}   to enrol (20 % dropout): {}"
          .format(need, math.ceil(need / 0.8)))
    rng = random.Random(5)
    false_any = 0
    for _ in range(4000):
        zs = [rng.gauss(0, 1) for _ in range(3)]
        ps = [math.erfc(abs(z) / math.sqrt(2)) for z in zs]
        false_any += holm_any(ps)
    print("   null simulation: any false claim in {:.4f} of trials"
          .format(false_any / 4000))
    print("\nReading: the subjective outcome sets the size of the trial.")
    print("If only H2 were wanted, eleven sleepers would do; the")
    print("claims a buyer cares about need hundreds.")
#    Holm first level 0.05 / 3 -> |z| > 2.394
#    H1 micro-arousals  d_z = 0.3   n =  117
#    H2 ASSR locking    d_z = 1.0   n =   11
#    H3 sleep quality   d_z = 0.2   n =  262
#    sleepers to complete: 262   to enrol (20 % dropout): 328
#    null simulation: any false claim in 0.0498 of trials
#
# Reading: the subjective outcome sets the size of the trial.
# If only H2 were wanted, eleven sleepers would do; the
# claims a buyer cares about need hundreds.

The first Holm threshold is |z|>2.394|z| > 2.394. H1 needs 117 sleepers, H2 only 11, H3 262; allowing 20% dropout, 328 must be enrolled. In 4,000 simulated null trials, the share with at least one false claim is 0.0498, within 0.05. The subjective outcome sets the size of the trial: the questions buyers care about need hundreds of sleepers, not a questionnaire of a few dozen.

Summary

Ten questions (the delivery route of binaural beats, the carrier, static tones, the Schumann frequency, the noise slope, the masker level, hearing dose, gating, control design and multiple comparisons) can all be written as an automatic audit. A trial of whether rhythmic audio really helps should use quiet and sham controls and let the subjective outcome set the sample size.

References

Holm, Sture. 1979. “A Simple Sequentially Rejective Multiple Test Procedure.” Scandinavian Journal of Statistics 6 (2): 65–70.

Fan, Y. (2026). Rhythmic Acoustic Stimulation, Auditory Steady-State Responses and Modulation Signal Engineering: Binaural versus Isochronic Envelope Depth, 40-Hz Phase-Locking Bounds and Pink-Noise Spectral Masking [节律声刺激、听觉稳态反应与双耳等时调制工程] (Version 1.0.0). 5D Library. https://doi.org/10.5281/zenodo.24090211 · Licensed under Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0).