Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hawmex/aut_ai_project

This repository contains the files of my project for the "Artificial Intelligence" course at AUT (Tehran Polytechnic).
https://github.com/hawmex/aut_ai_project

classification cnn computer-vision machine-learning python

Last synced: 5 days ago
JSON representation

This repository contains the files of my project for the "Artificial Intelligence" course at AUT (Tehran Polytechnic).

Awesome Lists containing this project

README

        

# Defective Pump Impeller Detection Using a CNN

This repository contains the files of my project for the "Artificial
Intelligence" course at Amirkabir University of Technology (Tehran Polytechnic).

## Project Description

This project deals with a classification problem. Since we are trying to
classify images, we have decided to solve it with a convolutional neural network
due to its abilities in image processing.

## Dataset

The data we used are available on
[Kaggle](https://www.kaggle.com/ravirajsinh45/real-life-industrial-dataset-of-casting-product).

### Examples

#### Defective Pump Impeller

![Defective Pump Impeller](./screenshots/defective_pump_impeller.png)

#### Non-Defective Pump Impeller

![Non-Defective Pump Impeller](./screenshots/non_defective_pump_impeller.png)

## The Convolutional Neural Network

We created a CNN with the following architecture:

- `Conv2D`: 64x64x8
- `MaxPool`: 32x32x8
- `Conv2D` 32x32x8
- `MaxPool`: 16x16x8
- `Flatten`: 2048
- `Dense`: 16
- `Dense`: 16
- `Dense`: 1

Total params: 33,737

![The Convolutional Neural Network](./screenshots/model.png)

## Training and Validation

### Accuracy

We used `binary_accuracy` as the performance metric of the network.

![Accuracy](./screenshots/accuracies.png)

### Loss

We used `binary_crossentropy` as the loss function of the network.

![Loss](./screenshots/losses.png)

## Results

Our CNN model can classify images of pump impeller with an accuracy of **~96%**.