Deep learning-based production assists water quality warning system for reverse osmosis plants

Classifying water quality irregularities in reverse osmosis (RO) production plants requires suitable systems to provide intelligent warnings to the operators or supervisors who are engaged in executing corrective procedures applicable to production. The suggested deep learning methods are of utmost importance to identify at once variations in water quality irregularities in plants through competent classi ﬁ cation methods, thereby enabling a reduction of burden for operators. In this paper, two types of LSTM-CNN based classi ﬁ cation techniques are suggested to classify water quality features temporally into grades based on corrective actions that classify irre-gularity conditions of water quality on the basis of corrections. Distinct control methods are used for experiment to ﬁ nd water quality irregularities from variables, namely, pH, TDS, ORP, and EC, which aim to assist the production line. This proposed method enables automatic diagnosis and warning system about water quality in RO plants. For classi ﬁ cation, LSTM-CNN was trained with data recorded from eight plants of west and north parts of Chennai region. This research is meant to demonstrate particularly the top-level classi ﬁ cation job for quality alerts. The features obtained from 4,096 time series array data using LSTM-CNNs achieved sensitivity to 97% and accuracy to 98%.


INTRODUCTION
Controlling the water quality continuously in reverse osmosis (RO) production plants and the necessary timely corrective action to improve or maintain the water quality during processes is a major realtime problem. Many production plants quite commonly use measuring instruments to monitor water quality physicochemical parameters and warn about adverse variations so as to perform instantly corrective actions in real time. Without a proper warning system, the remedial actions may get delayed. This may lead to operators carrying out inappropriate actions. From just a display of the water quality parameters by instruments, some new or inexperienced operators may find it hard to interpret their values instantly and to perform suggested corrective measures quickly. Thus, water quality monitoring in real time requires more interpretation instead of just the values of physicochemical parameters like pH, electrical conductivity (EC), oxidation-reduction potential (ORP), and total dissolved solids (TDS).
Presently, many advanced ideas are proposed in designing advance automatic control methods of water quality (Zemouri 2003). In this regard, deep learning techniques are used as a useful mechanism to assist production operators in their decision-making to derive more intelligible solutions from crude values of the parameters displayed by the instruments. The fundamental idea behind this is that the measured values of water quality, which are directly simple, are to be processed into judicious and realistic information to carry out necessary corrective actions in real time. This too permits one to use the inexperienced or new operators in production. Customarily, for the water quality that is associated with numerical values, now, a meaningful qualitative interpretation system is suggested. This qualitative supported interpretation enables easier corrective actions on water quality in production using artificial intelligence algorithms.
The main challenge in automated assessment of water quality in a RO production plant is the complexity in interpretation of the values of physicochemical and microbiological parameters in real time and the use of unskilled labor involves quality risk. However real-time continuous monitoring which provide data for any variations that occur in the production process reflects the status of water quality. The main aim of the present investigation is to propose a classification-based intelligible representation of water quality based on real-time basic physicochemical parameters, specifically, pH, TDS, and ORP so as to perform meaningful corrective actions if any variations occur in quality in a RO production plant. The proposed method, which utilizes three basic physicochemical measurements, can possibly predict sensible details for the operators or supervisors to reach decisions on corrective measures in order to improve or maintain the water quality. RO plants across Chennai and other regions of North Tamil Nadu generally use underground water of bore-wells in treating the water for quality like pH, EC, TDS, and ORP parameters. The normal values of various parameters (Central Pollution Control Board 2007;Loganathan et al. 2011;Anoop Raj & Muruganandam 2014;Nandhakumar et al. 2015) of the underground water in specified areas are that pH value is between 6.4 and 7.6, TDS is between 600 and 6,500 mg/l, ORP is between 37 and 143 mV, and EC is between 489 and 1,561 μS/cm. The adjoining regions of specified areas showed many inconsistencies in values of the chosen parameters (Central Pollution Control Board 2007). The WHO has recommended values of the parameters of drinking water (WHO 2011): pH must be in the range of 6.4 and 7.6, TDS must be in the range of 300-500 mg/L, ORP must be in the range of 300 and 500 mV, and EC must be less than 400 μS/cm.
Most previous research works have just aimed to monitor the water quality of natural and manmade sources and reservoirs, and also the water quality of RO plants for drinking. Among these works, most were based on the Internet of Things (IoT) ad hoc monitoring of water quality. The novelty here is intended to include an artificial intelligence-based quality warning system to a RO plant for the production of drinking water. Further, the suggested system alerts the operator about the quality status of water during production and allows inexperienced operators to carry out appropriate remedial actions.

