Next Article in Journal
The Genome of a Pigeonpea Compatible Rhizobial Strain ‘10ap3’ Appears to Lack Common Nodulation Genes
Next Article in Special Issue
Cloning, Identification, and Functional Analysis of the Chalcone Isomerase Gene from Astragalus sinicus
Previous Article in Journal
A Genome-Wide Association Study of the Chest Circumference Trait in Xinjiang Donkeys Based on Whole-Genome Sequencing Technology
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

An Improved Machine Learning-Based Approach to Assess the Microbial Diversity in Major North Indian River Ecosystems

by
Nalinikanta Choudhury
1,2,
Tanmaya Kumar Sahu
3,
Atmakuri Ramakrishna Rao
2,4,*,
Ajaya Kumar Rout
5,6 and
Bijay Kumar Behera
5,6
1
ICAR—Indian Agricultural Research Institute, New Delhi 110012, India
2
ICAR—Indian Agricultural Statistics Research Institute, New Delhi 110012, India
3
ICAR—Indian Grassland and Fodder Research Institute, Jhansi 284003, India
4
Indian Council of Agricultural Research (ICAR), New Delhi 110001, India
5
ICAR—Central Inland Fisheries Research Institute, West Bengal 700120, India
6
Rani Lakshmi Bai Central Agricultural University, Jhansi 284003, India
*
Author to whom correspondence should be addressed.
Genes 2023, 14(5), 1082; https://doi.org/10.3390/genes14051082
Submission received: 28 March 2023 / Revised: 8 May 2023 / Accepted: 12 May 2023 / Published: 14 May 2023
(This article belongs to the Special Issue Application of Bioinformatics in Plants and Animals)

Abstract

