Hallucinations are vivid and transient experiences of objects, such as images or sounds, that occur in the absence of a corresponding stimulus.1,2,3,4,5,6,7,8,9 To understand the neurocomputational mechanisms of hallucinations, cognitive neuroscience has focused on experiments that induce false alarms (FAs) in healthy participants,1,2,3,4,5,9 psychosis-prone individuals,1,3,4 and patients diagnosed with schizophrenia.5 FAs occur when participants make decisions about difficult-to-detect stimuli and indicate the presence of a signal that was, in fact, not presented. Since FAs are, at heart, reports, they must meet two criteria to serve as an experimental proxy for hallucinations: first, FAs should reflect perceptual states that are characterized by specific contents10,11,12 (criterion 1). Second, FAs should occur on a timescale compatible with the temporal dynamics of hallucinations13,14 (criterion 2). In this work, we combined a classification image approach15 with hidden Markov models16 to show that FAs can match the perceptual and temporal characteristics of hallucinations. We asked healthy human participants to discriminate visual stimuli from noise and found that FAs were more likely to occur during an internal mode of sensory processing, a minute-long state of the brain during which perception is strongly biased toward previous experiences17 (serial dependency). Our results suggest that hallucinations are driven by dynamic predictive templates that transform noise into transient, coherent, and meaningful perceptual experiences.