Next Article in Journal
Identifying Persons of Interest in Digital Forensics Using NLP-Based AI
Previous Article in Journal
AI-Driven Neuro-Monitoring: Advancing Schizophrenia Detection and Management Through Deep Learning and EEG Analysis
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Enhanced Long-Range Network Performance of an Oil Pipeline Monitoring System Using a Hybrid Deep Extreme Learning Machine Model

by
Abbas Kubba
1,*,
Hafedh Trabelsi
2,* and
Faouzi Derbel
3
1
Enetcom, Sfax University, Sfax 3038, Tunisia
2
CES_Lab, ENIS, Sfax University, Sfax 3038, Tunisia
3
Faculty of Engineering, Leipzig University of Applied Sciences, 04277 Leipzig, Germany
*
Authors to whom correspondence should be addressed.
Future Internet 2024, 16(11), 425; https://doi.org/10.3390/fi16110425
Submission received: 15 October 2024 / Revised: 5 November 2024 / Accepted: 12 November 2024 / Published: 17 November 2024
(This article belongs to the Topic Advances in Wireless and Mobile Networking)

Abstract

:
Leak detection in oil and gas pipeline networks is a climacteric and frequent issue in the oil and gas field. Many establishments have long depended on stationary hardware or traditional assessments to monitor and detect abnormalities. Rapid technological progress; innovation in engineering; and advanced technologies providing cost-effective, rapidly executed, and easy to implement solutions lead to building an efficient oil pipeline leak detection and real-time monitoring system. In this area, wireless sensor networks (WSNs) are increasingly required to enhance the reliability of checkups and improve the accuracy of real-time oil pipeline monitoring systems with limited hardware resources. The real-time transient model (RTTM) is a leak detection method integrated with LoRaWAN technology, which is proposed in this study to implement a wireless oil pipeline network for long distances. This study will focus on enhancing the LoRa network parameters, e.g., node power consumption, average packet loss, and delay, by applying several machine learning techniques in order to optimize the durability of individual nodes’ lifetimes and enhance total system performance. The proposed system is implemented in an OMNeT++ network simulator with several frameworks, such as Flora and Inet, to cover the LoRa network, which is used as the system’s network infrastructure. In order to implement artificial intelligence over the FLoRa network, the LoRa network was integrated with several programming tools and libraries, such as Python script and the TensorFlow libraries. Several machine learning algorithms have been applied, such as the random forest (RF) algorithm and the deep extreme learning machine (DELM) technique, to develop the proposed model and improve the LoRa network’s performance. They improved the LoRa network’s output performance, e.g., its power consumption, packet loss, and packet delay, with different enhancement ratios. Finally, a hybrid deep extreme learning machine model was built and selected as the proposed model due to its ability to improve the LoRa network’s performance, with perfect prediction accuracy, a mean square error of 0.75, and an exceptional enhancement ratio of 39% for LoRa node power consumption.

1. Introduction

1.1. Background

Oil leak localization and detection systems aim to protect pipeline networks from damage to protect their surroundings, organisms, and their lives from the risk of pipeline network catastrophes. Oil pipeline leak detection and monitoring systems are important because when a leak happens, they automatically update the operator with detailed alarms so that the necessary instructions and procedures can be organized and ready to mitigate spills and their durations.
There are different groups of leak detection techniques. Some of these technologies detect product leaks by checking the variance between the volume of the steady-state situation of the system and the value of the instant inlet and outlet flow rate [1,2]. Other techniques employ advanced computerized network systems that are used to monitor a list of different conditions of operation. The real-time transient model (RTTM) was selected as the oil pipeline monitoring model in this study due to its many benefits when compared with other techniques, such as a negative pressure wave, pressure point analysis, acoustic sensing, fiber optics, RFID, vapor sampling, capacitive sensing, infrared cameras, etc. The RTTM achieves a high level of accuracy in leak detection and localization, with appropriate leak size estimation, easy maintenance, good performance in both steady- and transient-state cases, fast processing, and the ability to handle a suitable amount of data [3,4,5,6].
Wireless sensor networks (WSNs) are distributed networks that cover multiple small, self-dominant sensing nodes that can sense, compute, and communicate with the main central server [7]. The main function of the end nodes is to work concertedly to gather and observe information from their immediate surroundings. WSNs have gained significant interest and have been employed in various domains, such as ecological observation systems, healthcare systems, the infrastructure of intelligent cities, industrial system control, smart monitoring, and intelligent surveillance systems [8,9].
Machine learning is a branch of artificial intelligence that involves developing algorithms that allow systems to learn from old data and then predict experiences and output results depending on the new real input data when they receive them. The quantity and quality of data used during the training process and selecting the right algorithm to deploy increase the level of accuracy and correctness of the prediction. Environmental monitoring, industrial manufacturing, speech recognition, image identification, Facebook auto-tagging, and email filtering all require machine learning [10].

1.2. Our Contribution

This work presents a novel approach to implementing an integrated, efficient, and reliable oil pipeline monitoring system. It covers the approach of enhancing the accuracy of system functionality, in addition to utilizing machine learning techniques over wireless sensor networks to enhance network performance. The contributions of this work are explained as follows:
  • To the best of our knowledge, this work is the first of its kind to introduce an integrated and efficient solution in the field of oil pipeline monitoring.
  • The accuracy and efficiency of a real-time transient model (RTTM)-based LoRa WAN oil pipeline leak detection system is maintained and increased in terms of continued monitoring and a quick detection response time by applying machine learning techniques that enhance node power consumption and extend the node battery lifetime.
  • The number of hardware resources utilized to implement the wireless network of the proposed system is optimized due to the selection of long-range (LoRa) technology, which offers several benefits over other wireless communication technologies, especially in terms of environmental monitoring systems that deploy the Internet of things (IoT) and low-power, wide-area network (LP-WAN) applications.
  • The whole of the LoRaWAN network’s performance, especially in the context of LoRa node power consumption, was significantly improved by implementing different approaches of machine learning techniques using the LoRa network. The hybrid deep extreme learning machine model provided impressive results in improving network performance, e.g., power consumption, packet loss, and packet delay, compared with that of other models.

1.3. Paper Organization

The rest of this article is organized as follows: Section 2 presents a survey of the related literature and the research problems. Section 3 offers a brief overview of the LoRaWAN technology, machine learning techniques, and the main conception of the deep learning approach and presents the simulator that will be used to implement the network of the proposed leak detection and monitoring system (LDMS), in addition to the main libraries and frameworks utilized to implement the FLoRa network and different approaches to artificial intelligence using the LoRa network. Section 4 describes an appropriate leak detection model to achieve the functions of real-time pipeline monitoring, leak detection, and localization system implementation using the LoRaWAN protocol and the implementation of different approaches to artificial intelligence algorithms for enhancing the performance of a wireless network. Section 5 presents the results and a discussion of the research findings. The conclusion and future work are presented in Section 6.

2. Literature Survey

2.1. Related Work

A concentrated survey of the literature, especially that on approaches that employ wireless sensor networks and artificial intelligence for oil pipeline leak detection systems, is presented in this section. In 2015, Mustafa Alper Akkas et al. [11] focused on employing the electromagnetic approach based on wireless underground sensor network (WUSN-based EM) communication techniques for oil pipeline networks. Their research explained a suitable transmission range that is optimal in terms of the intake losses of the compound underground oil pipeline network and determined the efficient communication distance between sensing nodes operating at 315 MHz in an underwater environment. In 2015, Ola E. Elnaggar et al. [12] studied the problems of linear sensor placement in oil pipeline monitoring. They applied two evolutional algorithms to resolve the issue regarding deploying the optimal number of sensors, i.e., ant colony optimization (ACO) and a genetic algorithm (GA), to realize the aims of the deployment procedure and maximize the coverage of the pipeline, thus creating a connected network and extending the lifetime of the whole network.
In 2020, Lam-Thanh Tu et al. [13] utilized the deep learning (DL) approach with LoRa technology to achieve the optimal transmitting power, which is useful for maximizing energy efficiency (EE) in LoRa networks. In 2018, Brecht Reynders et al. [14] proposed a novel MAC protocol to enhance the scalability and reliability of LoRaWAN. A lightweight scheduling algorithm was implemented by dividing a huge number of nodes into several groups, while similar values of transmission powers were used in each group to reduce the capture effect. In 2018, Arliones Hoeller et al. [15] proposed message replication and gateways with multiple receiving antennas to accomplish, respectively, the temporal and spatial diversity of a LoRa network. Their study presented the proposed schemes and assessed them through theoretical analysis and computer simulations. The final results showed that LoRa networks are very sensitive to user increases and traffic density, but the proposed technique can enhance performance.
In 2020, Duc-Tuyen Ta et al. [16] developed a LoRaWAN simulator that integrated with the multi-armed bandit and reinforcement learning (RL) algorithms to formulate and find a professional resource allocation solution for LoRa endpoints. In 2021, Inaam Ilahi et al. [17] presented an intelligent deep reinforcement learning algorithm for multichannel resource allocation in dense LoRa networks, known as the LoRa-DR technique, which enhanced LoRaWAN’s packet delivery ratio and ensured lower power consumption; therefore, the lifetime and network capacity were increased. In 2022, Merin Susan Philip et al. [18] proposed a LoRa-based energy consumption model that can predict the amount of energy consumed for each sensing node in a WSN. The study showed that the average energy consumption and lifespan of a battery are affected by a decreasing sensing interval and an increasing spreading factor of the standard parameters of LoRa.
In 2021, Seham Ibrahem Abd Elkarim et al. [19] introduced a smart spreading factor (SF) assignment method that depended on the different structural designs of artificial neural networks to detect collisions and selected optimal SFs to reduce the probability of collisions and improve network performance, addressing issues such as the energy consumption for the LoRa network. In 2022, Benyamin Teymuri et al. [20] introduced a new approach using the multi-armed bandit (MAB) technique to set LoRa end devices’ transmission power parameters in a centralized manner over the network server side, while also improving the energy consumption.
In 2023, Olaide Agbolade et al. [21] presented a LoRaWAN-based flow-rater approach for detecting and localizing leaks in pipelines. They included an investigational setup that simulated a pipeline network with flow rate and pressure sensor measurements. In 2023, Mohammed Jouhari et al. [22] presented a deep reinforcement learning technique to enhance the energy efficiency in wireless LoRa networks that consisted of flying gateways to expand the lifetime of the networks and LoRa end devices. The trained model could efficiently reallocate the spreading factors (SFs) and adjust the transmission powers (TPs) to achieve network performance enhancement. In 2023, Dere S. et al. [23] presented an approach to implementing an IoT monitoring kit for pressure rate logging in pipeline systems. It applied a pressure sensor and GSM model to gather and send pressure information in a real-time manner in order to detect, localize, and monitor leaks through a mobile application service.
In 2023, Ali Loubany et al. [24] presented an efficient algorithm for enhancing the energy consumption of LoRaWAN networks via a compound of gateways by applying the selection of spreading factors and power controlling. In 2022, Chavala Lakshmi Narayana et al. [25] offered a methodology for oil pipeline monitoring over long distances by applying the LoRa communication protocol and sensor node installation along the pipeline. In 2023, Surenther et al. [26] presented a deep-learning-based grouping model approach, called the DL-GMA technique, that enhanced energy utilization in wireless sensor networks. This approach extends the WSN’s lifetime and increases the efficiency of data transmission.
In 2020, Teoh Ji Sheng et al. [27] developed a smart waste management system utilizing a TensorFlow-based deep learning approach with a LoRa communication protocol to build a real-time monitoring system and achieve better performance in the waste management field. In 2024, Salaheddin Hosseinzadeh et al. [28] proposed a scheme that splits feature extraction from regression analysis, reducing the need for training data. They achieved the lowest root-mean-square error gradient by applying boosting based on the decision tree technique. As a result, they enhanced the accuracy of LoRaWAN propagation estimation and improved the analysis of the link budget, interference management, quality of service (QoS), scalability, and energy efficiency in the entire network.
In 2023, Višnja Križanović et al. [29] presented an optimization approach for energy consumption in terms of selecting the proper data collection processes. It was proven that tuning the transmission rate according to the actual size of the packet payload is important to improve the energy efficiency of communication. In 2022, Syed Usama Minhaj et al. [30] presented the new concept of applying two approaches to machine learning for assigning spreading factors (SFs) and the transmitting power of LoRa end devices by using a combination of centralized and decentralized approaches. SFs are allocated to the devices using reinforcement learning for contextual bandit problems; on the other hand, transmission power is allocated centrally by applying machine learning techniques. In 2018, Vignesh Mahalingam Suresh et al. [31] presented a solution that deploys a machine learning approach on the edge of LoRa network devices and enhances the power transmission values through LoRa by compressing the transmitted data at a very high ratio, reaching 500 times that of conventional methods.
In 2021, Lam-Thanh Tu et al. [32] presented a framework that was derived by investing the tools of stochastic geometry and linking the long-range (LoRa) energy efficiency parameters with the density of the end devices and their transmitting power. The result shows the maximization of energy efficiency. In 2020, Inaam Ilahi et al. [33] presented a deep reinforcement learning algorithm based on physical-layer transmission parameters to enhance LoRaWAN performance and guarantee a decrease in packet collisions over the network channel. In 2023, M.D. Rakibul Islam et al. [34] presented a mathematical approach for a multi-hop network that adjusts the Distance Ring Exponential Station Generator (DRESG) framework. This research covers the most important issues, such as interference, power transition limitations, and different environmental conditions. In 2023, Zhang et al. [35] presented an innovative, reliable, energy-efficient model assisted by beamforming with a firmware update over the air (FUOTA) for LoRa networks; this system was named FLoRa, and it featured several techniques, including delta scripting, channel coding, and beamforming. The FLoRa model enhances the network reliability for transmission by up to 1.51× and the energy efficiency by up to 2.65× compared with the present solutions in LoRaWAN. Table 1 provides a summary of the most relevant works discussing oil pipeline monitoring systems, specifically the enhancements of LoRaWAN network performance in these and other systems.

2.2. Research Problems

The related work presented in this literature survey covered more than ten years, and the primary focus was either the approach to enhancing oil pipeline leak detection systems or highlighting the LoRa network performance with a limited ratio of enhancement. During this research, the following issues and challenges were identified:
  • A real-time transient model (RTTM) was developed as a robust technique for accurate leak detection, while the integration with LoRaWAN for real-time monitoring presents challenges in the achievement of energy efficiency.
  • Current LoRa-based monitoring and leak detection systems lack the power optimization needed for continuous and reliable operation. This issue decreases the node lifespan and affects the feasibility of continued leak detection.
  • The standard LoRaWAN does not efficiently balance power consumption and the high-rate data transmission required by RTTM-based oil pipeline leak detection systems.
  • According to the achievements in related and previous work, this research reports the need for an optimized LoRaWAN model that deploys different aspects of machine learning techniques to reduce the node power consumption with the target of reaching a 40% reduction with respect to the baseline power consumption of the standard LoRa network configuration, as well as the need to enhance the node packet delay and number of packets lost over the entire network, while maintaining the reliability, which is necessary for stable real-time leak detection and localization operations.

3. Proposed Model Techniques

3.1. LoRa Overview: What Is LoRa?

LoRa refers to a long-range wireless communication technique introduced by the LoRa Alliance and developed by Semtex. It is used in wireless metropolitan area networks (WMANs). LoRa was proposed to support wireless network services for devices with limited resources, such as battery-operated devices and those with low data rates that do not exceed 100 kbps, and it has a long-distance coverage of up to 20 km [36,37,38].
LoRa is considered a low-power, long-coverage-range wireless communication technique that transfers small-sized data over long distances. These important features make it a preferred choice for IoT industries. LoRaWAN is an application layer that calculates how devices utilize the LoRa hardware. In addition to this concept, various challenges related to LoRa are being overcome in different fields, such as those associated with weather conditions, pollution, and disasters, as well as operations related to measuring energy monitoring and consumption or production in several renewable energy systems [39].
LoRa is preferred for its simplicity because it is considered a cost-effective solution, so it is broadly utilized in smart system engineering, transportation, agriculture, household appliances, and the oil and gas industry. In the LoRa network, the desired data are sent over longer distances than those with other wireless communication technologies, such as Bluetooth, Wi-Fi, and Zigbee. The standards of the LoRaWAN configuration ensure that it provides integrity with different devices; this is a key reason why the LoRa technology was so quickly integrated into smart systems and the IoT field. A LoRa network links densely connected networks, which consist of a huge number of endpoint devices, and this makes it able to observe, detect, and monitor information over a huge number of nodes in a specialized manner. The structure of LoRaWAN has four components: end-point devices, gateways, an application server, and a network server. In addition, the LoRa network’s stack protocol presents and focuses on the layers involved in data transmission, such as the physical layer, the data link layer, and the application layer [40]. The LoRa network structure and stack protocol are shown in Figure 1.

LoRa Transmission Parameters

The endpoints of LoRa configure and employ several attributes, such as separating factors, bandwidths, the correction rate, and the transmitting power, which result in many opportunities for variation. A LoRa network’s efficiency is significantly affected by the setting of these attributes; calculating the appropriate configuration and adjusting the value of energy transmitted while still providing the necessary range of communication performance is an important challenge that should be addressed. Therefore, it is vital to select transmission attributes that fit with the LoRa network.
  • Spreading Factor: The spreading factor calculates how much a signal spreads in time. The SF is obtained by dividing the rate of the chip over the rate of the symbol; in other words, the SF refers to the number of bits represented by a specific symbol. When the value of the SF increases, the signal-to-noise ratio (SNR) also increases, resulting in increased sensitivity and range. The LoRaWAN spreading factor standards range between 7 and 12, indicating that a higher value of the spreading factor improves the limit of the communication range by scaling the reactivity for the receiver side, while the data rate is reduced. Thus, higher SF values lead to high LoRa node power consumption.
  • Bandwidth: The bandwidth denotes the range of various frequencies that the signal or a communication channel can hold. It is typically calculated in hertz (Hz) and refers to the difference between the highest and lowest frequencies that can travel over a channel. Typical bandwidth ranges for the LoRa network are 125 kHz, 250 kHz, and 500 kHz. A wide range of bandwidths can lead to a higher data rate but at the same time, reduce the coverage range due to increasing noise levels.
  • Coding Rate: The LoRa custom error-coding approach improves the range of wireless connections. The outcomes of the CR provide extra information that should be carried over the physical layer of the LoRa payload, and this is adjusted using the coding rate attribute. The coding rate refers to the level of redundancy added to the transmitted data for error correction. LoRa provides four CR configurations: 4/5, 4/6, 4/7, and 4/8. A lower value of the CR, e.g., 4/5, means less redundancy, which leads to higher throughput but lower robustness to interference, while a higher CR provides improved error correction abilities but at the cost of the data rate.
  • Transmission Power: The transmission power is a crucial approach for the delivery of data packets in the LoRa network, so it should be adjusted properly. Making the value of the transmission power low will extend the life of the battery while making the signal range shorter, and vice versa. The most common range of TP values is between 2 dBm and 20 dBm for most LoRa devices, making balancing the TP important for optimizing performance [41].