RELATED WORKS
The current research topic in water quality control is detection of abnormal physicochemical properties of drinking water with greater accuracy, thus online controlling and correcting water quality become a tougher task. A real-time system of water quality monitoring and abnormality detection based on multiclass support vector machines (MSVM) is proposed that suits RO production plants.
The suggested system is realistic to furnish user-friendly information for production controlling operators to make decisions and perform operative corrections. Muharemi et al. (2019) described many methods for detecting variations or abnormalities taking place in time series data of water quality. Their work too discussed and proposed solutions to overcome certain problems when handling time series data. They used logistic regression, linear discriminate analysis (LDA), support vector machines (SVM), deep neural network (DNN), artificial neural network (ANN), long short-term memory (LSTM), and recurrent neural network (RNN) to apply over time series data and performed evaluation using F score. Zhang et al. (2017) proposed a new abnormality detection technique on water quality data applying two time-moving windows, which can detect abnormalities by patterns in real-time data history. The technique was on the basis of a statistical model, combination of autoregressive linear model. They verified the proposed idea utilizing three months' data of water quality such as pH obtained from a real-time water quality monitoring station of a river system. Ahmed et al. (2020) used IoT systems for water quality monitoring in real-time and machine learning methods like ANN and SVM to predict WQI, and detect abnormal events, namely, purposeful pollution to allow real-time pollution detection and control operation. Their proposed method also applied regression, correlation analysis, hierarchical clustering, etc. to study multiple directions to include learning technique to support decision-making. Liu et al. (2019) focused on a prediction model of water quality which needed data of higher quality. They constructed and operated a smart system of water quality monitoring on the basis of the IoT, which generated too much big data at a higher speed and thus made water quality data complex. They designed and established a drinking-water quality time-series prediction model to predict water quality big data by means of state of the art deep learning (DL) method using LSTM. They obtained drinking-water quality data from the automatic water quality monitoring station of Guazhou Water Source of the Yangtze River in Yangzhou. Karthick et al. (2018) focused on designing a system to measure parameters, namely, dissolved oxygen, chloride, ammonia, nitrate, hardness, and turbidity to determine the water quality in wellwater using IoT-based machine learning for water quality monitoring system. They accessed spacetime data that promote easy detection of real-time instances to study the impact of pollution on the quality of water in regular water bodies. Yafra & See (2016) addressed the impacts of water pollution effectively when data are studied and the quality of water is predicted in advance. They discussed several early research works and emphasized the work needed to be performed with respect to accuracy, reliability, efficiency, together with usability and of the present water quality control methods. They aimed to construct a prediction model of water quality by means of its parameters using time-series analysis and ANN. Sakizadeh (2016) used three algorithms of ANN type comprising early stopping ANN, ensemble ANN, and Bayesian regularized ANN. The author used 16 ground water variables from 47 wells and springs to predict water quality index. Ashwini et al. (2019) aimed to design and implement an inexpensive system for the IoT and machine learning-based real-time water quality monitoring. The physicochemical parameters of water, namely, temperature, humidity, moisture, and visibility were recorded using corresponding sensors. They used ESP8266 as a main controller for processing the recorded values from the sensors. They applied random forest (RF) and K-nearest neighbor (KNN) techniques in analyzing and predicting the quality of water. Muhammad et al. (2015) proposed an appropriate classification method for water quality on the basis of machine learning techniques. They studied and contrasted the performances of different classification methods for the purpose of identification of important characteristics that assisted in classification of the water quality of Kinta River, Perak, Malaysia. They tested five algorithms and compared their effectiveness. They found that the Lazy model applying K Star algorithm was the best among the five models.
Vijay & Kamaraj (2019) collected samples from the bore wells of Vellore district, Tamil Nadu, India that were largely utilized for drinking. They measured the following water quality parameters, namely, pH, TDS, EC, chloride, sulfate, nitrate, carbonate, bicarbonate, metal ions, trace elements for the purpose of analysis. They focused on prediction of water quality by applying machine learning classifiers like RF, Naïve Bayes, and C5.0 to predict with higher efficiency and accuracy.