:
The rapidly evolving high-throughput sequencing (HTS) technologies generate voluminous genomic and metagenomic sequences, which can help classify the microbial communities with high accuracy in many ecosystems. Conventionally, the rule-based binning techniques are used to classify the contigs or scaffolds based on either sequence composition or sequence similarity. However, the accurate classification of the microbial communities remains a major challenge due to massive data volumes at hand as well as a requirement of efficient binning methods and classification algorithms. Therefore, we attempted here to implement iterative K-Means clustering for the initial binning of metagenomics sequences and applied various machine learning algorithms (MLAs) to classify the newly identified unknown microbes. The cluster annotation was achieved through the BLAST program of NCBI, which resulted in the grouping of assembled scaffolds into five classes, i.e., bacteria, archaea, eukaryota, viruses and others. The annotated cluster sequences were used to train machine learning algorithms (MLAs) to develop prediction models to classify unknown metagenomic sequences. In this study, we used metagenomic datasets of samples collected from the Ganga (Kanpur and Farakka) and the Yamuna (Delhi) rivers in India for clustering and training the MLA models. Further, the performance of MLAs was evaluated by 10-fold cross validation. The results revealed that the developed model based on the Random Forest had a superior performance compared to the other considered learning algorithms. The proposed method can be used for annotating the metagenomic scaffolds/contigs being complementary to existing methods of metagenomic data analysis. An offline predictor source code with the best prediction model is available at (https://github.com/Nalinikanta7/metagenomics).

Graphical Abstract

1. Introduction

Rivers are an essential source of development not only for mankind, but also for the aquatic ecosystems consisting of microbes to fish. Microbial communities have a crucial role in aquatic ecology as they regulate biogeochemical cycles, decompose organic matter and provide a food source for higher trophic levels. Microbes are omnipresent and abundantly found in river water and sediments. Thus, there is a need to explore the diversity and density of microbes to analyze their impact on human as well as fish health [1]. The Ganga and the Yamuna rivers, the most important river ecosystems in northern India and the third-largest aquatic ecosystem globally, discharge water into the sea [2]. These two rivers, along with their tributaries, are the heart of water resources in northern India and they hold a wide diversity of microbes. With the rapid advancements in sequencing techniques, metagenomics has been extensively applied to study the microbial communities of aquatic, soil and other ecosystems.
In metagenomics, the genomes of several microbes are analyzed from the sediment samples collected from a particular niche that is otherwise difficult to culture in a laboratory [3]. It includes research avenues such as systems biology, bioinformatics [4] and statistics. One of the crucial steps in metagenomic studies is the process of binning that allows the assignment of microbial assembled contigs to their respective phylogenetic groups [5]. The available binning techniques are categorized into two major groups, i.e., composition-based [6] and similarity-based methods [7]. Among the sequence similarity-based binning methods, MEGAN [8], Phylopythia [9], BLAST [10,11], etc., are popular, and they use a sequence alignment that depends on a known genome database. Therefore, similarity-based binning algorithms are time-consuming. On the other hand, composition-based binning takes less execution time by considering sequence compositional features such as GC content, nucleotide frequencies, k-mer (di, tri, tetra nucleotides) frequencies, composition–transition–distribution (CTD) features, etc. These features encode the sequences and categorize them into different taxonomic groups. Methods such as MetaCAA [12] and self-organizing maps [13] were previously used to cluster the metagenome sequence data based on the sequence as mentioned above, compositional features. All these methods are rule-based and require higher computational resources such as memory and execution time, whereas MegaR [14] and MetAML [15] are recently developed machine learning-based approaches which can classify the metagenome data efficiently.
In-depth taxonomic profiles and roles of bacterial, viral and planktonic communities, as well as population interactions, are now best understood through metagenomics [16,17]. The density and diversity of the microbial population from the sediments of the Ganga and the Yamuna rivers are reported by Behera et al. [18], Sahu et al. [17] and Samson et al. [19]. However, a large number of microbes from these river ecosystems remained unclassified. Behera et al. [18] used Kaiju [20] for binning purposes, a rule-based method (which is neither a supervised nor an unsupervised machine learning technique), and classified a limited number of microbes. In the metagenomic study, supervised MLAs perform well but consume more time as compared to unsupervised MLAs due to the diversity of organisms present [21]. The supervised learning requires labeled data and focuses on predicting a target variable, while unsupervised learning works on unlabeled data to uncover patterns and relationships within the data. The accuracy of MLAs can be improved by balancing the number of microbial sequences present in each class. Therefore, a mixture of unsupervised and supervised learning algorithms is required to develop a faster method with improved accuracy for microbial diversity analysis.
Here, we propose a method involving iterative K-Means clustering for binning metagenomic data and MLAs for developing a classifier to predict the unknown microbes. The iterative K-Means clustering is an unsupervised learning algorithm that operates on unlabeled datasets, with the aim of dividing the data points into distinct clusters. The number of clusters to be created, which is denoted by K, is specified prior to the execution of the algorithm. This iterative algorithm repeatedly partitions the data points into K clusters based on their similarity, until the clusters are well defined and the partitioning converges. In this study, the iterative K-Means clustering assigns the unannotated assembled scaffolds into the clusters of known scaffolds based on their distances from the prebuilt cluster centroid of the annotated scaffold data. The MLAs were applied on the labeled data generated from the K-Means clustering method, and subsequently, the performance matrices were derived. The performances of the MLAs were improved by using the best set of parameters obtained through the grid search technique. The proposed model can assist in the improvement of the classification of microbial populations present in aquatic ecosystems into different groups, such as bacteria, archaea, eukaryota, viruses and others, etc., based on metagenomic data. A portable program is also scripted here to help metagenomic scientists and researchers classify the microbial diversity in any ecosystem.

2. Materials and Methods

2.1. Data Acquisition

The sediment samples from the Ganga River at Kanpur and Farakka locations and the Yamuna River at Delhi were collected from three sites each. Using a genomic DNA (gDNA) isolation kit, gDNA was extracted from 250 mg of river sediment samples (Nucleospin Soil, Takara, Mountain View, CA, USA). Subsequently, the high-quality isolated DNA was subjected to 1% agarose gel (loaded 5 μL) electrophoresis at 110 V for 30 min and acceptable quality of sediment gDNA was used later on for next-generation library preparation. The quality of the gDNA was determined based on A260/280 ratio, where 1 μL from each sample was loaded in Nanodrop 2000. The concentration of gDNA was further assessed using Qubit 3.0 Fluorometer developed by Thermo Fisher Scientific, Waltham, MA, USA The DNA extracted from the collected samples was sequenced by Illumina Trueseq technology [22]. The data was generated at ICAR-Central Inland Fisheries Research Institute, West Bengal, India. The sequencing depths for the metagenomic samples from Kanpur, Farakka and Delhi were ~32 million reads/sample, ~37 million reads/sample and ~66 million reads/sample, respectively.

2.2. Preprocessing and Genome Assembly

The Illumina Trueseq (Illumina, San Diego, CA, USA) paired-end raw sequence reads were initially checked for quality by using FASTQC (version 0.11.9) [23]. The low-quality reads (Phred score < 33) and vector sequences were trimmed out using the Trimmomatic tool (version 0.40) [24]. The trimmed sequences were then assembled using SOAP-DENOVO2 [25] that is capable of assembling Illumina short reads from metagenomic samples. The steps for preprocessing the sequence data are illustrated in Figure 1. The extracted scaffolds were aligned to the ‘nr’ database [26] of NCBI by using offline BLAST [27]. The scaffold hits with the nr-database were designated as Scaffolds with Hits (SWH), whereas the scaffolds left without hits were named as Scaffolds without Hits (SWoH). The genus and super-kingdom of SWH using ENTRENZ gateways were identified by using an in-house R-script (provided in the GitHub account). The identical sequences and sequences with non-standard residues were filtered out from the dataset using the in-house scripts, and remaining sequences were used for further analysis.

2.3. Feature Extraction

The feature extraction from the SWH and SWoH scaffold sequences was performed using BioSeqClass [28,29], Seqinr [30] and BioStrings [31] packages of Bioconductor using a high-end server with 16 nodes of Linux-based cluster available at ICAR-Indian Agricultural Statistics Research Institute, New Delhi, India that is configured with 192 cores of processor. Four features including CTD (composition, transition and distribution), fragment composition, gap-pair composition, and CKSAAP (composition of k-spaced amino acid pairs) were combined and used in this study to generate a numeric vector of length 258. All of these features are briefly described in the following subsections.

2.3.1. CTD (Composition, Transition and Distribution) Feature

The sequences are encoded based on their composition (C), transition (T) and distribution (D) properties by using the CTD [32] features. C is the number of nucleotides of a particular property divided by the total number of nucleotides. T characterizes the percent frequency with which nucleotides of a different property follow the nucleotide of a particular property. D measures the chain length within which the first 25, 50, 75 and 100 nucleotides of a specific property are located. This sequence encoding feature returns a matrix with 30 columns.

2.3.2. Fragment Composition Feature

In the FragmentComposition [33] features, the sequences are encoded based on the frequency of k-mer sequence fragments. It returns a matrix with 84 columns.

2.3.3. Gap-Pair Composition Feature

The sequences are encoded based on the frequency of g-spaced nucleotide pairs based on GapPairComposition [34] features. It returns a matrix with 48 columns.

2.3.4. CKSAAP (Composition of K-Spaced Amino Acid Pairs) Features

In featureCKSAAP [35], sequences are encoded based on the frequency of k-spaced amino acids/base pairs. It returns a matrix with 96 columns.

2.4. Clustering for Binning

2.4.1. K-Means Clustering

The execution of the K-Means clustering method was performed in R [36]. It attempts to create the intra-cluster datasets as related as possible and create the clusters as distinct as possible. The assignment of new data points to a prebuilt cluster such that the sum of squared distance between the data points and the prebuilt cluster’s centroid is minimal. The variation within the clusters should be minimum and the divergence between the clusters should be maximum. The algorithm initially examines as a group of “k” centroids, and each centroid connects to each scaffold in the dataset to the adjacent centroid based on the Euclidean distance [37] measure, which is given as follows:
Euclidean   distance   ( X ,   Y ) = i = 1 n ( x i y i ) 2
where (X, Y) are the coordinates of a point or instance with n number of features and xi, yi denote the ith element of the corresponding (X, Y) coordinate. The K-Means clustering implemented here is depicted in Figure 2.

2.4.2. Evaluation of Clusters

The performance of the clusters was evaluated through a silhouette plot that describes how well the samples are clustered with others. The average distance between an observation and all other observations in the same cluster is measured as mean intra-cluster distance and denoted by a. The average distance between an observation with all other observations of the nearest neighbor cluster is calculated as mean inter-cluster distance and denoted by b. Then, the silhouette score [38] is defined as follows:
S i = b i a ( i ) m a x { a i , b i }
where S(i) = silhouette coefficient of the data point “i”. a(i) = mean distance of one data point from all other data points in the clusters to which “i” belongs and b(i) = least mean distance from “i” to all clusters to which “i” does not belong.
The range of silhouette coefficient ranges from −1 to 1. A score of 1 indicates that the observation “i” is highly dense within the cluster to which it belongs to, but at a far distance from other clusters. A score of −1 denotes a worst value be a part of a cluster and 0 denotes the overlapping of clusters.

2.5. Machine Learning for Classification

Here, six MLAs viz., support vector machine, Random Forest, Gradient Boosting decision tree, XGBoost, AdaBoost and BiLSTM were evaluated with a considered set of features described earlier under “Feature Extraction” sub-section. These MLAs were widely used in earlier studies to solve various biological problems, and thus, they are considered here in this study. Subsequently, performances of these MLAs were compared based on performance metrics and the best prediction model was used to develop the classifier. These MLAs are described briefly in the following subsections. Further, the advantages and disadvantages of the MLAs used in this study are given in Table S1.

2.5.1. Support Vector Machine

A support vector machine (SVM) is a non-parametric and statistically robust supervised machine learning algorithm [39,40]. It works based on the principle of structural risk minimization and can handle high-dimensional noisy datasets. Its performance greatly depends on the kernel function and hyperplane type, which can discriminate the observations using the optimal linear technique. The SVM was implemented using the scikit-learn Python package [41].

2.5.2. Random Forest

Random Forest is an ensemble-based classifier developed by Breiman and Cutler [42]. The method involved in RF combines two approaches, viz., Breiman’s bagging predictors [43] and random feature selection [44], to construct a set of decision trees. A class is assigned to an observation based on majority rule, i.e., the observation is assigned to a class which appears in a majority of the decision trees. The RF was implemented here using the “sklearn ensemble” library of Python. Random Forest (RF) technique reduces the variance by averaging several decision trees.

2.5.3. Gradient Boosting Decision Tree

GBDT is an ensemble-boosting integrated learning model, also known as Gradient Boosting Machine (GBM), based on greedy function approximation [45]. It uses multiclass logistic likelihood for classification. It fits a decision tree on the residual errors, due to which it is called a gradient. The GBDT classifier was implemented through the “sklearn ensemble” library of Python.

2.5.4. XGBoost

XGBoost is a widely used end-to-end tree-boosting MLA for classification. It is implemented with the “sklearn” Python package. It creates parallel tree enhancements to solve the machine learning problems such as regression, classification and ranking [46]. Here, XGBoost was implemented through the xgboost package available in Python.

2.5.5. AdaBoost

AdaBoost (Adaptive Boosting) [47], an ensemble MLA, is generally used to increase the classifier efficiency. It is an iterative approach where the classifier learns from the weak classifier’s errors, making them stronger. It applies weights to specific samples. AdaBoost was implemented here using the “sklearn ensemble” library of Python.

2.5.6. BiLSTM

Bidirectional Long Short-Term Memory (BiLSTM) [48] is a deep learning algorithm which consists of two independent Recurrent Neural Networks (RNNs) where the bidirectional run inputs in two ways, one unidirectional from past to future and the other unidirectional from future to past. BiLSTM was implemented here using the “Tensorflow.keras.layer” library of Python.

2.6. Training and Validation

The extracted and combined features with a well-labelled SWH dataset were used to train the models of the machine learning approaches (MLA). Here, 80% of the data was used for training, and the remaining 20% was used for testing the machine learning classifiers. SVM was trained using the “sklearn” library [49] of Python with the Radial Basis function (RBF) as kernel function. A grid search of parameters was carried out to find the best parameter set with which the model was developed. For training the RF model, a grid search of parameters was also performed based on which the “n_estimators” parameter was set as 20, the criterion parameter was selected as “Gini” and the rest of the parameters were kept as default. The grid search of parameters was also performed for the GBDT, XGBoost, AdaBoost and BiLSTM, and the best set of parameters was selected (Table 1). The performance of all the MLA models was validated using a ten-fold cross-validation technique [50]. The performance metrics such as accuracy, precision, F1 Score, sensitivity and area under curve-receiver operating characteristics (AUC–ROC) were calculated as an average of over the ten-folds. The formulae of accuracy, precision, sensitivity and F1 Score aregiven as follows:
Accuracy = T P + T N T P + T N + F P + F N
Precision = T P T P + F P
Sensitivity   or   Recall = T P T P + F N
F 1   Score = 2 × P r e c i s o n × R e c a l l P r e c i s i o n + R e c a l l
where TP = True Positive, TN = True Negative, FN = False Negative and FP = False Positive. Further, a test dataset was prepared from 20% of the datasets used to validate the performance of the models. Confusion matrices [51] were made with limited decision boundaries from validation results to calculate the performance metrics. The confusion matrix for multiclass classification is given in Figure 3. The accuracy estimation was carried out by both macro averaging and weighted averaging techniques, where macro averaging is a simple arithmetic mean of all metrics across classes, whereas in the weighted average method, each score is multiplied by the number of occurrences of each class and divided by the total number of samples.

2.7. Comparison with the State-of-the-art Tools

The proposed prediction model was compared with the MegaR and MetAML for the classification of microbial diversity of the metagenomic dataset. MegaR and MeAML reported RF as the best MLA in metagenomics data classification. It was also reported that the accuracy of these two RF-based machine learning classification models were 0.6683 and 0.6640, respectively. Thus, these two methods were compared with the proposed method by using their test dataset.

3. Results

3.1. The Metagenome Assembly

The assembly statistics for the contigs and scaffolds generated from the assembly of trimmed and filtered reads are given in Table 2. The metagenome data of the Delhi location was found to contain the highest number of contigs, followed by the Farakka and Kanpur locations. However, the highest number of scaffolds was observed for the metagenomic data collected from the Kanpur location, followed by Delhi and Farakka. Furthermore, the longest scaffold was also found for the Kanpur location. The average scaffold length for the Kanpur and Delhi locations was at par, whereas the average scaffold length for Farakka was between 100 to 150 bases less than that of the other two locations. The N50 parameter at Farakka and Delhi were observed to be equal, whereas the N50 for Kanpur was 18 bases lesser than that of Farakka and Delhi. The N90 parameter for all three locations was found to fall within the range of 90–100.

3.2. Diversity of Microbial Population

The microbes identified from metagenomic scaffolds were classified into cellular and non-cellular organisms. Some microbes were found explicitly in the Ganga and the Yamuna rivers independently. The microbial diversity of these two rivers is given in Table 3. Out of 162,836 scaffolds generated from the metagenomic data of the three locations, 99,819 scaffolds were found classified (~61.30%) into different microbial clusters. The remaining 63,017 scaffolds were left unclassified (~38.7%). Among the classified scaffolds, the bacterial scaffolds were the most dominated (83.36%) followed by the archaeal scaffolds (8.97%), the eukaryota scaffolds (7.21%) and the viral scaffolds (0.46%). It was observed that bacterial species such as Pseudomonas sp. and Streptomyces sp. were found to be abundant in the Ganga River at the Farakka and Kanpur locations, whereas Dechloromonas sp. and Paraburkholderia sp. were predominantly observed in the Yamuna River at the Delhi location. Further, it was also noticed that the proportion of Pseudomonas sp. and Streptomyces sp. are relatively lower at Farakka as compared to Kanpur. The archaeal species such as Natrinema sp., Nitrososphaera sp. and Cenarchaeum sp. were seen to be plenteous at the Farakka location, whereas Haloterrigena sp., Aeropyrum sp. and Haloarcula sp. were observed to be highly abundant at the Kanpur location. Though Thermococcus sp. was noticed at both the Farakka and Delhi locations, it was found to be more abundant in Delhi than the Farakka site. Other archaeal species such as Haloferax sp., Halobacterium sp. and Halogeometricum sp. were seen to be present in the Yamuna River at the Delhi location. The abundance of eukaryotic species such as Paracoccus sp., Lobosporangium sp.and Parastrongyloides sp. was noted to be higher at the Farakka location, whereas Cyclotella sp., Timema sp. and Aspergillus sp. were observed to be elevated at the Kanpur location. However, the eukaryota Gaeumannomyces sp., Phoenix sp. and Strongyloides sp. were found predominantly at the Yamuna River of Delhi. The viral species such as Variovorax sp. and Roseovarius sp. were observed to be widespread across all three sites; however, their abundance was found to be less at Farakka as compared to Kanpur and Delhi.

3.3. Binning of Metagenomic Data

Using K-Means clustering, five different clusters representing bacteria, archaea, eukaryota, viruses and others were obtained, annotated through BLAST with a cutoff similarity >99%. The clusters evaluated through silhouette plots revealed the stability of the silhouette score for five different clusters (Figure 4). The width of each silhouette plot in each cluster is a deciding factor in calculating the optimal clusters to consider. The silhouette scores for two, three, four, five and six clusters were observed to be 0.6501, 0.5826, 0.5549, 0.5424 and 0.5419, respectively. Further, the absolute differences between clusters two and three, three and four, four and five and five and six were found to be 0.0675, 0.0277, 0.0125 and 0.0005, respectively. A non-significant change is observed between the silhouette scores between five and six clusters. Therefore, five clusters were identified to be an optimal number of clusters, whereas two, three and four clusters seem to be suboptimal. The clusters were annotated based on the annotation of the individual sequences found in each cluster obtained from the BLAST results.

3.4. Performance of Machine Learning Algorithms at Different Locations

3.4.1. Overall Prediction Performance

The annotated clusters were used as the input data for training and validating the MLA models. The performance metrics of the MLAs are given in Table 4 for different locations. It was found that the accuracy of the SVM for the Delhi location is 86%, which is higher than the other two locations. The precision and recall of the SVM for Delhi are 81% and 79%, respectively, which are also higher than that of the other two locations. However, the F1 Score at the Farakka location is found to be 80% higher than the other locations. The AUC–ROC of the SVM for Delhi was observed to be 86%, which is greater than that of Farakka and Kanpur. As far as the performance of the RF is concerned, the accuracy, precision, recall and AUC–ROC values for Delhi were noticed to be 88%, 85%, 80% and 87%, respectively, which are higher than that of Farakka and Kanpur. The F1 Score of the RF for Farakka and Delhi are found to be equivalent (i.e., 80%), whereas it was a bit lower for Kanpur. The accuracy of the GBDT for Delhi was 85%, which is 5% higher than that of the Farakka and Kanpur locations. Further, the recall of the GBDT for the Kanpur location is 82%, which is higher than the recall observed for the other two locations and the highest AUC–ROC of 81% was observed at Delhi. The XGBoost performed well for Delhi, with the highest values for precision, recall and F1 Score; however, it showed the highest accuracy for Farakka and the highest AUC–ROC for Kanpur. It is noted that the accuracy of AdaBoost at Kanpur was found to be 84%, which is higher than the accuracy observed for the other two locations. However, the precision and recall were observed to be 84% and 81%, respectively, for Delhi, and the highest F1 Score was observed for the Farakka and Delhi datasets (80%). Further, the AUC–ROC of AdaBoost was found to be the highest (78%) for the Farakka dataset. The BiLSTM performed better with the Kanpur dataset with highest values for recall, F1 Score and AUC–ROC. However, the highest accuracy (81%) at Farakka and the highest precision at Farakka and Delhi (80%) were also observed.

3.4.2. Class-Wise Prediction Performance

As we have implemented a multiclass classifier to represent five different classes of microorganisms, i.e., bacteria, archaea, eukaryota, viruses and others, the MLAs were compared in terms of class-wise prediction performance (Table 5, Table 6 and Table 7) using metagenomic data from all considered locations. The SVM classifier confirmed the highest accuracy of 76% for the virus class and the highest AUC–ROC of 81% for the archaea class with the metagenomic dataset of Farakka (Table 5). In the case of Kanpur, the SVM showed the highest accuracy of 78% and AUC–ROC of 86% for the eukaryota and virus classes, respectively (Table 6). However, with the Delhi location dataset, the classifier showed the highest values for accuracy, precision, recall, F1 Score and AUC–ROC for the virus class (Table 7). The RF performed well for the virus class with the highest accuracy of 85% and the highest AUC–ROC (85%) for the bacteria and archaea classes with the Farakka dataset. RF also confirmed the highest accuracy and AUC–ROC for the virus class with both the Kanpur (80%, 87%) and Delhi (84%, 87%) datasets. The GBDT confirmed the highest values for all the considered performance metrics with the Farakka dataset and the highest accuracy (81%) and AUC–ROC value (81%) with the Delhi dataset. However, with the Kanpur dataset, it showed the highest accuracy (81%) for the virus class and the highest AUC–ROC (80%) for the archaea class.
As far as the boosting-based classifiers are concerned, the XGBoost showed the highest accuracy for the virus class (82%) and the highest AUC–ROC (75%) in predicting eukaryota with the Farakka dataset. It confirmed the highest accuracy (79%) and AUC–ROC (81%) in predicting the archaea class with the Kanpur dataset. Further, in the case of the Delhi dataset, the XGboost showed the highest accuracy (81%) for the virus class and the highest AUC–ROC (81%) for the archaea class. The AdaBoost performed well in predicting the archaea class with the Farakka dataset with an accuracy of 81% and AUC–ROC of 74%. However, it performed well for bacteria and eukaryota with the Kanpur dataset (Table 6), and for archaea, virus and eukaryota with the Delhi dataset (Table 7). The BiLSTM, a deep learning-based algorithm, exhibited the highest accuracy (82%) for eukaryota and highest AUC–ROC (75%) for the bacteria class with the Farakka dataset. However, it showed the highest values for all performance metrics in predicting the instances of the archaea class with the Kanpur dataset (Table 6) and the virus class with the Delhi dataset (Table 7).

3.5. Comparison of Different Classification Models

The performance comparison of MLAs at three different locations as a violin plot is given in Figure 5. The width and height represent the frequency of the density plot and the coverage of the maximum and minimum values of the accuracy, respectively. It is noticed that the overall accuracy, precision and AUC–ROC of the RF with Delhi dataset are highest compared to the other MLAs, irrespective of location. The ROC (Receiver Operating Characteristic) curves for the best models of the SVM, RF, GBDT, XGBoost, AdaBoost and BiLSTM are shown in Figure 6. The RF confirmed the highest AUC–ROC (87%) and highest accuracy (88%) for the Delhi location, which is also highest irrespective of location and methods. With the recall, as well as the F1 Score of 80%, the best RF model was observed for Delhi. All models were found to perform well with the Delhi dataset. The performance of the SVM follows the RF with the Delhi dataset. The RF was also found to perform suitably with the Kanpur and Farakka datasets when all performance metrics were taken into consideration. The performance metrics of the MLAs with the datasets from the considered locations implies that the RF is more suitable than the SVM, GBDT, XGBoost, AdaBoost and BiLSTM in predicting aquatic microbes.

3.6. Comparison with the State-of-the-Art Tools

MegaR and MetaML are two recent ML-based metagenomics data analysis tools available in the public domain. A comparison of our proposed model with the said tools revealed a higher accuracy of the proposed method than the abovementioned tools. It is worth mentioning that a comparison was made using a standard test dataset based on which the tools’ accuracies were reported. The reported accuracy of MegaR and MeAML were 66.83% and 66.40%, respectively, whereas the proposed method confirmed an accuracy of 88%.

4. Discussion

In metagenomics, the complex environmental genomes of several microorganisms present in a particular niche are analyzed. The metagenome provides a true representation of the microbes in a particular environment. Among the several microbial niches, the rivers are one of the major sinks of beneficial and harmful microbes. A better understanding of the microbial community helps to identify the major pollution sources from harmful microbes and their bioremediation measures to bring the pollution under control [52]. River metagenomics plays a significant role in analyzing microbial population and their diversity. It provides a deep knowledge of microbes in that stretch of river, which can cause skin and other human and animal diseases [53]. The analysis of the river metagenome was previously performed using heuristic approaches, which take much time to analyze the data. Thus, we analyzed the metagenomic datasets collected from two major river ecosystems in India at three locations. Here, we unraveled the microbial diversities in the collected samples and proposed an MLA-based method for annotating unknown samples.
The river metagenomic dataset was collected from three distinct locations with a comprehensive coverage where the sampling units are located more than a thousand kilometers apart from one another. The assembly statistics confirm suitably long N50 contigs from each location. It is observed from Table 2 that fewer numbers (9771) of scaffolds are generated for the Farakka dataset than the Delhi (69,083) and Kanpur (83,982) datasets, even though the N50 and N90 scores are nearly equal. This could be due to less microbial diversity in Farakka than in the Delhi and Kanpur locations. To validate this assumption, we carried out the αdiversity analysis using vegan R-package and represented the diversity in terms of Shanon [54] and Simpson [55] indices (Figure 7), which also shows low microbial diversity at Farraka compared to the other two locations.
Water pollution often affects the microbial diversity of the ecosystem [56]. Pollution can have significant effects on water quality through various mechanisms. According to the US Environmental Protection Agency (https://www.epa.gov/caddis-vol2/ph, accessed on 6 May 2023), certain pollutants can decrease pH levels, which can create an acidic environment that can be harmful to many aquatic organisms. Additionally, pollution can lead to the buildup of dissolved organic matter, which can cause issues such as reduced light penetration and decreased oxygen levels. This decrease in dissolved oxygen can lead to the development of hypoxic or anoxic zones, where the lack of oxygen can have a negative impact on many aquatic species. Furthermore, changes in the chemical composition of water resulting from pollution can affect the diversity and abundance of microbial communities present in the water. These changes can have a cascading effect on the entire aquatic ecosystem, potentially leading to long-term ecological damage. The difference in microbial diversity between Farakka and Delhi/Kanpur could be due to the impact of pollution in these two cities. It is also worth mentioning here that several kinds of leather, thermal and manufacturing industries are present in Kanpur and Delhi, which discharge industrial waste into the rivers, contributing significantly to the water pollution [57,58]. Further, Delhi and its peripheries such as Faridabad and Ghaziabad are also designated as the most polluted cities in the world [59]. The BLAST-based identification of microbes provided a bird’s eye view of microbial diversity in the collected river metagenomic samples. Based on the geographical and environmental conditions, varied microbial diversity was observed at different locations (Table 3). We also observed several microbial genera to be uniquely present at specific locations. Further, the abundance of bacteria at each site was found to be higher as compared to the other classes of microbes. This could also be due to the pollution level in the considered river ecosystems as the bacterial diversity in an aquatic ecosystem is often related to its pollution level [60]. Thus, the microbial diversity in the river ecosystems should be identified and analyzed to take protective measures in improving the health of aquatic animals. The correct identification of microbial diversity also provides information on the water quality, its fitness for agriculture and the pollution status of the river ecosystem. Thus, NGS techniques, along with suitable computational algorithms, are required for developing efficient prediction systems for identifying a correct microbial class from a metagenomic sample. Several clustering and machine learning techniques were applied for metagenomic data analysis [61]. Here, we implemented K-Means clustering for grouping metagenomic scaffolds into five different microbial classes. The classified contigs were used to train various machine learning algorithms to find out the best prediction model that can correctly identify the microbial diversity. We implemented the SVM, RF, GBDT, XGBoost, AdaBoost and BiLSTM for this purpose, and we found that the RF performs consistently well with an acceptable accuracy (88%) irrespective of the location.
The overall accuracies were evaluated by calculating the weighted means of all five classes’ accuracies. However, the tradeoff between the precision, recall, F1 Score and AUC–ROC curve varied from class to class and location to location. Most of the methods were found to perform well with the Delhi location dataset compared to Farakka and Kanpur. This is expected due to the high data quality of Delhi in terms of N50, N90, average scaffold length and the number of scaffolds (Table 2). The RF also performed better, with an accuracy of 88% for the Delhi dataset, which is the highest irrespective of location and method. The violin plot presented in Figure 5 also indicates a consistent accuracy of the RF at different locations with minimal variance in the accuracy. The SVM showed a high variance in the accuracy with the Delhi dataset, whereas the GBDT showed the least deviation. However, the GBDT showed a high variance in the accuracy with the Kanpur dataset. Further, the XGBoost, AdaBoost and BiLSTM showed a high variance in the accuracy with the Farakka dataset, and AdaBoost also showed a high variance with the Kanpur dataset. Further, the RF also confirmed higher performance values of AUC–ROC for all location datasets. Thus, the level of accuracy and consistency of accuracy of the RF in classifying microbial diversity from river metagenomic data suggests that the RF with the considered set of parameters (Table 1) can be a suitable prediction model for correctly classifying the contigs or scaffolds generated from metagenomic samples.

5. Conclusions

Metagenomics is a broader field to identify microbial ecology. It plays a significant role in the field of metagenomic research and the industrial community. The experimental identification and characterization of microbes from their niche impact the lives of humans, plants and animals. However, the process is cumbersome, time- and money-consuming. In contrast, computational approaches being complementary to experimental methods allow for the faster characterization and annotation of river microbiome in a particular niche. With the advancement of NGS and machine learning technologies, metagenomic analyses have become easy and convenient. In this study, the role of K-Means clustering for initial binning of the metagenomic scaffolds was explored. Approximately 61% of metagenomic scaffolds from three locations were classified into different microbial clusters. Further, a Random Forest-based classifier with a suitable set of parameterswas proposed for identifying the unknown microbial genus from a metagenomic sample, which is made publicly available at (https://github.com/Nalinikanta7/metagenomics).The proposed model is expected to help the researchers and related stockholders to identify the type of microbes present in a river ecosystem, which, in turn, will help in analyzing the water quality and aquatic health. Accordingly, preventive measures can be taken by the concerned organizations to ensure suitable quality of water for the aquatic health, agriculture and animal health dependent on the river ecosystem.

Supplementary Materials

The following supporting information can be downloaded at https://www.mdpi.com/article/10.3390/genes14051082/s1, Table S1: Comparison of different machine learning algorithms used in this study.

Author Contributions

N.C. and T.K.S., analysis and interpretation of the data, drafting the paper, review and editing; A.R.R., conception and design, revising critically for intellectual content; A.K.R. and B.K.B., data collection, review and editing. All authors have read and agreed to the published version of the manuscript.

Funding

N.C. is grateful to the Post Graduate School, ICAR-Indian Agricultural Research Institute, New Delhi, for providing financial assistance. All authors acknowledge the grant for CABin Scheme Network Project on Agricultural Bioinformatics and Computational Biology (F.No. Agril.Edn.14/2/2017-A&P dated 2 August 2017), received from the Indian Council of Agricultural Research, New Delhi.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The metagenomic sequences used in this study were submitted to the NCBI-SRA database under the following accession nos.: SRP190174, SRP190175, SRP189880, SRP191076, SRP191079, SRP191075, SRP191073, SRP191080 and SRP191499for three Kanpur samples (KAN-1, KAN-2, KAN-3), three Farakka samples (FAR-1, FAR-2, FAR-3) and three New Delhi samples (ND-1, ND-2, ND-3), respectively.

Acknowledgments

All authors acknowledge the Director of the ICAR-Indian Agricultural Statistics Research Institute (IASRI), New Delhi and the Head of the Centre for Agricultural Bioinformatics, ICAR-IASRI, New Delhi for providing computational facilities for conducting the research.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Cullen, C.M.; Aneja, K.K.; Beyhan, S.; Cho, C.E.; Woloszynek, S.; Convertino, M.; McCoy, S.J.; Zhang, Y.; Anderson, M.Z.; Alvarez-Ponce, D.; et al. Emerging Priorities for Microbiome Research. Front. Microbiol. 2020, 11, 136. [Google Scholar] [CrossRef] [PubMed]
  2. Sharma, S.P.; Ghazi, M.G.; Katdare, S.; Dasgupta, N.; Mondol, S.; Gupta, S.K.; Hussain, S.A. Microsatellite Analysis Reveals Low Genetic Diversity in Managed Populations of the Critically Endangered Gharial (Gavialis Gangeticus) in India. Sci. Rep. 2021, 11, 5627. [Google Scholar] [CrossRef] [PubMed]
  3. Ghurye, J.S.; Cepeda-Espinoza, V.; Pop, M. Focus: Microbiome: Metagenomic Assembly: Overview, Challenges and Applications. Yale J. Biol. Med. 2016, 89, 353. [Google Scholar] [PubMed]
  4. Handelsman, J. Metagenomics: Application of Genomics to Uncultured Microorganisms. Microbiol. Mol. Biol. Rev. 2005, 69, 195. [Google Scholar] [CrossRef]
  5. Strous, M.; Kraft, B.; Bisdorf, R.; Tegetmeyer, H.E. The Binning of Metagenomic Contigs for Microbial Physiology of Mixed Cultures. Front. Microbiol. 2012, 3, 410. [Google Scholar] [CrossRef]
  6. Wu, Y.W.; Ye, Y. A novel abundance-based algorithm for binning metagenomic sequences using l-tuples. J. Comput. Biol. 2011, 18, 523–534. [Google Scholar] [CrossRef]
  7. Mavromatis, K.; Ivanova, N.; Barry, K.; Shapiro, H.; Goltsman, E.; McHardy, A.C.; Kyrpides, N.C. Use of simulated data sets to evaluate the fidelity of metagenomic processing methods. Nat. Methods 2007, 4, 495–500. [Google Scholar] [CrossRef]
  8. Huson, D.H.; Auch, A.F.; Qi, J.; Schuster, S.C. MEGAN Analysis of Metagenomic Data. Genome Res. 2007, 17, 377–386. [Google Scholar] [CrossRef]
  9. McHardy, A.C.; Martín, H.G.; Tsirigos, A.; Hugenholtz, P.; Rigoutsos, I. Accurate Phylogenetic Classification of Variable-Length DNA Fragments. Nat. Methods 2007, 4, 63–72. [Google Scholar] [CrossRef]
  10. Altschul, S.F.; Madden, T.L.; Schäffer, A.A.; Zhang, J.; Zhang, Z.; Miller, W.; Lipman, D.J. Gapped BLAST and PSI-BLAST: A New Generation of Protein Database Search Programs. Nucleic Acids Res. 1997, 25, 3389–3402. [Google Scholar] [CrossRef]
  11. Camacho, C.; Coulouris, G.; Avagyan, V.; Ma, N.; Papadopoulos, J.; Bealer, K.; Madden, T.L. BLAST+: Architecture and Applications. BMC Bioinform. 2009, 10, 421. [Google Scholar] [CrossRef]
  12. Reddy, R.M.; Mohammed, M.H.; Mande, S.S. MetaCAA: A Clustering-Aided Methodology for Efficient Assembly of Metagenomic Datasets. Genomics 2014, 103, 161–168. [Google Scholar] [CrossRef] [PubMed]
  13. Abe, T.; Kanaya, S.; Kinouchi, M.; Ichiba, Y.; Kozuki, T.; Ikemura, T. Informatics for Unveiling Hidden Genome Signatures. Genome Res. 2003, 13, 693–702. [Google Scholar] [CrossRef] [PubMed]
  14. Dhungel, E.; Mreyoud, Y.; Gwak, H.J.; Rajeh, A.; Rho, M.; Ahn, T.H. MegaR: An Interactive R Package for Rapid Sample Classification and Phenotype Prediction Using Metagenome Profiles and Machine Learning. BMC Bioinform. 2021, 22, 25. [Google Scholar] [CrossRef] [PubMed]
  15. Pasolli, E.; Truong, D.T.; Malik, F.; Waldron, L.; Segata, N. Machine Learning Meta-Analysis of Large Metagenomic Datasets: Tools and Biological Insights. PLoS Comput. Biol. 2016, 12, e1004977. [Google Scholar] [CrossRef] [PubMed]
  16. Behera, B.K.; Patra, B.; Chakraborty, H.J.; Sahu, P.; Rout, A.K.; Sarkar, D.J.; Parida, P.K.; Raman, R.K.; Rao, A.R.; Rai, A.; et al. Metagenome Analysis from the Sediment of River Ganga and Yamuna: In Search of Beneficial Microbiome. PLoS ONE 2020, 15, e0239594. [Google Scholar] [CrossRef]
  17. Sahu, N.; Deori, M.; Ghosh, I. Metagenomics Study of Contaminated Sediments from the Yamuna River at Kalindi Kunj, Delhi, India. Genome Announc. 2018, 6, e01379-17. [Google Scholar] [CrossRef]
  18. Behera, B.K.; Chakraborty, H.J.; Patra, B.; Rout, A.K.; Dehury, B.; Das, B.K.; Sarkar, D.J.; Parida, P.K.; Raman, R.K.; Rao, A.R.; et al. Metagenomic Analysis Reveals Bacterial and Fungal Diversity and Their Bioremediation Potential from Sediments of River Ganga and Yamuna in India. Front. Microbiol. 2020, 11, 2531. [Google Scholar] [CrossRef]
  19. Samson, R.; Shah, M.; Yadav, R.; Sarode, P.; Rajput, V.; Dastager, S.G.; Dharne, M.S.; Khairnar, K. Metagenomic Insights to Understand Transient Influence of Yamuna River on Taxonomic and Functional Aspects of Bacterial and Archaeal Communities of River Ganges. Sci. Total Environ. 2019, 674, 288–299. [Google Scholar] [CrossRef]
  20. Menzel, P.; Ng, K.L.; Krogh, A. Fast and Sensitive Taxonomic Classification for Metagenomics with Kaiju. Nat. Commun. 2016, 7, 11257. [Google Scholar] [CrossRef]
  21. Ghannam, R.B.; Techtmann, S.M. Machine Learning Applications in Microbial Ecology, Human Microbiome Studies, and Environmental Monitoring. Comput. Struct. Biotechnol. J. 2021, 19, 1092–1107. [Google Scholar] [CrossRef] [PubMed]
  22. McCoy, R.C.; Taylor, R.W.; Blauwkamp, T.A.; Kelley, J.L.; Kertesz, M.; Pushkarev, D.; Petrov, D.A.; Fiston-Lavier, A.S. Illumina TruSeq Synthetic Long-Reads Empower de Novo Assembly and Resolve Complex, Highly-Repetitive Transposable Elements. PLoS ONE 2014, 9, e106689. [Google Scholar] [CrossRef]
  23. FastQC: A Quality Control Tool for High Throughput Sequence Data—ScienceOpen. Available online: https://www.scienceopen.com/document?vid=de674375-ab83-4595-afa9-4c8aa9e4e736 (accessed on 6 August 2022).
  24. Bolger, A.M.; Lohse, M.; Usadel, B. Trimmomatic: A Flexible Trimmer for Illumina Sequence Data. Bioinformatics 2014, 30, 2114–2120. [Google Scholar] [CrossRef]
  25. Luo, R.; Liu, B.; Xie, Y.; Li, Z.; Huang, W.; Yuan, J.; He, G.; Chen, Y.; Pan, Q.; Liu, Y.; et al. SOAPdenovo2: An Empirically Improved Memory-Efficient Short-Read de Novo Assembler. Gigascience 2012, 1, 18. [Google Scholar] [CrossRef] [PubMed]
  26. Sayers, E.W.; Cavanaugh, M.; Clark, K.; Pruitt, K.D.; Schoch, C.L.; Sherry, S.T.; Karsch-Mizrachi, I. GenBank. Nucleic Acids Res. 2021, 49, D92–D96. [Google Scholar] [CrossRef]
  27. Altschul, S.F.; Gish, W.; Miller, W.; Myers, E.W.; Lipman, D.J. Basic Local Alignment Search Tool. J. Mol. Biol. 1990, 215, 403–410. [Google Scholar] [CrossRef] [PubMed]
  28. Li, H. Using the BioSeqClass Package; Shanghai Institutes for Biological Sciences: Shanghai, China, 2017. [Google Scholar]
  29. Keck, F. Handling Biological Sequences in R with the Bioseq Package. Methods Ecol. Evol. 2020, 11, 1728–1732. [Google Scholar] [CrossRef]
  30. Charif, D.; Lobry, J.R. SeqinR 1.0-2: A Contributed Package to the R Project for Statistical Computing Devoted to Biological Sequences Retrieval and Analysis. In Structural Approaches to Sequence Evolution: Molecules, Networks, Populations, 207–232; Springer: Berlin/Heidelberg, Germany, 2007. [Google Scholar] [CrossRef]
  31. Biostrings: Efficient Manipulation of Biological Strings Version 2.58.0 from Bioconductor. Available online: https://rdrr.io/bioc/Biostrings/ (accessed on 6 August 2022).
  32. Cai, C.Z.; Han, L.Y.; Ji, Z.L.; Chen, X.; Chen, Y.Z. SVM-Prot: Web-Based Support Vector Machine Software for Functional Classification of a Protein from Its Primary Sequence. Nucleic Acids Res. 2003, 31, 3692–3697. [Google Scholar] [CrossRef]
  33. Yu, C.-S.; Lin, C.-J.; Hwang, J.-K. Predicting Subcellular Localization of Proteins for Gram-Negative Bacteria by Support Vector Machines Based on n-Peptide Compositions. Protein Sci. 2004, 13, 1402–1406. [Google Scholar] [CrossRef]
  34. Yu, C.S.; Chen, Y.C.; Lu, C.H.; Hwang, J.K. Prediction of Protein Subcellular Localization. Proteins 2006, 64, 643–651. [Google Scholar] [CrossRef]
  35. Chen, Y.Z.; Tang, Y.R.; Sheng, Z.Y.; Zhang, Z. Prediction of Mucin-Type O-Glycosylation Sites in Mammalian Proteins Using the Composition of k-Spaced Amino Acid Pairs. BMC Bioinform. 2008, 9, 101. [Google Scholar] [CrossRef] [PubMed]
  36. Team, R.C. A Language and Environment for Statistical Computing. R Foundation for Statistical Computing, Vienna, Austria; Scientific Research Publishing: Wuhan, China, 2013; Available online: https://www.scirp.org/(S(i43dyn45teexjx455qlt3d2q))/reference/ReferencesPapers.aspx?ReferenceID=1778705 (accessed on 6 August 2022).
  37. Dokmanic, I.; Parhizkar, R.; Ranieri, J.; Vetterli, M. Euclidean distance matrices: Essential theory, algorithms, and applications. IEEE Signal Process. Mag. 2015, 32, 12–30. [Google Scholar] [CrossRef]
  38. Shahapure, K.R.; Nicholas, C. Cluster Quality Analysis Using Silhouette score. In Proceedings of the 2020 IEEE 7th International Conference on Data Science and Advanced Analytics (DSAA), Sydney, Australia, 6–9 October 2020; p. 747. [Google Scholar]
  39. Boser, B.E.; Guyon, I.M.; Vapnik, V.N. A Training Algorithm for Optimal Margin Classifiers. In Proceedings of the Fifth Annual Workshop on Computational Learning Theory-COLT ‘92, Pittsburgh, PA, USA, 27–29 July 1992. [Google Scholar] [CrossRef]
  40. Vapnik, V.N. The Nature of Statistical Learning Theory; Springer Science and Business Media LLC: New York, NY, USA, 2000. [Google Scholar] [CrossRef]
  41. Pedregosa, F.; Varoquaux, G.; Gramfort, A.; Michel, V.; Thirion, B.; Grisel, O.; Blondel, M.; Prettenhofer, P.; Weiss, R.; Dubourg, V.; et al. Scikit-Learn: Machine Learning in Python. J. Mach. Learn. Res. 2011, 12, 2825–2830. [Google Scholar]
  42. Breiman, L. Bagging Predictors. Mach. Learn. 1996, 24, 123–140. [Google Scholar] [CrossRef]
  43. Breiman, L. Random Forests. Mach. Learn. 2001, 45, 5–32. [Google Scholar] [CrossRef]
  44. Ho, T.K. Random Decision Forest. In Proceedings of the 3rd International Conference on Document Analysis and Recognition, Montreal, QC, Canada, 14–16 August 1995; References-Scientific Research Publishing: Wuhan, China, 1995; pp. 278–282. Available online: https://www.scirp.org/(S(i43dyn45teexjx455qlt3d2q))/reference/ReferencesPapers.aspx?ReferenceID=1698778 (accessed on 6 August 2022).
  45. Friedman, J.H. Greedy Function Approximation: A Gradient Boosting Machine. Ann. Statist. 2001, 29, 1189–1232. [Google Scholar] [CrossRef]
  46. Chen, T.; Guestrin, C. XGBoost: A Scalable Tree Boosting System. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, San Francisco, CA, USA, 13–17 August 2016; pp. 785–794. [Google Scholar] [CrossRef]
  47. Freund, Y.; Schapire, R.E. A Decision-Theoretic Generalization of On-Line Learning and an Application to Boosting. J. Comput. Syst. Sci. 1997, 55, 119–139. [Google Scholar] [CrossRef]
  48. Aziz Sharfuddin, A.; Nafis Tihami, M.; Saiful Islam, M. A Deep Recurrent Neural Network with BiLSTM Model for Sentiment Classification. In Proceedings of the 2018 International Conference on Bangla Speech and Language Processing, Sylhet, Bangladesh, 21–22 September 2018. [Google Scholar] [CrossRef]
  49. Feurer, M.; Klein, A.; Eggensperger, K.; Springenberg, J.T.; Blum, M.; Hutter, F. Auto-Sklearn: Efficient and Robust Automated Machine Learning. In Automated Machine Learning; The Springer Series on Challenges in Machine Learning; Springer: Cham, Switzerland, 2019; pp. 113–134. [Google Scholar] [CrossRef]
  50. Brownlee, J. A Gentle Introduction to K-Fold Cross-Validation. Available online: https://machinelearningmastery.com/k-fold-cross-validation/ (accessed on 6 August 2022).
  51. Kohavi, R.; Provost, F. Glossary of Terms. Machine Learning—Special Issue on Applications of Machine Learning and the Knowledge Discovery Process. Mach. Learn. 1998, 30, 271–274. Available online: https://www.scirp.org/(S(czeh2tfqyw2orz553k1w0r45))/reference/ReferencesPapers.aspx?ReferenceID=2264480 (accessed on 11 August 2022).
  52. Chandran, H.; Meena, M.; Sharma, K. Microbial Biodiversity and Bioremediation Assessment Through Omics Approaches. Front. Environ. Chem. 2020, 1, 570326. [Google Scholar] [CrossRef]
  53. Trinh, P.; Zaneveld, J.R.; Safranek, S.; Rabinowitz, P.M. One Health Relationships Between Human, Animal, and Environmental Microbiomes: A Mini-Review. Front. Public Health 2018, 6, 235. [Google Scholar] [CrossRef]
  54. Shannon, C.E. A mathematical theory of communication. Bell Syst. Tech. J. 1948, 27, 379–423. [Google Scholar] [CrossRef]
  55. Simpson, E.H. Measurement of diversity. Nature 1949, 163, 688. [Google Scholar] [CrossRef]
  56. Köchling, T.; Sanz, J.L.; Galdino, L.; Florencio, L.; Kato, M.T. Impact of Pollution on the Microbial Diversity of a Tropical River in an Urbanized Region of Northeastern Brazil. Int. Microbiol. 2017, 20, 11–24. [Google Scholar] [CrossRef]
  57. Katiyar, S. Impact of Tannery Effluent with Special Reference to Seasonal Variation on Physico-Chemical Characteristics of River Water at Kanpur (U.P), India. J. Environ. Anal. Toxicol. 2011, 1, 4. [Google Scholar] [CrossRef]
  58. Chowdhury, M.; Mostafa, M.G.; Biswas, T.K.; Mandal, A.; Saha, A.K. Characterization of the Effluents from Leather Processing Industries. Environ. Process. 2015, 2, 173–187. [Google Scholar] [CrossRef]
  59. Fitzgerald, M.; Moses, L.; Kawano, A. At the Cross Roads. Ed. Publ. 2003, 136, 1–35. [Google Scholar] [CrossRef]
  60. Wang, J.; Fan, H.; He, X.; Zhang, F.; Xiao, J.; Yan, Z.; Feng, J.; Li, R. Response of Bacterial Communities to Variation in Water Quality and Physicochemical Conditions in a River-Reservoir System. Glob. Ecol. Conserv. 2021, 27, e01541. [Google Scholar] [CrossRef]
  61. Oulas, A.; Pavloudi, C.; Polymenakou, P.; Pavlopoulos, G.A.; Papanikolaou, N.; Kotoulas, G.; Arvanitidis, C.; Iliopoulos, I. Metagenomics: Tools and Insights for Analyzing next-Generation Sequencing Data Derived from Biodiversity Studies. Bioinform. Biol. Insights 2015, 9, 75–88. [Google Scholar] [CrossRef]
Figure 1. Preprocessing steps for metagenomic samples collected from Delhi, Kanpur and Farakka locations.
Figure 1. Preprocessing steps for metagenomic samples collected from Delhi, Kanpur and Farakka locations.
Genes 14 01082 g001
Figure 2. Flow chart showing the steps of iterative K-Means algorithm followed to cluster the contigs generated from the collected metagenomic samples.
Figure 2. Flow chart showing the steps of iterative K-Means algorithm followed to cluster the contigs generated from the collected metagenomic samples.
Genes 14 01082 g002
Figure 3. The confusion matrix for multiclass classification.TP: truly predicted into positive class, TN: truly predicted into negative class, FP: falsely predicted into positive class and FN: falsely predicted into negative class.
Figure 3. The confusion matrix for multiclass classification.TP: truly predicted into positive class, TN: truly predicted into negative class, FP: falsely predicted into positive class and FN: falsely predicted into negative class.
Genes 14 01082 g003
Figure 4. The Silhouette plot for the putative number of clusters.
Figure 4. The Silhouette plot for the putative number of clusters.
Genes 14 01082 g004
Figure 5. Violin plot showing accuracy of SVM, RF, GBDT, XGBoost, AdaBoost and BiLSTM at three different locations.
Figure 5. Violin plot showing accuracy of SVM, RF, GBDT, XGBoost, AdaBoost and BiLSTM at three different locations.
Genes 14 01082 g005
Figure 6. ROC curves for SVM, RF, GBDT, XGBoost, AdaBoost and BiLSTM of five different classes of microbes such as bacteria, archaea, eukaryota, fungi, viruses and other microbes represented as classes 0–4, respectively.
Figure 6. ROC curves for SVM, RF, GBDT, XGBoost, AdaBoost and BiLSTM of five different classes of microbes such as bacteria, archaea, eukaryota, fungi, viruses and other microbes represented as classes 0–4, respectively.
Genes 14 01082 g006
Figure 7. Box plots illustrating α diversity indices (Shannon diversity, Simpson index) for the samples collected from Kanpur, Farakka, and Delhi locations. A lower Shannon index and higher Simpson index represents low diversity.
Figure 7. Box plots illustrating α diversity indices (Shannon diversity, Simpson index) for the samples collected from Kanpur, Farakka, and Delhi locations. A lower Shannon index and higher Simpson index represents low diversity.
Genes 14 01082 g007
Table 1. Parameters of machine learning algorithms used after a grid search for the best set of parameters.
Table 1. Parameters of machine learning algorithms used after a grid search for the best set of parameters.
ClassifiersParameters
SVMC = 10, gamma = 0.001, kernel = ‘rbf’
RFmax_depth = 25, min_samples_leaf = 2, n_estimators = 25, random_state = 42
GBDTn_splits = 10, n_repeats = 3, random_state = 1
XGBoostlearning_rate = 0.2, n_estimators = 1000, max_depth = 4,min_child_weight = 6, gamma = 0, subsample = 0.8, colsample_bytree = 0.8, objective = ‘binary:logistic’,nthread = 4, scale_pos_weight = 1, seed = 27
AdaBoostlearning_rate = 0.1, n_estimators=100
BiLSTMLayer (type)Output ShapeParam
bidirectional (Bidirectional)(None, 30, 128)164,864
bidirectional_1 (Bidirectional)(None, 128)98,816
dense (Dense)(None, 1)129
Total params: 263,809 Trainable params: 263,809 Non-trainable params: 0
Table 2. The metagenomic assembly statistics for three locations obtained using SoapDenovo2.
Table 2. The metagenomic assembly statistics for three locations obtained using SoapDenovo2.
ParametersFarakkaKanpurDelhi
No. of raw reads111,809,84198,019,576195,606,736
No. of trimmed reads108,526,82296,309,665192,296,837
Number of scaffolds977183,98269,083
Number of contigs44,132,56318,200,98354,832,125
Total scaffold length(bp)4,232,65049,399,58336,990,293
Average scaffold length433588535
Longest scaffold (bp)385974275265
N50128110128
N90959196
Table 3. The microbial diversity showing the abundance of major microbial genus in the Ganga and Yamuna rivers at three different locations.
Table 3. The microbial diversity showing the abundance of major microbial genus in the Ganga and Yamuna rivers at three different locations.
Microbial DiversityGangaYamuna
FarakkaKanpurDelhi
CellularBacteriaStreptomyces(400),
Pseudomonas(180),
Sphingomonas(180),
Bradyrhizobium(140),
Burkholderia(130),
Azospirillum(100)
Pseudomonas(2980),
Streptomyces(2910),
Burkholderia(1370),
Sphingomonas(1320),
Bradyrhizobium(1280)
Dechloromonas(3095),
Paraburkholderia(2047),
Streptomyces(2012),
Achromobacter(1359),
Acidobacteria(1125),
Aeoliella(1063)
ArchaeaNatrinema (258),
Nitrososphaera(197),
Cenarchaeum(125),
Thermococcus(95),
Salinigranum(54)
Haloterrigena (395),
Aeropyrum (187),
Haloarcula(135),
Methanothrix(123)
Thermococcus(348),
Haloferax(295),
Halobacterium(181),
Halogeometricum(126)
EukaryotaParacoccus(147),
Lobosporangium(159),
Parastrongyloides(57),
Emiliania(38)
Cyclotella(356),
Timema(329),
Aspergillus(259)
Gaeumannomyces(124),
Phoenix(98),
Strongyloides(56)
Non-cellularVirusVariovorax(45),
Roseovarius(21)
Variovorax(347),
Roseovarius(321)
Roseovarius(124),
Variovorax(119)
Table 4. The overall performance metrics of machine learning algorithms in classifying the microbial diversity in the river metagenomic samples.
Table 4. The overall performance metrics of machine learning algorithms in classifying the microbial diversity in the river metagenomic samples.
ClassifiersDataset (Location)AccuracyPrecisionRecallF1 ScoreAUC–ROC
SVMFarakka0.760.800.750.800.81
Kanpur0.780.780.780.780.83
Delhi0.860.810.790.790.86
RFFarakka0.850.830.760.800.85
Kanpur0.840.790.790.790.80
Delhi0.880.850.800.800.87
GBDTFarakka0.800.800.780.800.79
Kanpur0.800.800.820.790.80
Delhi0.850.810.790.800.81
XGBoostFarakka0.850.790.770.790.75
Kanpur0.790.760.730.790.81
Delhi0.800.830.790.800.79
AdaBoostFarakka0.770.780.770.800.78
Kanpur0.790.780.790.770.74
Delhi0.800.840.810.800.77
BiLSTMFarakka0.810.800.750.790.75
Kanpur0.750.790.800.800.79
Delhi0.790.800.780.780.76
Table 5. The class-wise performance metrics of machine learning algorithms in classifying the microbial diversity in the river metagenomic sample collected from Farakka.
Table 5. The class-wise performance metrics of machine learning algorithms in classifying the microbial diversity in the river metagenomic sample collected from Farakka.
ClassifiersMulticlassAccuracyPrecisionRecallF1 ScoreAUC–ROC
SVMBacteria0.750.800.750.790.74
Archaea0.580.780.760.780.72
Eukaryota0.650.750.710.690.81
Virus0.760.800.750.800.80
Others0.660.760.740.800.78
RFBacteria0.700.760.680.800.85
Archaea0.720.720.760.790.85
Eukaryota0.690.780.620.780.72
Virus0.850.830.770.800.80
Others0.680.710.770.790.75
GBDTBacteria0.690.800.780.800.59
Archaea0.580.680.820.790.68
Eukaryota0.740.780.760.780.72
Virus0.800.800.780.800.79
Others0.770.760.740.800.78
XGBoostBacteria0.720.790.770.790.75
Archaea0.790.760.730.690.61
Eukaryota0.690.680.780.800.75
Virus0.820.790.770.790.75
Others0.740.780.760.780.52
AdaBoostBacteria0.770.780.770.800.78
Archaea0.610.780.790.770.64
Eukaryota0.690.750.650.770.78
Virus0.710.840.810.800.67
Others0.740.780.760.780.52
BiLSTMBacteria0.520.800.750.790.75
Archaea0.750.790.750.710.72
Eukaryota0.820.780.770.790.70
Virus0.790.800.780.780.71
Others0.640.790.650.790.74
Table 6. The class-wise performance metrics of machine learning algorithms in classifying the microbial diversity in the river metagenomic sample collected from Kanpur.
Table 6. The class-wise performance metrics of machine learning algorithms in classifying the microbial diversity in the river metagenomic sample collected from Kanpur.
ClassifiersMulticlassAccuracyPrecisionRecallF1 ScoreAUC–ROC
SVMBacteria0.790.810.750.800.74
Archaea0.740.780.760.780.72
Eukaryota0.780.750.710.690.80
Virus0.780.780.780.790.86
Others0.770.760.740.800.78
RFBacteria0.780.760.760.780.85
Archaea0.710.790.710.790.80
Eukaryota0.740.780.760.780.72
Virus0.800.700.690.730.87
Others0.700.790.730.710.75
GBDTBacteria0.690.800.780.780.79
Archaea0.750.800.820.790.80
Eukaryota0.740.780.760.780.72
Virus0.810.800.790.700.78
Others0.770.760.740.720.78
XGBoostBacteria0.720.750.690.790.75
Archaea0.790.760.730.790.81
Eukaryota0.690.680.730.790.79
Virus0.780.630.710.700.79
Others0.740.710.590.720.72
AdaBoostBacteria0.770.780.770.710.71
Archaea0.810.780.790.770.74
Eukaryota0.690.750.650.770.70
Virus0.800.780.780.750.69
Others0.740.780.760.700.72
BiLSTMBacteria0.620.680.750.790.75
Archaea0.750.790.800.800.79
Eukaryota0.710.780.770.800.78
Virus0.730.770.780.780.76
Others0.640.720.650.790.74
Table 7. The class-wise performance metrics of machine learning algorithms in classifying the microbial diversity in the river metagenomic sample collected from Delhi.
Table 7. The class-wise performance metrics of machine learning algorithms in classifying the microbial diversity in the river metagenomic sample collected from Delhi.
ClassifiersMulticlassAccuracyPrecisionRecallF1 ScoreAUC–ROC
SVMBacteria0.710.800.750.790.74
Archaea0.740.780.760.780.72
Eukaryota0.800.750.710.690.80
Virus0.820.810.790.790.86
Others0.770.760.740.800.78
RFBacteria0.780.760.760.800.85
Archaea0.800.790.790.790.80
Eukaryota0.740.780.760.780.72
Virus0.840.850.780.800.87
Others0.820.790.770.790.75
GBDTBacteria0.690.800.780.700.79
Archaea0.550.800.820.790.80
Eukaryota0.740.780.760.780.72
Virus0.810.810.790.800.81
Others0.770.760.740.800.78
XGBoostBacteria0.720.790.770.790.75
Archaea0.790.760.730.790.81
Eukaryota0.690.800.780.800.79
Virus0.810.830.790.800.79
Others0.740.780.760.780.72
AdaBoostBacteria0.770.780.770.800.78
Archaea0.800.780.790.770.74
Eukaryota0.690.750.650.770.79
Virus0.800.840.810.800.77
Others0.740.780.760.780.72
BiLSTMBacteria0.780.800.750.720.75
Archaea0.750.790.780.780.72
Eukaryota0.770.780.770.780.76
Virus0.790.800.780.780.76
Others0.640.790.650.750.70
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Choudhury, N.; Sahu, T.K.; Rao, A.R.; Rout, A.K.; Behera, B.K. An Improved Machine Learning-Based Approach to Assess the Microbial Diversity in Major North Indian River Ecosystems. Genes 2023, 14, 1082. https://doi.org/10.3390/genes14051082

AMA Style

Choudhury N, Sahu TK, Rao AR, Rout AK, Behera BK. An Improved Machine Learning-Based Approach to Assess the Microbial Diversity in Major North Indian River Ecosystems. Genes. 2023; 14(5):1082. https://doi.org/10.3390/genes14051082

Chicago/Turabian Style

Choudhury, Nalinikanta, Tanmaya Kumar Sahu, Atmakuri Ramakrishna Rao, Ajaya Kumar Rout, and Bijay Kumar Behera. 2023. "An Improved Machine Learning-Based Approach to Assess the Microbial Diversity in Major North Indian River Ecosystems" Genes 14, no. 5: 1082. https://doi.org/10.3390/genes14051082

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop