Install the following python libraries
- Python 3.10
- Numpy
- Pandas
- matplotlib
- Tensorflow 2
You can use google colab also to avoid dependency issues
- Identification of seagrass with bare eyes is really difficult, hence, this work proposed a deep learning model which incorporates transfer learning method- Inception V3.
- Methodology
Here, we use a pretrained CNN classifier – Inception V3. Step by step process involved in this implementation:
- Dataset Preperation- Extract images frame by frame, image resizing, define train & test data.
- Data Preprocessing- image rescaling to (0, 1), no changes of image properties.
- Model building- Initialize inception v3, Total – 42 layers, Activation function- softmax, Cost function- categorical entropy .
- Image Augmentation- Image data generator- change in image properties.
- Model tuning - freeze top 28 layers, optimizer- stochastic gradiant descent & retrain agian.
- Evaluation – Train & test data accuracy.
– The 4 classes dataset is collected from CSIRO, Australia database which consists of training data: 80% - 42848 images and test data: 20% - 8566 images.
-
Firstly, implemented Inception V3 model which has 42 layers.
-
Respectively, before augmentation and after augmentation – the inception V3 model gives 98.2% accuracy and 97.4% accuracy.
-
Secondly, implemented efficientnet B7 which has 813 layers (accuracy increases by increasing the no. of epochs).
-
Finally, implemented sequential CNN with 5 layers at final layer added ’l2’ regularizer. Activation function: ’softmax’ for all 3 models.
This project has implemented a deep learning method for automated detection and clas- sification of seagrass species. The approach focused on classification of seagrass into three major morphological super-classes plus background and presented a novel method of training a multi-species seagrass classifier using a dataset of single species images. The four-class approach achieved an overall accuracy of 96.2 percent, which was then improved to 98.4 percent by tuning the model and retraining the model using augmented images. The approach could be extended by separating morphological super-classes into the individual seagrass species and would benefit from increased training data and robust testing in the field. Furthermore, the approach presented could be used as a basis for estima- tions of species-specific percentage cover and density.
- Raine, S., Marchant, R., Moghadam, P., Maire, F., Kettle, B. and Kusy, B., 2020, November. Multi-species seagrass detection and classification from underwater images. In 2020 Digital Image Computing: Techniques and Applications (DICTA) (pp. 1-8). IEEE.