SIGNIFICANCE OF VALUES OF WATER QUALITY PARAMETERS
The parameters of drinking water according to WHO standards are that the pH value must be in the range of 6.4-7.6, the TDS from 300 to 500 mg/L, the ORP from 300 to 500 mV and EC less than 400 μS/cm WHO (2011). Low or high pH value indicates the pollution level due to heavy metal and chemicals. Low or high pH value makes water taste and smell unpleasant while drinking and corrodes metal pipes and appliances that carry the water. Low or high pH value results in adverse medical conditions such as acid reflux, high blood pressure, diabetes, high cholesterol, etc. Negative ORP exhibits anti-oxidant property which prevents aging and improves cellular health, whereas positive ORP value exhibits oxidative property which cannot supply electrons to neutralize free radicals. The presence of free radicals affects the absorption of protein and lipid, and the structure of DNA. EC is the measure of conductivity of water due to the presence of inorganic salts, while TDS is a measure of both organic substances and inorganic salts. Low TDS or EC can have ill-health effects in the long term like mineral removal from body tissue, whereas high TDS or EC although not a significant effect for ill health, contributes to the esthetic property of water like taste, smell, cleanliness, etc. However, the presence of substances like pesticides and fertilizers has a huge effect on health conditions such as cancer, tumor growth, kidney disease, liver and pulmonary functions, etc. Elevated TDS level also raises the water temperature and pollution. The increased temperature of water in water bodies has related variations on climate (Valipour et al. 2020).

PROPOSED SYSTEM
Several remarkable efforts have been made to design advanced automatic water quality monitoring and control methods (Meghwani & Dewangan 2017). The deep learning techniques are commonly used as a necessary basic mechanism to assist decisions and derive comprehensive solutions from raw data values. Out of various deep learning techniques, LSTM-based convolutional neural networks (LSTM-CNN) is considered better on the basis of its potentiality during training, especially huge data dimensions. LSTM-CNN remarkably and extensively can be applied for recognizing pattern, computing density and regression (Hochreiter & Schmidhuber 1997). Its speedy convergence is well suited to derive a complete optimal model for classification with less complication. LSTM-CNN technique is incorporated as a proposed system to monitor the water quality in RO production plants and classify the quality of water form an operator's perspective in performing remedial actions in production online. The common problem perceived in classification of water quality is classifying it into multiple classeshighly alkaline, highly acidic, high TDS, high ORP, and low ORP as quality irregularities. Multiple sensor architecture-based classification system for water quality monitoring is shown in Figure 1.
Architecture and components of monitoring system Figure 2 depicts the proposed architecture of real-time water quality monitoring for an RO plant. The suggested system contains some basic water quality sensors, namely, pH, TDS, ORP, and EC and is connected with Arduino as the central controller. This main controller accepts the sensor signals and passes them to the computer for analysis. The controller that is used here is Arduino ATMEGA 328p.

Hardware components of constructed monitoring system
The hardware used in building the monitoring system are pH sensor of SKU: SEN0161, shown in     Uncorrected Proof numerically by applying a logarithm and it takes a value between 0 and 14 with 7 for a neutral solution. Values less than 7 indicate the solution is acidic while a value above 7 is acidic. The sensor operates at the voltage of 5 V and it is fairlyy consistent with Arduino. The sensor includes three distinct electrodes: (a) glass, (b) reference, and (c) gel compound. The pH value is featured as a negative logarithmic measure that demonstrates hydrogen ion concentration of a solution: pH ¼ Àlog [Hþ] TDS/EC sensor A TDS sensor indicates the total dissolved solids that present in a queue solution; in other words, it is a total concentration of dissolved solid particles. Dissolved ionized solids, such as salts and minerals, that present will raise the EC in a solution. As it is a volumetric dependent estimation of ionized dissolved solids, EC can also be treated to determine TDS. EC is unlikely to change significantly in the presence of dissolved organic solids, such as sugar particles and suspended organic colloids.
The TDS and specific conductance of water is generally stated by the equation where TDS is denoted in mg/L and EC is denoted in mS/cm at a temperature of 25°C. The k e is a correlation value and it ranges between 0.55 and 0.8 (Atekwana et al. 2004). Conductivity is the estimation of an ability of the solution to permit the flow of an electric current. Conductivity is obtained by applying Ohm's law, V ¼ IR; in which voltage (V) is obtained by multiplying the values of current (I) and resistance (R). Thus, the resistance is calculated by obtaining the ratio between voltage and current. When a voltage is supplied to the conductor, the current starts to flow, which is subject to the conductor resistance. Then, the conductivity is easily described by the reciprocal value of the resistance of a solution present between electrodes. The more ions that present in the solution means the conductivity will likely increase.

