The problem of sudden flame acceleration in narrow channels and subsequent Deflagration to Detonation Transition (DDT) is revisited. The hydrogen–oxygen combustion system is considered both experimentally and numerically. The flame is initiated at one open end of a square narrow channel of different widths (4, 8, 10 and 20 mm) and propagates to another open end. Experimental results show a high sensitivity to the mixture composition: for higher mixture reactivity, an abrupt flame acceleration is reported. In 4 × 4 mm2 channel, when the mixture composition is close to stoichiometry (2:1), the DDT is observed without any evidence of shock waves prior to the detonation transition. Two complementary sub-models are combined to account for the effect of walls on flow and on flame front geometry. A pseudo-spectral numerical scheme is used to integrate the system of equations both in time and in space. The simulation results show how the suggested model reproduces main features of the phenomenon. A simple criterion is suggested for the onset of the flame self-acceleration. There exists a critical flame folding factor for the DDT, which is an invariant of the system. The reported critical folding factor is compared to the theoretical estimation introduced by Gordon et al (2020).