3.2. Machine Learning: A General Overview

Machine learning is an area of research that is important and rich in information and applications in the IoT field; it involves giving computer programs the ability to enhance their performance depending on old experiences. In general, machine learning consists of different stages, such as data processing, training a model on specific data, and finally, testing the model to evaluate the system’s performance [42].
To accomplish this approach, different machine learning techniques are reviewed to evaluate the data prediction accuracy by finding relationships and extracting features between various huge amounts of data. When using a regression approach, the random forest algorithm is considered one of the most powerful ensemble learning techniques, and it combines multiple groups of decision trees to make predictions. The random forest has been compared with other regression algorithms, such as support vector regression (SVR), linear regression, k-nearest neighbors (k-NN), the decision tree (DT), and gradient-boosting machines (GBMs) [43,44].
Although the random forest algorithm suffers from several limitations, such as intensive computational load, difficulties in fine-tuning for certain high-precision tasks, and greater memory consumption, it has proven to be effective for many factors, such as handling high-dimensional datasets with large and nonlinear features, providing interpretability, demonstrating robustness to overfitting, and handling missing values [45,46]. Table 2 presents a brief review of the most efficient regression techniques, focusing on the weaknesses and strengths of each one and why the random forest algorithm was selected [47].
While machine learning has innovative applications in wireless communication for enhancing network performance parameters, such as efficiency and security requirements, there are still limitations in its ability to address resource management and help in decision making in situations that depend on IoT applications within LoRaWAN. However, machine learning algorithms have a clear ability to enhance the efficiency of LoRaWANs through dynamic resource allocation, network traffic prediction, interference modification, and energy savings, ultimately refining the network’s reliability, capacity, and power consumption [48,49].
The deep extreme learning machine (DELM) presents several distinct benefits over traditional machine learning methods, neural networks, and other deep learning approaches. Unlike classical machine learning, which often requires manual feature extraction and iterative fine-tuning of the parameters, the DELM leverages random weights for the initialization of the hidden layer and initiative weights for the computation of the output. These features not only make the implementation simpler but also decrease the training times impressively. Unlike conventional neural networks, which may suffer from long and extensive training processes as a result of the backpropagation process, DELM is a one-shot learning method that decreases the computational overhead while maintaining competitive accuracy in tasks such as regression and classification. Furthermore, the DELM’s ability to study hierarchical representations through multiple levels of layers improves its ability to capture complicated patterns in data, making it suitable for complicated datasets in various domains such as natural language processing, image recognition, and the analysis of sensor data.
DELM models suffer from different limitations in terms of random weight initialization, and they may require difficult and careful configuration to achieve consistent performance. In addition, sometimes, their accuracy can be limited by the lack of a backpropagation technique, which is discarded to speed up the training process. They stand out for their scalability, efficiency, and forceful performance, making them effective tools in recent machine learning research and applications [50].

3.3. Network Simulator

In this section, we explain the simulation environment and several tools that will be selected for modeling and analyzing the FLoRa network’s performance. An overview of the network simulator and several frameworks and libraries that will be selected is presented below.
  • OMNeT++: OMNeT++ is an abbreviation for object module networks simulator. It is a flexible and expandable network simulator that depends on the C++ language and its libraries. OMNeT++, an object-oriented modular framework for simulating discrete-event networks, boasts a generic architecture. This flexibility allows it to tackle a wide range of problems, such as modeling communication networks for both wired and wireless situations, protocol schemes and analysis, queuing network performance, distributed hardware systems and multiprocessors, validation of hardware architecture, and complex software performance evaluation. These components developed in C++ are built hierarchically, and simple components can be collected to build compound models, which are used in a high-level network description (NED) language. OMNeT++ can support different technologies, such as Wi-Fi, ZigBee, LTE, and LoRa [51].
  • FLoRa: FLoRa is the LoRa framework; it is a software framework for deploying end-to-end simulations of long-coverage-range networks. FLoRa is based on the OMNeT++ simulator and INET framework. FLoRa ensures the creation of LoRa networks with modules such as LoRa nodes, gateways, and network and application servers. The concept of an application in OMNeT++ can be deployed using independent modules that are linked to the network server. The network server and LoRa nodes support effective system management configuration and parameter adjustment by applying the adaptive data rate (ADR) technique. In addition, the statistics on energy consumption are composed and calculated for every node [51].
  • Scikit-learn, often called sklearn, is a common open-source machine learning library used with Python. It is constructed on top of Matplotlib, NumPy, and SciPy and provides an efficient and simple tool for data analysis and mining tasks, with vital tools and algorithms for tasks ranging from regression and classification to clustering and dimensional reduction. In addition, pandas is commonly utilized for data cleaning, manipulation, handling, transformation, and analyzing various domains more flexibly; it is used in finance, statistics, economics, etc. From the perspective of network parameter enhancement, it is important to combine and merge huge datasets and implement various data operations, such as data cleaning, handling missing data, duplication removal, reshaping, and data transformation [52].
  • Extreme Learning Machine: The high-performance extreme learning machine library is a Python-dependent implementation of the extreme learning machine (ELM) algorithm. It is considered to be fast, efficient, and capable of handling huge datasets. It is expressly preferred for tasks such as regression and classification approaches, and it provides approaches to both neural networks and single-layer and multiple-layer ELMs, permitting users to create complex models depending on the problem’s requirements [53].

4. Network Implementation and Learning Algorithm

This section investigates the simulation environment, techniques, and implementation tools used to build and analyze the FLoRa network for oil pipeline leak detection and localization within the OMNeT++ framework. We will explore how OMNeT++ can be integrated with several network libraries and how Python libraries such as Keras and TensorFlow can be utilized to implement and analyze deep learning algorithms in real-time network scenarios.

4.1. Default LoRa Network

The oil pipeline leak detection and localization monitoring system will be deployed in OMNeT++, based on the Inet and FLoRa frameworks, to cover the network part of a pipeline with a length of 200 km.
An oil pipeline monitoring system is proposed to calculate a leak’s volume and detect the specific location of a leak in a pipeline. Generally, it consists of two parts; the first is the endpoint-sensing part, which divides the pipeline into 100 segments. Each segment has a group of sensors deployed in the inlet and outlet parts of a pipeline segment, e.g., a pressure sensor, temperature sensor, and flow meter. Each specific sensor is used to read a certain value of the oil state, and each group of sensors is connected with LoRa nodes, which are used to collect the sensed data and transmit them to the central server. The second part of the proposed monitoring system is the real-time transient model (RTTM) technique, which is located on the LoRa server side, and it is responsible for mathematical calculations to achieve real-time monitoring and the detection of leak points.
The network design of the proposed system is described as follows:
  • The LoRa network consists of 100 LoRa nodes to cover the whole oil pipeline network.
  • Each pair of sequential nodes in the pipeline network is separated by two kilometers. This distance refers to a single pipeline segment supplied with two sensors for the inlet and outlet.
  • The network comprises ten LoRa gateways, separated over the oil pipeline network, and each one boasts a wireless coverage radius of twenty kilometers.
  • Every ten nodes attach wirelessly to a single LoRa gateway. These nodes work as sensors used to transmit the instant parameters of the oil for each pipeline segment, such as the pressure (Pt), instant time, flow rate (M), and temperature (Temp) (for both the inlet and outlet), as well as the node identifier.
  • LoRa gateways act as bridges between endpoints and the LoRaWAN server, connecting via the cloud. They are responsible for managing connections, establishing and coordinating the connected nodes, and ultimately, forwarding the sensed data to the LoRa server for further processing.
  • The function of the LoRa server is to continuously monitor the pipeline status within the simulation. On the server side, a real-time transient model is deployed to calculate the leak locations and quantities in the pipeline. To achieve this, it calculates the discrepancies, which are represented by X, which is, depending on the calculation, the difference between the values of the inlet simulated and measured (sensor) flow rate and the calculated values of the inlet flow rate, and Y refers to the same parameters but for outlet flow rates in the pipeline segment via a specific mathematical equation.
  X = M   I n   ( c a l ) M   I n ( m e s )
Y = M   O u t   ( c a l ) M   O u t   ( m e s )
where
  • M I n ( c a l ) = calculated flow rate for the inlet;
  • M I n ( m e s ) = simulated and measured flow rate for the inlet;
  • M O u t ( c a l ) = calculated flow rate for the outlet;
  • M O u t m e s   = simulated and measured flow rate for the outlet.