ORP sensor
The ORP determines the ability of the solution to act like a reduction or oxidizing agent (Botlagunta et al. 2015). This is utilized to determine the ability of oxidization by the chlorine present in water or to measure whether the neutral equilibrium point has been attained in the reaction of oxidization/ reduction. Water treatment using chlorine will mainly act like disinfectant in order to remove microbes, namely, protozoans, bacteria, and viruses that commonly thrive in water bodies, reservoirs, and mains. Chlorine ranges up to 4 mg/L in water are recognized to be safe for drinking. Exposure to or drinking continuously water with excess chlorine may elevate the risk of being affected by respiratory problems such as asthma, especially in children, tumor growth in intestine and kidney, and tissue and cell lesions (Botlagunta et al. 2015).

Temperature sensor
The temperature of water will vary according to the conditions of day-night and climate. The temperature of water bodies is subject to the environmental season and geographical location. The temperature of regular drinking water may be roughly in the range of 7-44°C. If unusual chemicals are present in drinking water, the temperature of the water rises, which surpasses the normal values. The range of temperature that the sensor measures will be between approximately À55 and þ125°C.

Arduino microcontroller
Arduino is an openly available platform normally used for developing applications in electronics. Arduino includes elements of both programmable hardware which acts like a microcontroller and a software IDE (Integrated Development Environment) which executes on a computer and uses script with C and C# codes to upload it onto Arduino hardware. Various types of Arduino are available in stores. Here, in this project, AtMEGA 328p UNO is chosen as it serves sufficient digital-analog IO pins for connecting numerous sensors at one time. AtMEGA 328p requires a 5 V power supply and works at the clock frequency of 16 MHZ. Arduino can be hooked to a PC through universal serial bus (USB) and can save data of 2 KB. It comprises 14 digital I/O pins and 6 analog pins of input. The above-mentioned four sensors are connected to four digitalanalog IO pins of Arduino (Hari Sudhan et al. 2015;Škultéty et al. 2018).

Liquid crystal display (LCD)
A LCD of 16 Â 2 is connected to Arduino to display the measured sensor data on screen. This has 2 rows with 16 characters in a row. Thus, it can show a total of 32 characters and each character is displayed in 5 Â 8 dots of pixel.

PROPOSED DEEP LEARNING MODEL
The aim of this study is the advancement of a classification model to classify water quality by applying and capitalizing on state-of-the-art deep learning methods. Convolutional layer is featured by its potential to derive beneficial information and learn the inner characterization of time-series data, whereas LSTM networks are functional for recognizing long-and short-term associations. The main aim of the suggested model is to effectively unite the merits of both deep leaning methods. Ultimately, the suggested model of CNN-based LSTM, contains two major blocks. The first constituent contains the layers of convolution and pooling, where complex mathematical processes are carried out to generate features for the input data, whereas the second constituent uses the developed features obtained from LSTM and dense layers. In the latter part, a short explanation about the layers of convolution, pooling, and LSTM is provided as they establish the main part of the suggested model.
The layers of convolution and pooling (Rawat & Wang 2017) are particularly framed as data preprocessing layers which have the job to process the input data and obtain beneficial knowledge which will be applied as an input, normally to a fully connected network (FCN) layer. In particular, the convolutional layers perform convolution operations between original input data and convolution kernels generating new values for features. The input data must be structured to a matrix shape because this method is primarily aimed to extract features from the dataset of images (Krizhevsky et al. 2013). The convolutional kernel can be regarded as a small window, in comparison with the size of the input matrix, which comprises the values of coefficients into a matrix shape. This small window performs sliding throughout the size of the input matrix using convolutional operation on every sub-region in such a way that this designated window covers the whole matrix. The outcome of the entire operation will be a convolved matrix which provides the value of features indicated by the values of coefficients and the dimensional size of the implemented kernel. By the use of various convolution kernels on data input, numerous convolved features can be created, which may be generally quite helpful comparing first primary features of the data input, hence improving the performance of the proposed model.
The convolutional layers are generally continued with the layer of a rectified linear unit, i.e., nonlinear activation function, and subsequently with a pooling layer. A pooling layer performs a subsampling operation which obtains specific values out of convolved features and generates a smaller dimensional matrix. Alternatively, in the same way of conducting operations on the convolution layer, the pooling layer uses a tiny moving window which accepts the values of every sub-region of the convolved features as inputs and one fresh value as an output, which is denoted by a process that the pooling layer is determined to perform. For instance, average pooling and maximum pooling compute the average and maximum values of every sub-region. Consequently, the pooling layer generates the new matrices which are regarded as abridged forms of the convolved features generated by the convolution layer. Operation of the pooling layer can support the model by being more stable for any small variations on the input so that the output values due to pooling operations do not vary.
The neural network of LSTM (Ilakkiya & Sharmila 2017) is a specific form of recurrent neural network (RNN) which has the capability to learn long-term relations by using feedbacks. A standard RNN seeks to address the issue of feed-forward neural network, termed 'lack of memory,' which is accountable in exhibition of underperformance on time-series and sequence issues. This model uses cyclic connections in the hidden layers for the purpose of acquiring short-term memory and has the opportunity to acquire details from the data of time-series and sequences. However, RNN experiences the popular vanishing gradient issue which limits the model in learning long-term relations. Hence, LSTM is capable of addressing this issue by keeping beneficial details on storage bins and fading redundant details, thereby attaining, overall, higher returns in comparison to standard RNN.
Every LSTM component is formed using memory bin and three principal gateways: the input, the output, and ignore. Due to this scheme, the LSTM handles development of a controlled flow of data by determining which data must be ignored and which have to be retained, hence controlling learning of long-term relations. More precisely, the input gateway as well as a second gateway c Ã t manages the new data which is retained in the memory state c t at a time t. The ignore gateway f t manages the earlier data which need to disappear or need to be retained in the memory bin at a time (t À 1), whereas the output gateway o t manages which data might be used for the memory bin output. To recap, Equations (2)-(5) concisely explain the operations carried out by an LSTM component.
in which x t indicates the input, W Ã and U Ã are the weights of the matrices, b Ã are bias vectors, s is a sigmoid function, and the operator indicates element-wise multiplication. Lastly, the hidden state h t which comprises the memory bin and its output is evaluated as follows: Realizing that by chance numerous LSTM layers are stacked, both the memory and hidden states c t and h t , respectively, of every LSTM layer are dispatched as inputs to the next layer of LSTM.
To realize the proposed model, some remarkable characteristics of existing models are used. The CNN-LSTM comprises two convolution layers with filters of 32 and 64 and of size (2,), correspondingly, succeeded by the layer of pooling, a layer of LSTM and a layer of one neuron as an output. A summary of the suggested model of CNN-LSTM architecture is shown in Figure 4 and its layer specifications are mentioned in Table 1.

