Convolutional Neural Networks (CNNs) are a class of deep learning algorithms designed for processing structured grid data, primarily images and…