Pyphysdisc: co-evolutionary symbolic regression with adaptive smoothing windows for autonomous physical law discovery from noisy data
摘要
Discovering differential equations from noisy data faces the derivative–noise dilemma: numerical differentiation amplifies noise, requiring a smoothing window (w) whose optimal value depends on unknown noise levels and dynamical timescales. Existing methods decouple smoothing from the equation search, making them fragile to misspecification. We introduce PyPhysDisc, a genetic-programming framework where each individual carries a candidate expression tree and a window gene encoding w. Consequently, signal processing and symbolic regression are jointly optimised under a single selection pressure. We provide quantitative evidence of this co-evolutionary coupling through Shannon entropy analysis: window-gene entropy drops by 82 % over 40 generations, with elite-population dominance reaching 1.0, confirming directed selection rather than drift. Benchmark experiments on chaotic (Lorenz), limit-cycle (Van der Pol), stiff (Duffing), and predator–prey (Lotka–Volterra) systems at up to 20 % multiplicative noise show that PyPhysDisc maintains high accuracy (