DATA COLLECTION
Now, pH, TDS, ORP, and temperature data were sampled by random method: thus, 20 data randomly at 12 various instants in a particular day randomly selected from a span of 8 weeks with the span of 6 months from the eight RO plants situated in western and northern suburbs of extended parts of Chennai with the frequency of eight times in a week for every plant. The collected data were then grouped into 64 arrays each of length 240 for each parameter and for each plant. These data measured from the eight RO plants are shown as sample graphs in Figure 5 for pH data, Figure 6 for ORP data, Figure 7 for TDS data, Figure 8 for EC data, and Figure 9 for temperature data.
Inferences are deduced from Table 2 as follows: • pH data measured at various plant sites have demonstrated that the groundwater utilized for treatment is alkali rather than acidic.
• ORP data measured at various plant sites have demonstrated that the groundwater utilized for treatment is in the range from 89 to 107 mV which is less than the WHO recommendation values of 300-500 mV.
• TDS data measured at various plant sites have demonstrated that the groundwater utilized for treatment is in the range of 999-1,320 (mg/L) which is far greater than the WHO recommendation values of 300-600 mg/L.  • EC data measured at various plant sites have demonstrated that the groundwater utilized for treatment is in the range of 1,100-1,500 (μS/cm) which is far greater than the WHO recommendation values of 400 μS/cm.
• The proposed model is designed to classify the groundwater quality status to carry out remedial action in RO plants based on major quality irregularities, namely, high pH, high TDS, and low ORP.
• Accessing data and grouping the water quality irregularities in relation to remedial action likely to be carried out in production plants are key elements for experiments.   For training the LSTM-CNN and to classify the irregularities denoted in terms of grades, 1,920 data samples were collected from eight RO plants around north and west Chennai sub-urbans. 240 data samples at various occasions in a day were collected from every RO plant. For the purpose of deciding remedial action which is supposed to be performed by the plant operator to adhere to water quality standards, the class targets are tabulated on the basis of water quality irregularities, as shown in Table 3.