7.
The leak flow rate value M (Leak) is calculated by using the following equation:
M   ( L e a k ) = X Y
8.
The leak position value in meters (m) X (Leak) is calculated by using the following equation:
X ( L e a k ) = ( Y /   M )     L e + N u     L e  
where the parameter Le is the pipeline segment length, and Nu refers to the number of LoRa nodes. The RTTM continuously utilizes the outcomes of various sensor measurements, such as the pressure, temperature, and flow rate; these are applied in a series of equations on the LoRa server to provide the necessary values for the leak calculations. This scenario validates a successful deployment of real-time LoRa technology selected for the proposed system due to its efficiency in terms of low power consumption and long-range communication and its presentation of distinct benefits over competing technologies [54]. Table 3 presents a sample of the output of the OMNeT++ oil-pipeline-based LoRa network monitoring system, Table 4 explains the basic configuration of the OMNeT++ LoRa network, and Figure 2 shows the network design of the proposed system.

4.2. Random Forest Model

In this section, we will present the random forest algorithm as an important machine learning technique for building a prediction model to enhance the LoRa network’s performance. Ensemble learning is a machine learning approach that combines multiple individual models to build a more influential predictive model. The essential concept is that by combining the predictions of several models, the ensemble process can achieve better accuracy and strength than the single model when processed on its own.
The process of data transmission in the LoRA network infrastructure of the oil pipeline monitoring system happens when LoRa endpoint devices send information to the server via separate gateways within the oil pipeline. The random forest model is connected with the FLoRa server to process the LoRa network parameters, which are related to the flow of incoming data and improve the network output performance depending on the trained dataset, which is created by collecting the LoRa network parameters from OMNeT++ by running the LoRa network in multiple scenarios with different network transmission parameters and recording its corresponding output performance for seven continuous days.
The main goal of using the random forest algorithm is to predict and improve the network output performance by implementing the regression task based on building multiple decision trees and combining them to obtain a more accurate and steady-state prediction. To achieve the best performance, the random forest model is adjusted with 100 decision trees, the maximum depth of the trees is 15, the minimum number of samples required to split an internal node is 5, and the minimum number of samples per leaf to adjust the minimum sample number required at a leaf node is 2. Efficiently, it obtained the underlying patterns in the data, providing a hard baseline for the proposed model. Table 5 explains the features of the dataset’s components. The mathematical approach is described in the following equations.
y ^ = 1 M Σ m = 1 M T m ( x )
where
  • M is the number of trees in the forest;
  • Tm (X) is the output of each decision tree for the input (x);
  • y ^ is the predicted output.
P C p r e d = 1 M Σ m = 1 M T m ( X P C )
where P C p r e d refers to the value of the predicted power consumption, M is the number of trees in the forest, Tm is the output of each decision tree, and XPC represents the input feature vectors of each decision tree related to power consumption.
P D p r e d = 1 M Σ m = 1 M T m ( X P D )
where P D p r e d refers to the value of predicted delayed packets, M is the number of trees in the forest, Tm is the output of each decision tree, and XPD represents the input feature vectors of each decision tree for the input (x) related to the packet delay.
P L p r e d = 1 M Σ m = 1 M T m ( X P L )
where P L p r e d refers to predicted lost packets, M is the number of trees in the forest, Tm is the output of each decision tree, and XPL represents the input feature vectors of each decision tree for the input (x) related to the packet loss [44].

4.3. Deep Extreme Learning Machine Model

In this section, we will explain the effect of deep learning algorithms on the enhancement of LoRa network parameters and try to obtain better performance than that obtained with the random forest model. Deep extreme learning machine (DELM) is a branch of machine learning that presents the ability to analyze complex patterns and find the relationships within data patterns more accurately and faster than traditional machine and deep learning techniques because it utilizes random weights during the initialization of the hidden layer, requiring no reiterative backpropagation for training, making it well suited for optimizing and predicting network performance.
A DELM model is deployed to perform analysis on the dataset, which includes the incoming data packet information and the LoRa network parameters. By processing the features in parallel advanced neural network architectures, deep learning algorithms can intelligently regulate node power levels based on previous experience and different factors, e.g., traffic volume, network congestion, transmission power, bandwidth, the spreading factor, coding rate, queuing time, data rate, and the proximity of other devices, as illustrated in Table 4.
This intelligent power management strategy minimizes energy waste and extends node battery life, in addition to enhancing the overall network efficiency. The input layer, which contains 25 densely connected neurons, receives data representing various network parameters. These data are then passed through a sequence of hidden layers where patterns in the input data are identified and extracted. The first hidden layer and second hidden layer act as the root of the network architecture, where complex transformations and computations occur to optimize and enhance the network parameters within these layers.
The DELM model learns complicated relationships between input features and target outputs. Deploying the tanh activation function, it is an innovative technique used to transform the network’s inputs, improving the ability of the model to catch complex patterns without repetitively adjusting the internal weights and biases, leading to a quick process and accuracy in the desired results.
After multiple stages of testing and tuning the DELM neural network, we obtained the best results with two hidden layers—the first with 50 neurons and the second with 35 neurons. The output layer, involving three neurons, provides the final prediction for the network enhancement parameters, and this is based on the most accurate processed input data. Figure 3 describes the DELM neural network structure. The mathematical approach of the DELM model is described in the following equations [55].
  H 1 = σ ( W 1 X + b 1 )
where
  • W1 is a weight matrix that is randomly initialized for the first hidden layer;
  • X = { x 1 . x 2 …, x n };
  • b1 is the bias vector;
  • σ is the tanh activation function.
H 2 = σ ( W 2 H 1 + b 2 )
where
  • W2 is a weight matrix that is randomly initialized for the second hidden layer;
  • H 1 is the output of the first hidden layer, and b2 is the bias vector.
β = H + 2 Y
where
  • β is the output weight matrix;
  • H + 2 is the Moore–Penrose pseudoinverse of the second hidden layer output;
  • Y includes the actual values of node power consumption, packet delay, and loss coming from the dataset.
The DELM model regulates its weights for each metric by training with these specific target values to obtain accurate predictions in each case.
Y p r e d = f ( H 2     β )
where
  • H 2 i s the second hidden layer’s output;
  • f is the linear activation function applied for the output layer;
  • Y pred is the predicted output, representing the predicted enhanced network parameters.
We used the mean square error as the cost function to measure the difference between the predicted and actual values as a measure of the model’s accuracy [54].
MSE = 1 n Σ i = 1 n ( y i y i ^ ) 2
where
  • y i is the actual value of the network parameter;
  • y i ^ is the predicted value from the model;
  • N is the number of data points in the dataset.
The mathematical approach used to calculate the predicted enhanced parameters of the LoRa network are described below:
P C p r e d   = f   ( H 2   β )
where f represents the linear activation that guarantees continuous predicted output, H 2   is the final hidden layer’s output, and β represents the calculated output weights depending on the training data for power consumption.
P D p r e d = g   ( H 2   β )
where g represents the linear activation function for the output layer, H 2   is the final hidden layer’s output, which is related to the predicted packet delay, and β represents the calculated output weights depending on the training data for the packet delay.
P L p r e d = h ( H 2   β )
where h is the linear activation function used to predict the continuous packet loss, H 2 is the output of the final hidden layer, which is related to the predicted packet loss, and β represents the output weights, which are calculated depending on the training data for packet loss.

4.4. Hybrid DELM Model

The hybrid DELM model combines the deep extreme learning machine model and the random forest model. It utilizes the DELM’s ability to learn complex nonlinear relationships due to its deep behavior and flexibility in neuron configuration, with fast processes according to its feature of random weight initialization and the strength of the random forest technique to decrease overfitting by bagging and averaging multiple decision trees, making it strong with noisy data and effective for high-dimensional datasets. The random forest model efficiently obtains the underlying patterns in the data, providing a hard baseline for the proposed model. Simultaneously, the DELM was employed due to its rapid learning abilities, employing a two-hidden-layer structure, with neurons activated by the hyperbolic tangent activation function, which smoothed the modeling of complex relationships among the nonlinear features. The predictions that were achieved from both models were averaged to formulate a comprehensive output.
The hybrid approach achieved a great reduction in the mean squared error (MSE) to 0.9, indicating its effectiveness in enhancing the accuracy of predictions for LoRa network performance in terms of power consumption, packet loss, and packet delay, depending on an accurate understanding of the complex relationships between the selected input features, such as the spreading factor, transmission power, coding rate, and bandwidth, which led to a perfect enhancement.
Finally, the proposed model is integrated with a random search optimization technique, and they work together to select the best LoRa network node parameters, such as the spreading factor, bandwidth, coding rate, and transmission power, and the LoRa server is informed to reconfigure the LoRa node parameters. However, the hybrid DELM presents some limitations in different aspects, such as increasing the complexity by combining two models as one unit, which leads to more computational processing and tuning, and it may require intensive memory and more execution time to deploy.
The hybrid DELM approach is absolutely valuable for systems with complex and nonlinear relationships, especially when the accuracy and processing time are critical, such as in wireless sensor networks or real-time monitoring applications. The integration of these advanced machine learning techniques not only improved the LoRaWAN resource utilization but also contributed to the improvement of the overall performance of the monitoring system. The pseudocode of the hybrid DELM model is provided in Algorithm 1. Figure 4 describes the workflow of the DELM model and how it can be integrated with LoRaWAN to enhance its performance. The mathematical equations that were employed to evaluate the predicted network performance are described in the following equations:
P C = i = 0 N P ( i )  
where
  • P C is the total power consumption in the network;
  • P i is the power consumption of node (i);
  • N is the total number of nodes in the network.
