arXiv:2610.40970cs.AIOct 2026

Manuscript Offprint

arXiv:2610.40970

Nedimo: An Evidence-Grounded Multilingual Pipeline for AI-Generated Sleep Stories

Georgios Makridis, Stefanos Kampouris

Georgios Makridis and Stefanos Kampouris

Department of Digital Systems

University of Piraeus

Piraeus, Greece

Web application and project website: nedimo.com

Mobile apps: Google Play, App Store

Abstract—Generative audio systems can produce large libraries of personalized bedtime content, but ordinary media objectives—retention, completion, and novelty—are poorly aligned with the goal of supporting a transition toward sleep. Direct evidence for narrated bedtime audio in adults is mixed, and a recent active-controlled trial did not support such audio as a standalone treatment for sleep disturbance. We translate this uncertain evidence into conservative engineering requirements and present a multilingual pipeline for generating and narrating low-arousal sleep stories. The implemented prototype separates deterministic planning from large language model generation, represents content and delivery parameters explicitly, shapes each script through a four-phase attention taper, validates structural and lexical constraints, performs a bounded error-aware retry, and quarantines unresolved outputs. Provider-agnostic text-to-speech synthesis is followed by paragraph-aware joining, two-pass loudness normalization, and a publication gate that re-measures the saved, encoded file against fixed loudness, loudness-range, and true-peak limits. The product data model records stop position, replay, early abandonment, and completion while treating these events as ambiguous behavioral proxies rather than clinical outcomes. We contribute an evidence-to-requirement mapping, a traceable guardrail architecture with explicit acceptance thresholds, technical evaluation criteria, and a prospective protocol for testing sleep-onset effects. No clinical efficacy is claimed; the system is positioned as a relaxation and attentional-support tool whose benefit and possible reliance must be evaluated empirically.

Index Terms—generative AI, sleep stories, constrained text generation, text-to-speech, digital health, safety guardrails, sleep onset.

I. INTRODUCTION

Audio stories are increasingly offered as pre-sleep content, yet their design objective differs from that of conventional spoken media. For an entertainment service, finishing a story and requesting another episode are desirable outcomes. For a sleep-onset aid, continuous engagement to the end may instead indicate that the listener remained awake. Optimizing ordinary completion metrics can therefore work against the intended use.

The empirical basis also requires restraint. An early audiobook comparator did not improve sleep quality over control [1]; small app and intensive-care studies reported partial or context-specific signals [2]–[4]; and a 2026 randomized trial of 495 working adults found that bedtime stories did not outperform an active digital control on its primary sleep-disturbance outcome [5]. At the same time, in a self-selected online survey of 1,136 Swedish adults, respondents with sleep-onset insomnia symptoms more often reported using bedtime audiobooks to reduce worry, and daily listeners more often reported returning to the same book [6]. These results motivate a system that is usable and testable without claiming that narration is a treatment for insomnia.

This paper describes the design and implementation of such a system in the Nedimo web application and project website [7] and its Android and iOS apps [8], [9]. The work addresses three questions: how sleep-related evidence can be translated into controllable generation parameters; how those constraints can be enforced across text generation, synthesis, and delivery; and how the system can be evaluated without equating media engagement with sleep.

The principal contributions are:

  • an evidence-to-requirement mapping for adult sleep-story generation;

  • a deterministic, multilingual orchestration pipeline with a parameterized narrative contract and four-phase attention taper;

  • layered structural, lexical, and acoustic guardrails with stated acceptance thresholds, bounded retry, and quarantine; and

  • a three-level evaluation framework separating technical conformance, product telemetry, and clinical sleep outcomes.

II. EVIDENCE BASE AND DESIGN REQUIREMENTS

A. Narration, attention, and adult sleep

The most plausible role of a story is attentional redirection: it can occupy enough cognitive capacity to interrupt rumination while avoiding the uncertainty and emotional activation of ordinary narrative. Harvey and Payne found that people with insomnia who elaborated an interesting, engaging, pleasant, and relaxing image reported shorter sleep-onset latency and less uncomfortable pre-sleep thought than participants assigned general distraction or no instruction [10]. This finding argues against a completely flat story. It instead suggests an attentional middle: concrete and gently absorbing, but without consequential goals.

Direct bedtime-audio evidence remains heterogeneous (Table I). Harmat et al. compared relaxing music, an audiobook, and control in 94 students; music improved subjective sleep quality, whereas the audiobook did not [1]. A 40-person crossover study found actigraphy-estimated sleep-efficiency and pre-sleep heart-rate-variability changes across sleepcasts, music, and mindfulness, but only mindfulness improved subjective PSQI scores [2]. A 300-person pilot supported the feasibility of app-delivered stories and music but lacked the stronger active-control evidence needed for efficacy claims [3]. Mermer and Arslan reported favorable perceived sleep and physiological measures after a 30-minute audiobook-plus-music session in 56 intensive-care patients, a setting that limits generalization [4]. Most decisively, the larger USleep trial found only a very small, nonsignificant primary effect for bedtime stories relative to digital control (g = 0.12, 95% CI [-0.13, 0.37]) [5].

References (23)