ANALYSIS AND RESULTS
This section describes the experiments performed and the results obtained from the classifier of LSTM À CNN and by using preferred classes as target, as described in Table 3. Table 4 depicts the statistics of confusion matrices of the classifiers of LSTM À CNN and Figure 10 shows the confusion matrices of the classifiers when classifying the water quality irregularity.
A confusion matrix is a commonly used technique to denote the classifier performance on a group of sample data where the true values are available. From the confusion matrix depicted in Figure 10, there exists four likely predicted levels. The classifier has been supplied with 4,096 sample data    Table 3. While predicting for the presence of anomaly in the 512 supplied sample data of Grade A class, the classifier correctly Uncorrected Proof predicted 497 Grade A data as Grade A, and wrongly predicted 9 data of Grade A into Grade B, 5 data of Grade A into Grade C, and 1 data of Grade A into Grade D. Similarly, for 1,536 supplied sample data of Grade B class, the classifier correctly predicted 1,502 Grade B data as Grade B, and wrongly predicted 9 data of Grade B into Grade A, 22 data of Grade B into Grade C, and 3 data of Grade B into Grade D. For 1,536 supplied sample data of Grade C class, the classifier correctly predicted 1,498 Grade C data as Grade C, and wrongly predicted 4 data of Grade C into Grade A, 14 data of Grade C into Grade B, and 20 data of Grade C into Grade D. For 512 supplied sample data of Grade D class, the classifier correctly predicted 500 Grade D data as Grade D, and wrongly predicted 2 data of Grade D into Grade A, 11 data of Grade D into Grade B, and 11 data of Grade D into Grade C. The commonly used basic terms are described as follows: true positives (TP) are the cases predicted correctly in the correct classes, true negatives (TN) predicted wrongly in the wrong classes, false positives (FP) (termed as 'Type I error') predicted correctly in the wrong classes, and false negatives (FN) (termed as 'Type II error') predicted wrongly in the correct classes.  The following metrics that are regularly calculated from a confusion matrix for the classifier are: accuracy which describes how well the classifier predicts correctly the events (both positive and negative); precision which describes how well the classifier is correct when predicting positive events; sensitivity which describes how well the classifier predicts the positive events as positive event; and specificity which describes how well the classifier predicts the negative events as negative event. Table 4 shows the results derived from applying the LSTM-CNN model. As evidenced, subject to applying the described parameters, LSTM-CNN showed improved performance with an accuracy of 99.03%.

DISCUSSION
In general, the outcomes showed that LSTM-CNN could be considered an appropriate choice in order to classify water quality as a quality alert system for RO plant drinking water production. One of the foremost characteristics of the LSTM-CNN model is that the necessary network size is directly realized in the network's structural process. Hence, the LSTM-CNN model has smaller network size and provides greater classification accuracy.
Although the above-discussed method could find online water quality classification over the intervals if sampling is done simply by very vital parameters, this research is distinguished by the fact it always encountered restrictions, namely, shortage of on-site data. The constraint on water quality data is more serious comparing to quantitatively. Further, the period of time series water quality samples and the number of recorded variables might be considered as limitations. Despite the good amount of water quality data applied in the current investigation, the water quality data sample size is moderate for precise modeling. Hence, the aforementioned method is proposed and verified by using a reasonable amount of on-site plant data.

CONCLUSION
The aim of the current research is to classify the water quality irregularities into grades. Reverse osmosis plant operators will be able to perform remedial action using this grading which will also be quite intelligible. The classification considered here will be a four-target class challenge as a whole in detection of water quality irregularities in RO plants using LSTM-CNN classifiers. The proposed classifiers have shown some encouraging signs of providing intelligible warning about water quality irregularities which require to be rectified with precise treatment in the necessary circumstances. Early researches that were performed aimed to estimate and classify the water quality of water reservoirs or bodies. However, the proposed method is focused on investigating drinking water quality produced by RO plants that is straightaway supplied to the community. This approach that sets out effective control methods for production robustly improves the water quality throughput.
The notable merit of using directly measured water quality parameters like pH, ORP, TDS, EC, and temperature in training the LSTM-CNN classifiers will allow the classifiers to directly learn water quality features and enable intelligible warning information for production operators or supervisors. For better performance of classification, the data that utilized were recorded and designated tags based on the amount of irregularities.
In practice, the data fed to the classifiers of LSTM-CNN types in grading the water based on quality irregularities may not predict exactly the grades until they are appropriately organized into classes. The LSTM-CNN classifiers have no issue on learning to detect the water quality features for drinking because the data types are health based. For the purpose of classification of worst case water quality irregularities, the time of learning involved in training will be significantly less. The challenge of the