Image anomaly detection and prediction scheme based on SSA optimized ResNet50-BiGRU model