The filtration effect significantly affects the gangue slurry velocity and concentration, making it difficult to evaluate the gangue slurry diffusion range. Based on the Darcy seepage law, a seepage theoretical calculation model is established considering the filtration time and space effect. And the "water-cement ratio change matrix" in the seepage process of coal gangue slurry is deduced, revealing the basic mechanism of the porous media filtration effect, and the water-cement ratio gradually increases in the seepage process of gangue slurry. The visual test platform for slurry diffusion in goaf was independently developed for testing. The active heating optical fiber method (AHFO) was used to monitor the flow and diffusion of coal gangue slurry in the collapse zone of goaf, and the gravity gradient and water cement ratio of slurry in goaf were measured. The law of particle sedimentation in the gangue slurry flow process under the filtration effect was revealed, and engineering verification was carried out. The results show that the average slope of the gangue slurry in the gangue accumulation is 6.34%, and the overall flow law of the gangue slurry in the goaf is the first longitudinal expansion and then transverse diffusion. The water-cement ratio near the grouting mouth is smaller than the initial water-cement ratio, the near-end water-cement ratio is smaller, and the far-end water-cement ratio is larger. During on-site filling, the accumulated grouting volume of a single hole is 700 m3, and the gangue slurry diffusion distance is greater than 45m, indicating that the gangue slurry has good fluidity.