P D = i = 0 N T i N  
where
  • P D is the average packet delay;
  • T i is the delay of the packet (i);
  • N is the total number of nodes in the network.
P L = i = 0 N L ( i )
where
  • P L is the total packet loss;
  • L i is the number of lost packets of node (i);
  • N is the total number of nodes in the network.
E R = i = 0 N ( A V i P V i A V ( i ) )     100  
where
  • E R is the total percentage of the model enhancement ratio;
  • A V i is the actual value of node i;
  • P V i is the predicted value of node i.
Algorithm 1: Pseudocode of the proposed hybrid DELM model
Input: Dataset with network parameters (SF, TP, BW, CR, PC, PD, PL, etc.)
Output: Predicted power consumption, packet delay, packet loss
1. Initialization
1.1 Import necessary libraries (pandas, NumPy, scikit-learn, random forest, hpelm, matplotlib).
1.2 Load the dataset.
1.3 Initialize the target network parameters (power consumption, packet delay, packet loss).
2. Data Preprocessing and Feature Extraction
2.1 Drop unwanted columns from the dataset.
2.2 Data filtering based on specific conditions (deleting rows with zero values in key parameters).
2.3 Filling missing values in related columns.
2.4. Divide the dataset into two sets: training and testing.
2.5 Extract relevant features (SF, TP, BW, CR, etc.).
2.6 Define target variables for optimization (power consumption, packet delay, packet loss).
3. Model Architecture
3.1 Explain input layer features.
3.2 Set two models for the hybrid approach:
  • Random forest model for the baseline point of prediction.
  • DELM model for achieving enhanced prediction.
3.3 Set up the random forest model with optimal hyperparameters (100 trees).
3.4 Initialize the DELM model with two hidden layers:
  • Add the first hidden layer: 16 neurons;
  • Add the second hidden layer: 8 neurons (main enhancement layer);
  • Add an output layer with 1 neuron (predicted enhancement).
4. Hybrid DELM Model Training
4.1 Train the random forest model on the training data.
4.2 Apply bootstrapping on the training data.
4.2.2 Build decision trees based on the split features.
4.2.3 Aggregate predictions depending on individual trees (bagging).
4.3 Generate baseline predictions for power consumption, packet delay,
and packet loss.
4.4 Assess the baseline performance using cross-validation.
4.5 Initialize weights and biases randomly in the DELM model.
4.6 For each cross-validation fold:
4.6.1 Train the DELM model on the training dataset.
4.6.2 Apply forward propagation on the input data to calculate predictions.
4.6.3 Validate the model with the testing set for each fold.
4.7 Combine the predictions from the random forest and DELM using an ensemble approach.
4.8 Average the outputs of both models by applying weighted averaging based on the validation results.
4.8 Select the combination of parameters (SF, TP, BW, CR) with the lowest MSE as the optimized parameters for the best prediction.
5. Model Validation
5.1 Evaluate model performance using the mean squared error.
5.2 Compare the predicted and target values to calculate the enhancement ratio.
6. OMNeT++ simulation integration
6.1 Connect the OMNeT++ simulation with the hybrid DELM model.
6.2 For each data packet in real time:
6.2.1 Extract features.
6.2.2 The hybrid model predicts the output depending on the optimized parameters.
6.2.3 Update the network with the optimized parameters (SF, TP, BW, CR).
7. Output
7.1 Display the enhanced network parameters.
7.2 Save results for analysis.

5. Results and Discussion

In this section, we will discuss the output performance results of the wireless LoRa network for the oil pipeline leak detection and localization system in different scenarios. Although the proposed RTTM-based LoRaWAN monitoring system achieved the desired objective with the default configuration of the LoRa network in terms of detecting the leak quantity and location, in addition to providing real-time monitoring of oil pipeline status, such as the pressure, flow rate, and temperature in an accurate manner, we were motivated to maintain the system’s efficiency over time so that it could work with the same efficiency by enhancing the node energy consumption and prolonging the battery life by utilizing the artificial intelligence techniques. The implementation of machine learning techniques presents a great solution that utilizes the strength of prediction, hyperparameter tuning, and optimization to enhance the output of the LoRa network with the best combination of network parameters, such as the spreading factors, transmission power, bandwidth, and coding rate.
Firstly, the default LoRa network was run, according to our proposed design, with 100 LoRa nodes within the OMNeT++ simulation. The results were tested and analyzed to calculate the total network output performance with network parameters of SF = 12, TP = 14, BW = 125 kHz, and CR = 4. The second scenario involved implementing the random forest regression model on a real-time dataset that was collected from the LoRa network. The total predicted LoRa node power consumption was enhanced by 19% compared with the default LoRa network performance with suggested network parameters of SF = 12, TP = 12, BW = 125 kHz, and CR = 3, with an accuracy of 83 in terms of the MSE.
Thirdly, the DELM model was executed, and the total enhancement ratio of the LoRa node power consumption with the proposed parameters of SF = 11, TP = 10, BW = 250 kHz, and CR = 3 was calculated, reaching 29% compared with that of the default LoRa network performance, and the model accuracy decreased to 27. Finally, the hybrid DELM model was implemented, and a perfect enhancement ratio was achieved with network parameters of SF = 9, TP = 8, BW = 250 kHz, and CR = 2 for the total predicted LoRa node power consumption, reaching 39% with a model accuracy of 0.75. We also analyzed the other output results of OMNET++, such as time period intervals and the number of transmitted packets, to calculate the node packet delay and packet loss and to evaluate the network performance. We obtained different enhancement ratios for packet delay and packet loss by applying the proposed machine learning models; with the hybrid DELM model, we achieved 33% and 31% for the total packet delay and packet loss, respectively.
All the results are described in Table 6, as shown below. The final results reveal that the hybrid DELM model presents a perfect enhancement of LoRa network performance. Table 7 explains the effect of the proposed models on the LoRa node performance; node no. 3 was randomly selected for presentation. Figure 5 shows the enhancement of LoRa network performance by applying the hybrid DELM in comparison with the DELM model, random forest, and default LoRa network.

6. Conclusion and Future Work

In this research paper, an integrated oil pipeline monitoring solution based on wireless sensor networks was implemented. LoRaWAN was selected as the network infrastructure for the proposed model. The objective of this work was focused on two approaches; the first was the implementation of a real-time oil pipeline monitoring system by utilizing a real-time transient model with LoRaWAN technology to achieve high accuracy in terms of detecting the leak quantity and location while taking advantage of the abilities of LoRa to implement the proposed system with the fewest hardware resources. Second, different machine learning techniques were deployed to enhance the LoRa network performance, including the random forest algorithm, which enhanced the LoRa node performance by 18%, 17%, and 14% in terms of power consumption, packet delay, and packet loss, respectively, compared with the results for the default LoRa network. The DELM model achieved better results, with enhancement ratios of 29%, 26%, and 23%, respectively.
Finally, the hybrid DELM model was selected due to its effectiveness and efficiency in achieving the objective of the study; it achieved a LoRa node power reduction of 39%, with a model accuracy of 0.75. Looking ahead, further research and efforts should be focused on developing the hybrid DELM model to enable it to overcome some limitations, including the computational process, execution time, and intensive memory requirements, in order to achieve more advanced network optimization tasks.

Author Contributions

Conceptualization, A.K., H.T. and F.D.; methodology, A.K.; formal analysis, A.K., H.T. and F.D.; investigation, A.K.; writing—original draft preparation, A.K.; supervision, H.T. and F.D. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

