Conventional imaging detection relies on electrical modulation, but it grapples with limitations in speed and adaptability within complex environments. Intelligent imaging detection, capable of manipulating micro-nano-lightfields generated by imaging objective lenses, is essential. The all-optical deep diffractive neural network (D2NN) offers a potential solution, enabling swift spatial information transformation and recognition. However, existing D2NN versions are vulnerable to optical disturbances due to their reliance on computer-based backpropagation. This paper introduces a robust diffractive neural network (SRNN) mathematical model designed to mitigate the impact of structural errors and lightwave frequency shifting without necessitating hardware modifications. The SRNN model incorporates Gaussian noise at various levels during training to emulate the error distribution of the phase mask, augmenting the network's resilience to hardware errors. Weight-Noise-Injection training assists the network in locating an error-insensitive region, thereby enhancing its robustness.