1. Introduction
In recent times immense growth has occurred in the human population, particularly in cities. People are moving from rural areas to urban areas for jobs, better health facilities, schooling, and so forth. In order to fulfill the requirement of the people in cities, numerous underground facilities are installed, and among these facilities the most important are pipelines installed for water supply and the sewage. Different factors could cause the degradation of the water and sewage supply pipelines, such as age, depth, length, leakage, pipeline types and quality [
1,
2,
3,
4]. In the proposed work, we have considered the four essential factors (depth, length, age and leakage). The depth is an essential factor as near to surface pipeline has a high probability of damage because of the effect of surface activities. The pipelines buried deeper have less damage probability because they are not affected by surface activities. In the same way, the length is also a significant factor because the long pipelines have a high probability of damage [
5]. The age of the pipelines is also a critical factor because when the pipeline gets older, its probability of damage becomes high as compared to the new water supply pipeline. The leakage of pipelines also contributes to the damage of pipelines [
6].
It is very necessary to avoid the pipelines from being damaged because the damaged pipelines could cause damage to buildings, roads, bridges and eventually, it could occasion human accidents [
7,
8]. Hence, it is essential to develop a method to assess pipeline risks. Many methods have been developed for these purposes; most of them are based on fuzzy logic.
Nowadays, the tendency of the usage of fuzzy logic methods in different fields has been increased tremendously. The fuzzy logic (FL) techniques are applied approximately in all areas of research for diverse goals [
9,
10]. The FL techniques are useful to solve uncertainty. The FL techniques have also been used to evaluate the risk index in different areas. The most popular and effective fuzzy logic methods are Mamdani and Sugeno. The difference between the Mamdani and Sugeno fuzzy inference methods is the automatic creation of rules in the Sugeno fuzzy logic method. In the Mamdani FL technique, usually, experts are needed to design rules. The main problem associated with the traditional fuzzy logic (TFL) is the enormous increment in the rules when the number of input factors increases. It is tough for experts to design too many rules with accuracy because rules designing requires intense concentration. It is also essential to accurately design rules, because inaccurate rules may create a big problem. Hence, to overcome this problem, the hierarchical fuzzy logic method has been developed because it can decrease the number of rules dramatically [
11,
12]. The strategy behind this hierarchical fuzzy logic method is to partition the system into a low sub-dimensional. In the hierarchical fuzzy inference system, the number of rules increases linearly. In the conventional fuzzy inference system, there is only one fuzzy logic module, and all the inputs are directly inputted to that module as a contrast to the hierarchical, where the structure is hierarchically divided into different modules. Hence, the rules are not exponentially increasing in the hierarchical fuzzy inference system when new inputs are added to the system, as compared to the conventional fuzzy inference system, where rules eruption occurs when new inputs are added to the system [
13].
Usually, there are numerous factors involved in the assessment of risk index of water supply (WS) pipelines; therefore, the designing of a specific FL model to decrease the number of rules and incorporate risk index assessment is essential.
Humans always want to carry out things by themselves. There are many drivers which motivate the human to the Do-It-Yourself (DIY) method, such as creation, simplification, extension, economic reasons and controlling [
14]. The advancement and innovation in DIY electronics are offering a chance for the masses to purify their creativity. A huge inspiration for DIY is the system on chip (SoC), electronics development platforms, and kits in the shape of Arduino and Raspberry Pi. This Do-It-Yourself (DIY) paradigm of development is one of the most popular candidate solutions for the general public programming skills problem. State of the art studies have suggested DIY interfaces for their Internet of Things (IoT) implementations.
It has been identified that most of these implementations are application/domain-specific or too complex for a non-technical user to deploy to utilize them for the customization/development of IoT applications and services. In this paper, an approach has been proposed to bridge this gap between the utilization of masses for IoT development and the programming skill requirements on behalf of the masses and enhanced IoT composition architecture based on DIY business process modeling.
It was reported by the international telecommunication union (ITU) in 2005 that the Internet of Things (IoT) will link objects from the world, both in sensor and the smart way [
15,
16]. IoT was just an idea in the recent past, and its adoption was not carried out by the masses [
17,
18], but the number of devices and connections are overgrowing in the IoT. The involvement of end-users to create the IoT process is very important in order to adopt it successfully. It is stated in the Gartner Hype Cycle [
19] that this IoT is of high significance, and now the IoT is a reality, not an imagination [
20,
21,
22]. Although, the end-users must have the capability to create processes, discover things [
23,
24], control things and efficiently utilize the application for smart environments [
25]. The same idea has been provided in [
26].
Nowadays, many efforts have been made to develop electronic devices to facilitate developers in order to create and program for creation. Many hardware boards have been designed, such as Raspberry Pi [
27] and Arduino [
28], and many more. Only certain programming languages work on these boards.
In this paper, an SHFL model has been proposed. The primary motivation behind the designing of this model was to decrease the set of rules. Hence, the suggested model has significantly reduced the number of rules in a great manner. Another purpose was to develop a DIY system to facilitate a user to design a model according to his or her need and do the assessment of the WS pipeline risk index. By using the DIY system, the user can design different models according to their needs. The DIY model comprised of five layers, i.e., the physical network layer, virtual object layer, service logic layer, business process layer and the application layer. The representation of the risk index values of the SHFL model using a DIY system is carried out through different LED actuator’s colors. The manager can assess the risk index from these colors and act accordingly.
The rest of the paper is organized as:
Section 2 depicts the related work, in
Section 3 the proposed methodology has been explained in detail. In
Section 4, the details about the implementation, results, and discussion are given, and the paper is concluded in
Section 5.
2. Related Work
It is highly needed to analyze the risk index of WS pipelines, and usually, experts are required to assess its risk. However, searching and hiring such experts require a lot of time and money. Hence, it is very obligatory to develop such automatic methods that have the ability of assessment of the water supply (WS) pipelines risks. Many methods have been developed in the recent past to achieve this goal; some of the methods have been discussed here in detail.
The most effective and most common method for risk assessment is FL. The FL techniques have been used in diverse areas of research by different researchers for risk index assessment. Li et al. [
29] applied the FL technique for a risk analysis of long WS pipelines. Tripathy et al. [
30] used an FL to analyze the risk of care in coal mines. Chen et al. [
31] developed a decision-making technique based on FL to select the supplier chain in the supply chain scheme. The fuzzy logic technique has also been used in the aluminum industry by Gul et al. [
32]. Zhang et al. [
33] used a fuzzy logic method to evaluate the underground risk index.
Traditional fuzzy inference methods have the drawback of rules explosion, or eruption. Hence, to overcome the rules explosion issue, HFIS methods have been used by different authors. Israr et al. [
34] designed two models to evaluate the underground risk index and rules reduction. Fayaz et al. [
35] developed a method named simplified HFIS for analyzing the underground risk index.
Two different methods, namely average rules-based and maximum rules-based, have also been developed. The primary aim of the designing of HFIS was to reduce the number of rules. Fayaz et al. [
11] designed another model named as integrated based on HFIS methods to reduce the number of rules and to find the underground risk index. In the integrated HFIS, two types of rules construction methods have been used to facilitate users to construct rules without any expert. These rules construction methods save the time and money of the user. The integrated hierarchical fuzzy inference system method has been applied to the linear data, as well as being generated based on maximum rules-based and average rules-based, in order to assist the underground risk index. Chang et al. [
13] proposed a method to reduce the computational complexity of the hierarchical fuzzy inference system, namely the simplified fuzzification-defication method. In this method, only the inference engine in the central layer is added, and the fuzzification and defuzzification modules have been removed. The method has been applied to two conventional hierarchical fuzzy logic methods for efficiency assessment of the proposed model. Cheong et al. [
36] suggested an approach based on a hierarchical fuzzy inference system and differential evolution. Two levels of hierarchical fuzzy inference system have been built to control a cart-pole having four stages.
In recent times extensive efforts have been carried out in which mass DIY in the field of electronic device design, creation and programming have been focused. The present Makers Revolution has introduced a new DIY culture along with the DIY Driver, motivation. The Internet is a bridge between the creators and the public. People can communicate and share their ideas and can assist each other on a huge scale [
37]. DiYSE [
38] grants a platform of 13 statements dedicated to the developers who carried out the designing and implementation of digital creation systems for end-users. The relationship of DIY IoT to the maker movement has also been stated in the manifesto.
SAM is a Kickstarter [
39] project which grants electronic modules in which no skill is required for creation, inventions, designing, and so forth. The integration of hardware, software and the Internet is the fundamental purpose of the SAM project. Python is the programming language of the SAM project modules. It is stated in [
40] that in the future, DIY will be used to develop IoT. Chin et al. [
41] suggested a method which exhibits the application of the DIY method to develop IoT. Shabir et al. [
42] proposed a DIY method to enable masses to remotely customize the behavior of IoT devices by using a visual interface as well as to make sure of the availability of configuration everywhere by using the cloud-platforms. The physical embedded resources have been represented as visual resources in the form of graphical objects. The interface enables the masses to create the service, the service design by a simple drag-and-drop operation and the setting properties. The resulted configuration can be stored in an XML file, and then the XML file is used by the cloud platform. Hence it can be used everywhere. The HTTP protocol has been used for communication between the cloud and the IoT toolbox, and for the communication between the toolbox and actual resources, they have used the CoAP protocol.
DIY platforms called Node-RED [
43] are developed to minimize the coding effort and for the developers. The Node-RED users chain together the graphical nodes obtained from the graphical panel to create flows and then to demonstrate those flows to receive the results. The node in Node-RED indicates devices, software platforms and web services [
43]. The method applied by Node-RED is an efficient solution to enable public involvement in the realization of the IoT, particularly from the creator’s viewpoint. However, these struggles have made simple designing and creating things for the users, but still, up to some extent, the experience is obligatory. Some other DIY approaches have also been developed in different areas, such as Glue.things [
44], Super Stream Collider (SSC) [
45], OPEL software platform [
46], ThingWork [
47], Particle.IO [
48], Dweet. IO, and many more.
3. Proposed Methodology
The proposed method can be categorized into two main parts, where the first part involves the hierarchical fuzzy logic models, and the second is the DIY system. First, we will describe the proposed SHFL model in detail and then the DIY system for these models. Researchers have applied the fuzzy logic (FL) method to assess the risk index in numerous areas for different purposes. The critical issue of traditional fuzzy logic (TFL) is rule eruption (explosion) as factors are added to the system. Rules-eruption grows the computation time of the system, and also it is very difficult to make a large set of rules with accuracy. Herein, we have designed a fuzzy logic model based on hierarchical fuzzy logic to handle the issues of the TFL methods. The proposed SHFL model is a binary tree model. The model has consisted of three sub-fuzzy logics modules, and each module has two inputs; this SHFL model immensely shrinks the rules in rules-base. The proposed SHFL model has four input variables as inputs: depth (X
1), length (X
2), age (X
3) and leakage (X
4), and the output is the risk of the WS pipeline. The proposed model has three layers (input, middle, output). The input, middle and output layers have consisted of input parameters (X
1, X
2, X
3 and X
4), two sub fuzzy logic modules (M
1_FL and M
2_FL) and one out fuzzy logic module (M
3_FL), respectively. The proposed model has been applied to real data provided by the Electronics and Telecommunications Research Institute (ETRI) organization working on the underground project. The data have been gathered from 1989 to 2010 for water supply pipelines installed at different points in Seoul, South Korea. Only for the above-discussed parameters, the data have been collected. The traditional and proposed fuzzy logic models can be seen in
Figure 1 and
Figure 2, respectively.
The descriptions of the abbreviation that are used throughout the paper are given in
Table 1.
There are many types of FLC systems; among them, the most essential FLS systems are Mamdani, Tsukamoto, Sugeno and Larsen. The most extensively used and common fuzzy inference method is Mamdani [
49].
In literature, several types of membership functions (MFs), such as triangular, trapezoidal, bell-shaped and many more, have been used in the Mamdani fuzzy logic. Among these, the simplest and frequently used are triangular types of MFs. Therefore in the proposed work, we have used the triangular MFs [
50]. Equation (1) represents the formulas for triangle MFs. Triangular membership functions are defined by a lower limit q and an upper limit s, where q < r < s, and x is the actual value.
The complete set of rules used in the SHFL model can be specified by using Equation (2), and for the TFL model, Equation (3) can be used.
where H is the height of the hierarchical structure (input layer is not considered),
is the number of fuzzy logics at a particular level,
is the number of membership functions of the ith variable of the fuzzy logic. In the conventional fuzzy logic model, there is only one layer (input layer is not considered) having one fuzzy logic and all the inputs are direct inputs to that fuzzy logic. Hence,
,
and
are membership functions of input variables A
1, A
2, A
3 and A
n, respectively.
Four input parameters are used as inputs to the proposed simplified hierarchical fuzzy logic model, as shown in
Figure 2. Three sub fuzzy modules logics, namely M
1_FL, M
2_FL and M
3_FL, have been used in the proposed model. Two inputs parameters, X1 and X2, have been used as inputs to the M
1_FL, and we have defined seven and five membership functions for X1 and X2, respectively. The output of the M1_FL is partial risk 1 (PR1), for which we have defined five membership functions. Hence, 7 × 5 = 35, the number of feasible rules that can be defined for M
1_FL.
Similarly, two input variables X3 and X4 are used as inputs to the M2_FL; we have defined seven and five membership functions for input variables X3 and X4. respectively. The M2_FL has one output variable partial risk 2 (PR2), for which we have defined five membership functions. The number of feasible rules that can be defined for M2_FL is 5 × 7 = 35. Further, PR1 and PR2 are used as inputs to the M3_FL; five membership functions are defined for each input variable. M3_FL has one output variable, namely WSPRI, for which five membership functions have been defined. Hence, 5 × 5 = 25 feasible rules which can be defined for M3_FL. Therefore, adding the total number of rules of each sub fuzzy logic of the proposed model are 95 to implement the full structure fuzzy logic model.
The same four parameters have been used as inputs with the same membership functions to the conventional fuzzy logic model, as shown in
Figure 1. Hence a total number of rules to build a complete fuzzy inference system are 7 × 5 × 7 × 5 = 1225.
In Equation (2), H = 2 (input layer is not considered),
= 2,
= 2,
= 1,
= 2,
= 2,
= 2,
= 2,
= 5,
= 5,
= 7,
= 5,
= 7 and
= 5. By putting the above values in Equation (2):
In order to find complete fuzzy logic rules for the conventional fuzzy inference system Equation (2) can be used. By putting
= 7,
= 5,
= 7,
= 5 into Equation (3):
Hence, the number of rules to build a complete fuzzy logic system, the proposed model and the conventional fuzzy logic model require 95 and 1225 rules, respectively. Consequently, it proves that a dramatic reduction occurs in the rules by using the proposed SHFL model.
We have defined different labels for different membership functions in order to exhibit the MFs contributions. For input variable depth (X
1) of M
1_FL, seven MFs have been specified. The labels assigned to these MFs of variable depth are ENG, NG, N, ND, D, DR and DT. The ST, S, M, L and LT are specified for the input variable Length (X
2) of M
1_FL. The linguistic terms VLR, LR, MR, HR and VHR have been defined for M
1_FL. Similarly, for input leakage (X
3) of the input variable M
2_FL, the labels ELLP, VLLP, LLP, ILP, HLP, VHLP and EHLP have been assigned to MFs. Similarly, VO, O, IA, N and BN have been specified for input variable age (X
4). For output variables of M
1_FL and M
2_FL, the labels VLR, LR, IR, HR and VHR are assigned to MFs, while these labels, VLLR, LLR, MLR, HLR and VHLR are assigned to the MFs of each variable of M
3_FL module. The details of these abbreviations can be seen in the
Table 1. In
Table 2,
Table 3 and
Table 4, rules have been defined for M
1_FL, M
2_FL and M
3_FL, respectively.
The proposed DIY and service composition system, as illustrated in
Figure 3, is comprised of the virtual and physical domain. The virtual domain facilitates the user by providing the graphical interface for the customization of IoT applications in an intuitive way. The representation of the physical devices in the physical domain is carried out as virtual objects which capture the behaviors of physical devices. The combination of these virtual objects is carried out for the generation of service objects. Users do the utilization of these service objects for the customization of the application process, which will be deployed for physical IoT network control. The physical IoT domain consisted of a leakage sensor, ground state sensor and LED actuator. In the virtual domain, the virtual objects of these physical objects in the physical domain are generated with identical behavior.
Figure 4 shows the detailed design of the proposed fuzzy logic based on the DIY toolbox. The proposed system is comprised of five different layers, i.e.,: the physical network layer, virtual object layer, service logic layer, business process layer and the application layer. The physical network layer consisted of sensors; currently, we have some real data for depth, length, age and leakage. The representation of theses physical sensors and actuators is carried out as virtual objects (VOs) things into the risk cyberspace. The interaction of virtual objects is carried out on the service object layer. This layer has the responsibility to provide a spontaneous and simple to use visual environment where VOs attained from the virtual object manager (VOM) is rendering in graphical form. The drag-drop operation can be performed on the graphical objects to constitute different services. Here we have used fuzzy logic between sensor and actuator to calculate the risk index for the water supply pipeline. Once the composition of the services is carried out, the connection of these services can be made using the BPM editor. The business process layer utilizes the service objects composed at the service composition layer and represents them as business process modeling notations. The application layer specifies the communication protocols and interface methods used by hosts in a physical communication network. The application layer consists of three kinds of nodes, namely the sensor node, proxy node and actuator node. In this work, we have four parameters, namely, depth, length, leakage and age. In this work, we have used the LED as the actuator. Hence the actuator node takes charge of the operation of a physical LED actuator. The proxy node is responsible for supporting communication between sensor nodes and actuator nodes. The logic object in the proposed method is the SHFIS model, which is used to calculate the WSPLs risk index, and the LED actuator operates according to the risk index value.
5. Conclusions
In this paper, a novel model based on a hierarchical fuzzy inference system has been suggested to assess the risk index of water supply pipelines. The suggested model is called a simplified hierarchical fuzzy logic (SHFL). The primary motivation behind the designing of this model was to decrease the set of rules. Hence in the proposed work, we have designed a model called SHFL, and the suggested model has significantly reduced the number of rules.
We have applied the proposed model on real data to test its accuracy, and the mean squared error (MSE) values indicate that the proposed model performed well. Another purpose was to develop a DIY system to facilitate a user to design a model according to his or her need and do the assessment of the WS pipelines risk index. By using the DIY system, the user can design different models according to their needs. The DIY model is comprised of five layers, namely: the physical network layer, virtual object network layer, service object layer, business process and the application layer. The representation of the risk index values of the SHFL model using a DIY system is carried out through different LED actuator colors. The risk index visualization on LEDs is necessary to trace the risk index and to take quick measurements before any accident. The novel method greatly reduces the implementation time and rule design sets that are extremely time-consuming to develop and difficult to maintain. To implement full structure, fuzzy logic 95 rules are required in the proposed SHFL model as compared to the TFL model that needs 1225 rules. Hence, the proposed model significantly reduces the time of designing rules and improves accuracy because an expert can easily design a small set of rules with more concentration. The real data that has been used in this work is provided by the Electronics and Telecommunications Research Institute (ETRI) organization. In the proposed work, the DIY system has also been proposed; the purpose of the DIY is to facilitate caretaker to design a fuzzy logic model of their own choice.
In the future, we would like to consider more parameters and different aspects related to water supply pipelines. We would also like to design more models and compare them to the existing model on the basis of accuracy and simplicity.