Data were derived from public-domain resources.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Jassim, W.M.; Abdelkareem, A.E. Improved the monitoring performance of oil pipeline using underwater wireless sensor networks. Int. J. Innov. Res. Electron. Commun. 2020, 7, 28–36. [Google Scholar]
  2. AL-Kadia, T.; AL-Tuwaijrib, Z.; AL-Omrana, A. Wireless sensor networks for Leakage detection in underground pipelines. Procedia Comput. Sci. 2013, 21, 491–498. [Google Scholar] [CrossRef]
  3. Chuka, C.E.; Freedom, I.H.; Anthony, U. Transient model-based leak detection and localization technique for crude oil pipelines. Saudi J. Eng. Technol. 2016, 1, 37–48. [Google Scholar] [CrossRef]
  4. Kubba, A.R.; Trabelsi, H. Implementation of Efficient Oil Pipelines Leak Detection and Localization System using RTTM. In Proceedings of the 2023 20th International Multi-Conference on Systems, Signals & Devices (SSD), Mahdia, Tunisia, 20–23 February 2023. [Google Scholar] [CrossRef]
  5. Ni, T.; Sun, Z.; Han, M.; Xie, Y.; Lan, G.; Li, Z.; Gu, T.; Xu, W. REHSense: Towards Battery-Free Wireless Sensing via Radio Frequency Energy Harvesting. In Proceedings of the Twenty-Fifth International Symposium on Theory, Algorithmic Foundations, and Protocol Design for Mobile Networks and Mobile Computing, Athens, Greece, 14–17 October; 2024; pp. 211–220. [Google Scholar] [CrossRef]
  6. Sun, Z.; Ni, T.; Chen, Y.; Duan, D.; Liu, K.; Xu, W. RF-Egg: An RF Solution for Fine-Grained Multi-Target and Multi-Task Egg Incubation Sensing. In Proceedings of the 30th Annual International Conference on Mobile Computing and Networking, Washington, DC, USA, 30 September–4 October 2024; ACM: Washington, DC, USA, 2024; pp. 528–542. [Google Scholar] [CrossRef]
  7. Liu, Y.; Ma, X.; Li, Y.; Tie, Y.; Zhang, Y.; Gao, J. Water Pipeline Leakage Detection Based on Machine Learning and Wireless Sensor Networks. Sensors 2019, 19, 5086. [Google Scholar] [CrossRef]
  8. Sharma, H.; Haque, A.; Blaabjerg, F. Machine Learning in Wireless Sensor Networks for Smart Cities: A Survey. Electronics 2021, 10, 1012. [Google Scholar] [CrossRef]
  9. Singh, R.; Baz, M.; Narayana, C.L.; Rashid, M.; Gehlot, A.; Akram, S.V.; Alshamrani, S.S.; Prashar, D.; AlGhamdi, A.S. Zigbee and Long-Range Architecture Based Monitoring System for Oil Pipeline Monitoring with the Internet of Things. Sustainability 2021, 13, 10226. [Google Scholar] [CrossRef]
  10. Huang, X.; Jiang, J.; Yang, S.-H.; Ding, Y. A Reinforcement Learning Based Medium Access Control Method for LoRa Networks. In Proceedings of the 2020 IEEE International Conference on Networking, Sensing and Control (ICNSC), Nanjing, China, 30 October–2 November 2020; pp. 1–6. [Google Scholar] [CrossRef]
  11. Akkaş, M.A.; Sokullu, R.; Balcı, A. Wireless Sensor Networks in Oil Pipeline Systems Using Electromagnetic Waves. In Proceedings of the 2015 9th International Conference on Electrical and Electronics Engineering, Bursa, Turkey, 26–28 November 2015. [Google Scholar] [CrossRef]
  12. Elnaggar, O.E.; Ramadan, R.A.; Fayek, M.B. WSN in Monitoring Oil Pipelines Using ACO and GA. Procedia Comput. Sci. 2015, 52, 1198–1205. [Google Scholar] [CrossRef]
  13. Tu, L.-T.; Bradai, A.; Ahmed, O.B.; Garg, S.; Pousset, Y. Energy Efficiency Optimization in LoRa Networks—A Deep Learning Approach. IEEE Trans. Intell. Transp. Syst. 2023, 24, 15435–15447. [Google Scholar] [CrossRef]
  14. Reynders, B.; Wang, Q.; Tuset-Peiro, P.; Vilajosana, X.; Pollin, S. Improving Reliability and Scalability of LoRaWANs Through Lightweight Scheduling. IEEE Internet Things J. 2018, 5, 1830–1842. [Google Scholar] [CrossRef]
  15. Hoeller, A.; Souza, R.D.; Lopez, O.L.A.; Alves, H.; Neto, M.d.N.; Brante, G. Analysis and Performance Optimization of LoRa Networks With Time and Antenna Diversity. IEEE Access 2018, 6, 32820–32829. [Google Scholar] [CrossRef]
  16. Ta, D.-T.; Khawam, K.; Lahoud, S.; Adjih, C.; Martin, S. LoRa-MAB: A Flexible Simulator for Decentralized Learning Resource Allocation in IoT Networks. In Proceedings of the WMNC 2019-12th IFIP Wireless and Mobile Networking Conference, Paris, France, 11–13 September 2019; pp. 55–62. [Google Scholar] [CrossRef]
  17. Ilahi, I.; Usama, M.; Farooq, M.O.; Janjua, M.U.; Qadir, J. Intelligent Resource Allocation in Dense LoRa Networks Using Deep Reinforcement Learning. arXiv 2021, arXiv:2012.11867v2. [Google Scholar]
  18. Philip, M.S.; Singh, P. Energy Consumption Evaluation of LoRa Sensor Nodes in Wireless Sensor Network. In Proceedings of the 2021 Advanced Communication Technologies and Signal Processing (ACTS), Rourkela, India, 15–17 December 2021; IEEE: New York, NY, USA, 2021. [Google Scholar] [CrossRef]
  19. Elkarim, S.I.A.; Elsherbini, M.M.; Mohammed, O.; Khan, W.U.; Waqar, O.; ElHalawany, B.M. Deep Learning Based Joint Collision Detection and Spreading Factor Allocation in LoRaWAN. In Proceedings of the 2022 IEEE 42nd International Conference on Distributed Computing Systems Workshops (ICDCSW), Bologna, Italy, 10 July 2022; IEEE: New York, NY, USA, 2022; pp. 187–192. [Google Scholar] [CrossRef]
  20. eymuri, B.; Serati, R.; Anagnostopoulos, N.A.; Rasti, M. LP-MAB: Improving the Energy Efficiency of LoRaWAN Using a Reinforcement-Learning-Based Adaptive Configuration Algorithm. Sensors 2023, 23, 2363. [Google Scholar] [CrossRef] [PubMed]
  21. Agbolade, O.; Olanrewaju, O.; Oyetunji, S.; Babatola, J. A LoRaWAN-based IoT System for Leakage Detection in Pipelines. Eur. J. Eng. Technol. Res. 2023, 8, 36–42. [Google Scholar] [CrossRef]
  22. Jouhari, M.; Ibrahimi, K.; Ben Othman, J.; Amhoud, E.M. Deep Reinforcement Learning-based Energy Efficiency Optimization for Flying LoRa Gateways. In Proceedings of the 2023 IEEE International Conference on Communications (ICC), Rome, Italy, 15 May 2023. [Google Scholar] [CrossRef]
  23. Dere, S.; Agbolade, O.A.; Oyetunji, S.A.; Babatola, J.O. Development of LoRaWAN-Based IoT Monitoring Device for Pressure Rate Profiling in Water Pipelines. Saudi J. Eng. Technol. 2023, 8, 219–225. [Google Scholar]
  24. Loubany, A.; Lahoud, S.; Samhat, A.E.; El Helou, M. Improving Energy Efficiency in LoRaWAN Networks with Multiple Gateways. Sensors 2023, 23, 5315. [Google Scholar] [CrossRef]
  25. Narayana, C.L.; Singh, R.; Gehlot, A. Performance evaluation of LoRa based sensor node and gateway architecture for oil pipeline management. Int. J. Electr. Comput. Eng. (IJECE) 2022, 12, 974–982. [Google Scholar] [CrossRef]
  26. Surenther, I.; Sridhar, K.; Roberts, M.K. Maximizing energy efficiency in wireless sensor networks for data transmission: A Deep Learning-Based Grouping Model approach. Alex. Eng. J. 2023, 83, 53–65. [Google Scholar] [CrossRef]
  27. Sheng, T.J.; Islam, M.S.; Misran, N.; Baharuddin, M.H.; Arshad, H.; Islam, R.; Chowdhury, M.E.H.; Rmili, H. An Internet of Things Based Smart Waste Management System Using LoRa and Tensorflow Deep Learning Model. IEEE Access 2020, 8, 148793–148811. [Google Scholar] [CrossRef]
  28. Hosseinzadeh, S.; Ashawa, M.; Owoh, N.; Larijani, H.; Curtis, K. Explainable Machine Learning for LoRaWAN Link Budget Analysis and Modeling. Sensors 2024, 24, 860. [Google Scholar] [CrossRef]
  29. Grgić, K.; Spišić, J.; Žagar, D. An Advanced Energy-Efficient Environmental Monitoring in Precision Agriculture Using LoRa-Based Wireless. Sensors 2023, 23, 6332. [Google Scholar] [CrossRef]
  30. Minhaj, S.U.; Mahmood, A.; Abedin, S.F.; Hassan, S.A.; Bhatti, M.T.; Ali, S.H.; Gidlund, M. Intelligent Resource Allocation in LoRaWAN Using Machine Learning Techniques. IEEE Access 2023, 11, 10092–10106. [Google Scholar] [CrossRef]
  31. Suresh, V.M.; Sidhu, R.; Karkare, P.; Patil, A.; Lei, Z.; Basu, A. Powering the IoT through embedded machine learning and LoRa. In Proceedings of the 2018 IEEE 4th World Forum on Internet of Things (WF-IoT), Singapore, 5–8 February 2018; pp. 349–354. [Google Scholar] [CrossRef]
  32. Tu, L.-T.; Bradai, A.; Pousset, Y.; Aravanis, A.I. Energy Efficiency Analysis of LoRa Networks. IEEE Wirel. Commun. Lett. 2021, 10, 1881–1885. [Google Scholar] [CrossRef]
  33. Cheikh, I.; Aouami, R.; Sabir, E.; Sadik, M.; Roy, S. Multi-Layered Energy Efficiency in LoRa-WAN Networks: A Tutorial. IEEE Access 2022, 10, 9198–9231. [Google Scholar] [CrossRef]
  34. Islam, R.; Zami, B.A.; Paul, B.; Palit, R.; Grégoire, J.-C.; Islam, S. Performance Evaluation of Multi-Hop LoRaWAN. IEEE Access 2023, 11, 50929–50945. [Google Scholar] [CrossRef]
  35. Sun, Z.; Ni, T.; Yang, H.; Liu, K.; Zhang, Y.; Gu, T.; Xu, W. FLoRa: Energy-Efficient, Reliable, and Beamforming-Assisted Over-The-Air Firmware Update in LoRa Networks. In Proceedings of the 22nd International Conference on Information Processing in Sensor Networks, IPSN ’23, San Antonio, TX, USA, 9–12 May 2023; Association for Computing Machinery: New York, NY, USA, 2023; pp. 14–26. [Google Scholar] [CrossRef]
  36. Alves Coelho, J.; Glória, A.; Sebastião, P. Precise Water Leak Detection Using Machine Learning and Real-Time Sensor Data. IoT 2020, 1, 474–493. [Google Scholar] [CrossRef]
  37. Nowak, M.; Różycki, R.; Waligóra, G.; Szewczyk, J.; Sobiesierski, A.; Sot, G. Data Processing with Predictions in LoRaWAN. Energies 2022, 16, 411. [Google Scholar] [CrossRef]
  38. Islam, K.Z.; Murray, D.; Diepeveen, D.; Jones, M.G.; Sohel, F. Machine learning-based LoRa, localization using multiple received signal features. IET Wirel. Sens. Syst. 2023, 13, 133–150. [Google Scholar]
  39. Odogwu, U.C.; Ezechukwu, O.A.; Jude, A.; Chidiebere, O. A Model of Pipeline Flow Monitoring in Wide Area Wireless Sensor Network. Sch. J. Eng. Technol. 2015, 3, 463–472. [Google Scholar] [CrossRef]
  40. Zhang, F.; Chang, Z.; Kai, N.; Xiong, J.; Jin, B.; Lv, Q.; Zhang, D. Exploring LoRa for Long-Range Through-Wall Sensing. Proc. ACM Interact. Mob. Wearable Ubiquitous Technol. 2020, 4, 1–27. [Google Scholar] [CrossRef]
  41. Geiger, G. Pipeline Leak Detection. Master’s Thesis, University of Applied Sciences Gelsenkirchen, Gelsenkirchen, Germany, 2003. [Google Scholar]
  42. Haghiri, S.; Garreau, D.; von Luxburg, U. Comparison-Based Random Forests. arXiv 2018, arXiv:1806.06616. [Google Scholar]
  43. Pajouheshnia, R.; Pestman, W.R.; Teerenstra, S.; Groenwold, R.H.H. A Computational Approach to Compare Regression Modelling Strategies in Prediction Research. BMC Med. Res. Methodol. 2016, 16, 107. [Google Scholar] [CrossRef] [PubMed]
  44. Sheltami, T.R.; Bala, A.; Shakshuki, E.M. Wireless Sensor Networks for Leak Detection in Pipelines; Springer: Berlin/Heidelberg, Germany, 2016. [Google Scholar]
  45. Sandoval, R.M.; Garcia-Sanchez, A.-J.; Garcia-Haro, J. Optimizing and updating LoRa communication parameters: A Machine Learning approach. IEEE Trans. Netw. Serv. Manag. 2019, 16, 884–895. [Google Scholar] [CrossRef]
  46. Cosenza, D.N.; Korhonen, L.; Maltamo, M.; Packalen, P.; Strunk, J.L.; Næsset, E.; Gobakken, T.; Soares, P.; Tomé, M. Comparison of Linear Regression, k-Nearest Neighbour and Random Forest Methods in Airborne Laser-Scanning-Based Prediction of Growing Stock. For. Int. J. For. Res. 2021, 94, 311–323. [Google Scholar] [CrossRef]
  47. Verma, N.; Singh, S.; Prasad, D. Performance analysis and comparison of Machine Learning and LoRa based Healthcare model. Neural Comput. Appl. 2023, 35, 12751–12761. [Google Scholar] [CrossRef] [PubMed]
  48. Al Homssi, B.; Dakic, K.; Maselli, S.; Wolf, H.; Kandeepan, S.; Al-Hourani, A. IoT Network Design Using Open-Source LoRa Coverage Emulator. IEEE Access 2021, 9, 53636–53646. [Google Scholar] [CrossRef]
  49. Farhad, A.; Pyun, J.-Y. LoRa WAN Meets ML: A Survey on Enhancing Performance with Machine Learning. Sensors 2023, 23, 6851. [Google Scholar] [CrossRef]
  50. Tissera, M.D.; McDonnell, M.D. Deep Extreme Learning Machines for Classification. In Proceedings of ELM-2014; Proceedings in Adaptation, Learning and Optimization; Cao, J., Mao, K., Cambria, E., Man, Z., Toh, K.A., Eds.; Springer: Cham, Switzerland, 2015; Volume 1. [Google Scholar] [CrossRef]
  51. What is OMNeT++? Available online: https://omnetpp.org/intro/ (accessed on 12 October 2024).
  52. Scikit-Learn: Machine Learning in Python—Scikit-Learn 1.5.1 Documentation. 2024. Available online: https://scikit-learn.org/stable/ (accessed on 12 October 2024).
  53. hpelm PyPI. 2024. Available online: https://pypi.org/project/hpelm/ (accessed on 12 October 2024).
  54. Kubba, A.R.; Trabelsi, H. LoRa Network Enhancement of Oil Pipelines Leak Detection System Based on Artificial Intelligence. In Proceedings of the 2024 21st International Multi-Conference on Systems, Signals & Devices (SSD), Erbil, Iraq, 22–25 April 2024. [Google Scholar] [CrossRef]
  55. Ali, M.; Prasad, R.; Xiang, Y.; Sankaran, A.; Deo, R.C.; Xiao, F.; Zhu, S. Advanced Extreme Learning Machines vs. Deep Learning Models for Peak Wave Energy Period Forecasting: A Case Study in Queensland, Australia. Renew. Energy 2021, 177, 1031–1044. [Google Scholar] [CrossRef]
Figure 1. Description of a LoRa network: (a) LoRa network architecture; (b) LoRa stack protocol.
Figure 1. Description of a LoRa network: (a) LoRa network architecture; (b) LoRa stack protocol.
Futureinternet 16 00425 g001
Figure 2. The network design of the proposed system. (a) RTTM-based LoRaWAN monitoring system; (b) LoRa network design based on OMNet++.
Figure 2. The network design of the proposed system. (a) RTTM-based LoRaWAN monitoring system; (b) LoRa network design based on OMNet++.
Futureinternet 16 00425 g002
Figure 3. Deep extreme learning machine architecture.
Figure 3. Deep extreme learning machine architecture.
Futureinternet 16 00425 g003
Figure 4. Workflow of the LoRa-network-based hybrid DELM model.
Figure 4. Workflow of the LoRa-network-based hybrid DELM model.
Futureinternet 16 00425 g004
Figure 5. Comparative analysis of LoRa performance: (a) power consumption representation; (b) packet delay representation; (c) packet loss representation.
Figure 5. Comparative analysis of LoRa performance: (a) power consumption representation; (b) packet delay representation; (c) packet loss representation.
Futureinternet 16 00425 g005
Table 1. Summary of the most relevant work.
Table 1. Summary of the most relevant work.
Author(s)/YearTechnique UsedProblem AddressedNetwork Parameter
Enhancement
Mustafa Alper Akkaş et al. [11]/2015Employing the electromagnetic approach based on a wireless underground sensor network.Determining the efficient communication distance between sensing nodes.No
Ola E. Elnaggar et al. [12]/2015Ant colony optimization (ACO)
and genetic algorithms (GAs).
Linear sensor placement for oil pipeline monitoring.No
Lam-Thanh Tu et al. [13]/2020Deep learning (DL) approach with LoRa technology.Achieving the optimal transmitting power, which is useful for maximizing energy efficiency in LoRa networks.Yes
Brecht Reynders et al. [14]/2018A lightweight scheduling
Algorithm.
Reducing the capture effect.Yes
Arliones Hoeller et al. [15]/2018Message replication and gateways with multiple receiving antennas.Temporal and spatial diversity of LoRa networks.Yes
Duc-Tuyen Ta et al. [16]/2020LoRaWAN multi-armed bandit and reinforcement learning (RL) algorithm.Resource allocation solution for LoRa endpoints.Yes
Inaam Ilahi et al. [17]/2021Deep reinforcement learning
algorithm for multi-channel
resource allocation in LoRa
networks.
Enhancing the packet delivery ratio (PDR) and ensuring lower power consumption to increase the lifetime and network capacity.Yes
Merin Susan Philip et al. [18]/2022Decreasing the sensing interval and increasing spreading factor of the LoRa standard parameters.Predicting the amount of energy consumed for each node.Yes
Seham Ibrahem et al. [19]/2021Smart spreading factor (SF) assignment method that depended on artificial neural networks.Selecting optimal SFs to reduce collisions and energy consumption.Yes
Olaide Agbolade et al. [21]/2023LoRaWAN-pipeline-based flow-rater approach.Detecting and localizing leaks in pipelines.No
Mohammed Johari et al. [22]/2023Deep reinforcement learning and
flying gateways of LoRaWAN.
Reallocating the spreading factors (SFs) and adjusting the transmission powers (TPs) to achieve network performance enhancement.Yes
Dere S et al. [23]/2023Application of a pressure sensor and GSM model to gather and send pressure information in a real-time manner.Monitoring kit for pressure rate logging in pipeline systems.No
Ali Loubany et al. [24]/2023Selection of spreading factors and power controlling.Enhancing the energy consumption of LoRaWAN networks with a compound of gateways.Yes
Chavala Lakshmi Narayana et al. [25]/2022Applying the LoRa communication protocol and sensor node installation along the pipeline.Oil pipeline monitoring over long distances.No
Surenther et al. [26]/2023Deep-learning-based grouping model approach.Extending the WSN lifetime and increasing the efficiency of data transmission.Yes
Teoh Ji Sheng et al. [27]/2020Deep learning approach using the LoRa communication protocol.Building a real-time monitoring system and achieving better performance in the waste management fieldNo
Salaheddin Hosseinzadeh et al. [28]/2024Feature extraction from regression analysis.Enhancing the accuracy of LoRaWAN propagation estimation and energy efficiency.Yes
Vignesh Mahalingam Suresh et al. [31]/2018Deploying a machine learning approach on the edge of a LoRa network.Enhancing the transmission
Power.
Yes
MD. Rakibul Islam et al. [34]/2023Mathematical approach for a multi-hop network.Treating interference and power transition limitations.No
Table 2. A brief comparison of machine learning techniques.
Table 2. A brief comparison of machine learning techniques.
Regression TechniqueDescriptionStrengthsWeaknessesHow Random
Forest Is Better
Random
Forest
Ensemble learning technique joining multiple decision trees in which each specific tree is trained on a random subset of the data. The predictions are averaged.Nonlinear data handling used to reduce overfitting; robust to outlier values, performs well with large datasets.It can be expensive due to its computation.Perfect for complex and large, nonlinear datasets;
reduces overfitting.
Linear
Regression
Making predictions depends on a linear relationship between features.Simple,
understandable, working on linearly related data.
Sensitive to outlier values, inadequate performance with datasets with nonlinear relationships.RF can handle nonlinearity, and it performs better with outliers.
Support Vector RegressionDetermining a hyperplane in a high-dimensional dataset that fits the data perfectly within a particular boundary of tolerance.Efficient with small datasets, performs well in high-dimensional spaces, supports good generalization with unseen data.Needs extensive computation, is difficult to tune, and its performance is reduced with huge datasets.RF is more accurate and faster with large datasets, tuning easily. Better performance for nonlinear and large datasets.
k-Nearest NeighborsEstimating the targeted value based on calculating the average values of the k-nearest data points in a certain dataset.Simple and instinctive, performs well with small datasets and limited numbers of features.Performance is lower with huge datasets, and it is very sensitive to noisy data and unrelated features.RF is stronger regarding noise and unrelated features, and it has better achievements on complex and large datasets.
Decision TreesA simple technique that divides data into multiple branches to make estimations based on feature
values.
Easy to understand, can handle nonlinear relations, and performs well when the dataset is small.Vulnerable to overfitting, sensitive, and unstable with small changes in the data.RF performs better than DT for overfitting, reducing variance, and enhancing stability through averaging.
Table 3. Sample of the output of the OMNeT++ oil-pipeline-based LoRa network monitoring system.
Table 3. Sample of the output of the OMNeT++ oil-pipeline-based LoRa network monitoring system.
Node
No
Time
(s)
M In (kg/s)Pt In
(Bar)
Temp In
(c)
M Out (kg/s)Pt Out
(Bar)
Temp Out
(c)
M (Leak)
(Kg/s)
X (Leak)
(m)
1218, 6.78145.3359.9939.96145.3359.8739.6400
2960,691.78255.6659.9739.91137.2559.7438.88118.4058,136.38
5935,146.78512.3459.8939.94132.4159.1838.87379.93118,068.43
9986,401.78146.8559.9939.85142.1059.8738.554.74199,360.54
Table 4. General configuration of the OMNeT++ LoRa network.
Table 4. General configuration of the OMNeT++ LoRa network.
ParametersValue
Energy Detection−11 dBm
Number of Nodes100
Number of Gateways10
Node Spacing2000 m
Gateway Coverage20,000 m
Simulation Time1 day
Initial Spreading Factor (SF)12
Initial Transmission Power (TP)14 dBm
Initial Bandwidth (BW)125 kHz
Initial Coding Rate (CR)4
General.sigma3.57
Ipv4Delay.configCloud Delay.xml
Table 5. Summary of dataset features and components.
Table 5. Summary of dataset features and components.
ParameterValue/RangeUnitDescription
Number of LoRA gateways10-The total number of LoRa gateways in the simulation.
Number of LoRa nodes100-The total number of LoRa nodes in the simulation.
LoRa server1-Number of LoRa servers managing the network.
Spreading factor (SF)7, 8, 9, 10, 11, 12-Used to adjust the energy consumption and transmission range.
Payload (PL)26–130BytesSize of the data transmitted by LoRa nodes.
Bandwidth (BW)125kHzCommunication bandwidth.
Transmission power (TP)11, 14, 20dBmTransmission power used by LoRA nodes.
Coding rate (CR)4/5-Error correction rate used during the transmission.
Noise figure (NF)6dBImpact of noise on communication quality.
Low data rate optimization0, 1-Communication optimization at lower data rates.
Packet energy consumption0.01–0.2JoulesTotal energy consumed for transmitted packets.
Power consumption during the idle state0.001–0.05mWConsumption of power by each node in the idle state.
Signal-to-noise ratio range for training−19 to −6dBSignal-to-noise ratio ranges utilized for training tasks.
Received signal strength indicator−120 to −80dBmCalculated at each node to evaluate the signal strength.
Queuing time5–50msThe waiting time spent in the queue until a packet is transmitted.
Number of collisions0–5 per secondCountNumber of packet collisions affecting retransmission energy consumption.
Packet loss0–10%PacketsThe ratio of packet loss during transmission.
Data rate0.3–50kbpsThe data rate used by LoRA nodes.
Distance range for training110kmThe distance range within which nodes communicate during training.
Bit error rate1 × 10−14–1 × 10−5-Bit error rate for estimating the level of error during training.
Number of iterations7 × 106-The count of iterations achieved during model training.
Signal-to-noise ratio threshold−7.5, −10, −12.5, −15, −17.5, −20dBSignal-to-noise ratio threshold utilized for transmission decisions.
Maximum payload size242, 115, 51BytesThe maximum payload size that can be handled by the LoRa node.
Transmission delay5–100msTime delay from transmission to receipt operations.
Retransmission count0–3CountNumber of times packets are retransmitted due to collision or error.
Table 6. Brief comparison of LoRa network performance.
Table 6. Brief comparison of LoRa network performance.
ParametersDefault LoRaRandom ForestDELMHybrid DELM
Total Power Consumed
(mWh)
4332350930332686
Packet Delay
(ms)
85,47270,94163,24957,266
Total Packet Loss502427387346
Power Consumption
Enhancement Ratio
-18%29%39%
Packet Delay
Enhancement Ratio
-17%26%33%
Packet Loss
Enhancement Ratio
-14%23%31%
Table 7. Performance analysis of LoRa node no. 3.
Table 7. Performance analysis of LoRa node no. 3.
ModelSFTPBWCRPower
Consumed
(mWh)
Packet
Delay
(ms)
Packet Loss
Default LoRa1214125443.1885,44873
Random Forest1212125334.9870,92162
DELM1110250329.9763,23156
Hybrid DELM98250226.3757,25050
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

Kubba, A.; Trabelsi, H.; Derbel, F. Enhanced Long-Range Network Performance of an Oil Pipeline Monitoring System Using a Hybrid Deep Extreme Learning Machine Model. Future Internet 2024, 16, 425. https://doi.org/10.3390/fi16110425

AMA Style

Kubba A, Trabelsi H, Derbel F. Enhanced Long-Range Network Performance of an Oil Pipeline Monitoring System Using a Hybrid Deep Extreme Learning Machine Model. Future Internet. 2024; 16(11):425. https://doi.org/10.3390/fi16110425

Chicago/Turabian Style

Kubba, Abbas, Hafedh Trabelsi, and Faouzi Derbel. 2024. "Enhanced Long-Range Network Performance of an Oil Pipeline Monitoring System Using a Hybrid Deep Extreme Learning Machine Model" Future Internet 16, no. 11: 425. https://doi.org/10.3390/fi16110425

APA Style

Kubba, A., Trabelsi, H., & Derbel, F. (2024). Enhanced Long-Range Network Performance of an Oil Pipeline Monitoring System Using a Hybrid Deep Extreme Learning Machine Model. Future Internet, 16(11), 425. https://doi.org/10.3390/fi16110425

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