Next Article in Journal
Prediction of Concrete Failure Time Based on Statistical Properties of Compressive Strength
Next Article in Special Issue
Optimized LED-Integrated Agricultural Facilities for Adjusting the Growth of Water Bamboo (Zizania latifolia)
Previous Article in Journal
EvoBot: An Open-Source, Modular, Liquid Handling Robot for Scientific Experiments
Previous Article in Special Issue
A Convolutional Neural Networks Based Method for Anthracnose Infected Walnut Tree Leaves Identification
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Context-Aware Middleware Cloud Approach for Integrating Precision Farming Facilities into the IoT toward Agriculture 4.0

by
Eleni Symeonaki
1,2,
Konstantinos Arvanitis
1,* and
Dimitrios Piromalis
2
1
Department of Natural Resources Management and Agricultural Engineering, Agricultural University of Athens, Iera Odos 75, 11855 Athens, Greece
2
Department of Industrial Design and Production Engineering, University of West Attica, Thivon 250 and P. Ralli, 12244 Egaleo, Greece
*
Author to whom correspondence should be addressed.
Submission received: 24 December 2019 / Revised: 18 January 2020 / Accepted: 20 January 2020 / Published: 23 January 2020
(This article belongs to the Special Issue Applied Agri-Technologies)

Abstract

:
The adoption of Precision Farming (PF) practices involving ubiquitous computing advancements and conceptual innovations of “smart” agricultural production toward Agriculture 4.0 is a significant factor for the benefit of sustainable growth. In this context, the dynamic integration of PF facility systems into the Internet of Things (IoT) represents an excessive challenge considering the large amount of heterogeneous raw data acquired in agricultural environments by Wireless Sensor and Actuator Networks (WSANs). This paper focuses on the issue of facilitating the management, process, and exchange of the numerous and diverse data points generated in multiple PF environments by introducing a framework of a cloud-based context-aware middleware solution as part of a responsive, adaptive, and service-oriented IoT integrated system. More particularly, the paper presents in detail a layered hierarchical structure according to which all functional elements of the system cope with context, while the context awareness operation is accomplished into a cloud-based distributed middleware component that is the core of the entire system acting as a Decision Support System (DSS). Furthermore, as proof of concept, the functionality of the proposed system is studied in real conditions where some evaluation results regarding its performance are quoted.

Graphical Abstract

1. Introduction

Agriculture is undeniably one of the major sectors of primary industry which, according to the United Nations Food and Agriculture Organization (FAO), has to address the challenge of raising its productivity by up to 60% during the 21st century to provide sufficient food supply for the increasing world population [1]. This aim must be achieved taking into account the imperative necessity of using natural resources according to sustainable strategies due to the escalating pressures on ecosystems, biodiversity, lands, and water.
Precision Farming (PF), also reported in the literature as precision agriculture (PA) or precision ag, refers, as in [2], to a production system which promotes innovative farming management practices for monitoring, controlling, and optimizing agricultural production processes. PF, as in [3], is generally defined as the undertaking of proper actions at the right intensity at the right place and time, while as in [4], PF can be applied for managing the inputs and outputs based on quality and quantity coefficients in order to control production, as well as environmental and economic risks, by accomplishing more suitable and targeted usage of finite resources. As deriving from the aforementioned definitions, the adoption of PF practices which provide credible, cost-effective, and user-friendly solutions is a significant factor for the benefit of sustainable growth. Concisely, the aims of PF in terms of sustainability are as in [5]:
  • Optimizing the usage of available resources to enhance the sustainability and profitability of agricultural production;
  • Reducing negative environmental impacts;
  • Improving the quality of the social aspects of relevant stakeholders and their working environment.
These aims can be utterly achieved by integrating ubiquitous computing advancements as in [6] and conceptual innovations of “smart” agricultural production in the context of Industry 4.0.
The Industry 4.0 concept, which is based on a strategic framework initially introduced by the German National Academy of Science and Engineering (acatech) as in [7] and was the theme of the World Economic Forum (WEF) annual meeting in 2016 [8], is a cutting-edge trend which is considered to affect the production potentials of all industrial sectors as in [9,10,11], through the establishment of a digitalized environment where physical and virtual objects can interconnect and interact autonomously [10,11,12]. Since the implementation of digitalization technologies within the agricultural sector, as part of the Industry 4.0 approach, has latterly set forth to be attributed with the term “Agriculture 4.0” as indicatively in [13,14,15], this terminology is going to be adopted for the purposes of this paper. The key technologies that are particularly significant for Agriculture 4.0, according to the guidelines for the operative implementation of Industry 4.0 in the agricultural sector [14], along with their capabilities and effects for the benefit of sustainability, are briefed alphabetically in Table 1.
Beyond the actual involvement of advanced technologies, the most significant challenge of Agriculture 4.0 toward sustainable growth resides in the competency to deliver dynamically integrated PF systems that (a) enact more sophisticated and effective automated agricultural operations (such as cultivation and irrigation) at lower costs, (b) provide safer and more efficient operating conditions both for the environment and stakeholders (involving farmers, agronomist engineers, policy makers, development cooperation professionals, etc.), and (c) increase the synergies among all stakeholders offering them the ability to make decisions even on issues that have ordinarily been outside their areas of expertise [23,36,37]. For this, a generalized concept of whole-farm management, as in [13], based on the potent cross-industry cooperation of stakeholders, infrastructures, technologies and applications is tending to be applied in accordance with the objectives of the IoT trend (Figure 1).
Provided that the development of a dynamically integrated PF system is regarded to be significantly based on the ability to acquire, process and exchange data at a higher level (i.e., applications) in order to generate knowledge regarding the optimization of production efficiency, the fact that as in [13] the average farm is predicted to generate several 4.1 million data points per day by 2050, represents an excessive challenge. Indeed, typical PF facility environments involve Wireless Sensor and Actuator Networks (WSANs) which consist of numerous sensor nodes for remotely acquiring real-time data about various features concerning the cultivations (i.e., environmental conditions, soil and crop properties), as well as of actuators for enabling the proper physical actions within the PF facilities [29,38,39,40,41]. However, sensory agricultural data refer to ambient parameters which quite obviously vary within diverse cultivations and distinct locations while they even tend to be modified according to the physiology of the crops, the soil texture and the environmental conditions as in [42]. Hence, due to the amount and the obvious diversity of the acquired raw data it is essential to structure them into processable and interchangeable formats of information to cover all aspects of agricultural exploitations.
To address the issue of the extreme heterogeneity of sensory raw data acquired in agricultural environments and facilitate the complexity of developing a higher IoT level in a dynamically integrated PF system, a context-aware middleware-centric solution is regarded to be the most suitable one, as context awareness offers the competence of representing static or dynamic changes, comprehending the situational context of the acquired data and providing services compatible to all stakeholders’ specialized needs [43,44,45,46,47]. Let it be noted that in this research the term “context” is attributed to agriculture context referring to the combination of plant, place, environment, and sensor device information. Consequently, taking into account that agricultural environments generate enormous amounts of diverse information which correspond to massive context spaces, while on the other hand the development of novel smart infrastructures is constantly increasing the demand for more complex intelligent services, the performance of such operations into local middleware components, could result into unscalable and deficient systems. Given the fact that cloud computing is a trend of information technology which offers centralized storage and processing power along with on demand availability of services [48,49,50], it is thought as deliberate to transpose context-aware middleware operations from local servers or smart devices to a distributed cloud environment for facilitating the management of such voluminous amounts of agricultural data, improving the processing time of context generation and expanding the capability to provide complex specialized services.
This research article is keen to approach the aforementioned issues by presenting a complete cloud-based, context-aware middleware solution, as part of a responsive and adaptive context sensitive IoT integrated system, capable of delivering a wide variety of services in order to facilitate farm management. To this end, the introduced system framework adopts a layered hierarchical structure consisting of a PF facility (as the lower level) and three main cloud-based components (context-aware middleware cloud, services cloud and social network cloud) at the higher level. According to this structure all of the system’s functional elements cope with context, while the operation of context awareness is accomplished into a cloud-based distributed middleware component which is the core of the entire system acting as a Decision Support System (DSS). It is considered that employing such an approach will enhance the scalability and flexibility of agricultural operations, by handling simultaneously large amounts of heterogeneous sensory raw data acquired remotely in multiple PF facility environments, and support the making of critical decisions related to the optimization of agricultural production by acting as an extendable source of knowledge.
Subsequently to the introduction in Section 1, the rest of this paper is structured in five sections as follows. Section 2 reviews briefly the state of the art in context-aware middleware, cloud computing and IoT, attempting to focus especially on the contemporary agricultural applications involving remote sensing. Additionally, the main motivational challenges regarding this research work are clearly identified and some critical issues are reported. The framework of the entire proposed system is detailed in Section 3 with emphasis on the cloud-based context-aware middleware component and the modules comprised in it, while the aspects of self-adaptability as well as security and privacy are also inspected. In Section 4 the functionality of the system in real conditions for a single PF facility environment is tested as proof of concept and some evaluation results regarding its performance are quoted in Section 5. Consequently, in Section 6 a more critical analysis of the results is provided and some fresh insights about the research problem considering the findings of this work. Finally, the paper is completed in Section 7, wherein the principal conclusions drawn from this work are discussed along with future directions for further research.

2. Related Research and Motivational Challenges

Bearing in mind that the work introduced in this article is focusing on the adoption of context awareness as well as in the collaboration of some specific technologies employed for Agriculture 4.0 (remote sensing, cloud computing, IoT), it was considered appropriate to look into the related recent research (published in the present decade) referring as much as possible to PF applications. The state of the art finally presented reflects the results of a thorough literature review, performed according to the methodology introduced by Webster and Watson [34] as it is considered to be quite efficient for locating related research sources that fulfil strict qualitative criteria [35].
As a consequence, a holistic review of the latest literature in the area of context awareness indicates that several middleware-centric schemes for wireless sensory applications in various sectors are offered, such as Gaia [51], CRISMA [52], Aura [53], CORTEX [54], MobiPADS [55], MiddleWhere [56], CORTEN [57], SOCAM [58] and CARMEN [59]. Although these works are assumed to be largely outdated as they were presented during the previous decade and do not entirely adjust to the current trends of technology, certain elements presented in them have been elaborated and involved in some recent works. The most representative works, found in the literature of the present decade, concerning context-aware middleware frameworks for wireless sensing and data acquisition, are set forth below:
  • ACoMS+ presented by Hu et al. as in [60], is a framework according to which resource efficiency and context-aware management functionality of sensing infrastructures are achieved by embedding sensor networks middleware to the middleware for context-aware applications.
  • FlexRFID suggested by Khaddar et al. as in [61] is a middleware solution capable of managing large amounts of Radio Frequency Identification (RFID) and sensor scanned data as well as of executing applications’ business rules in real time via a policy-based business rules layer for controlling all its services. Additionally, the middleware supports convenient addition and removal of all capturing data hardware devices.
  • SeCoMan, which is the abbreviated title for Semantic Web-based Context Management, was presented by Celdrán et al. as in [62] and refers to a context-aware framework that offers predefined queries for enabling the development of smart applications used to share information about indoor location of users as well as objects.
  • A middleware architecture framework was introduced by Kang and Park as in [63], supporting automatic discovery and context integration based on Semantic Web services, to provide various context-aware services.
  • CA4IoT project developed by Perera et al. as in [64] attempts to enable the development of a sensing as a service platform through the integration of context awareness properties to IoT middleware solutions. However, the project does not provide a replete middleware solution for managing context data as it mainly concentrates on the notion of introducing a method for selecting the most suitable sensors for specific tasks.
Even though these reviewed middleware solutions are functional, most of them are oriented toward specific applications, contributing fragmentarily to PF developments as they do not provide significant inferences related to the subject of this article. Actually, despite the fact that due to the diverse underlying challenges, there is a wide scope for research in the area of context-aware data or service management applications for PF, the solutions offered are rather limited and narrowed.
Within this context, the work presented by Brinis and Saidane as in [65] deals with the issue of introducing and evaluating two approaches that incorporate context awareness, in order to define a strategy for acquiring wireless sensory data from an agricultural parcel with optimum energy preservation. A corresponding approach is found as in [66] wherein Bhanu et al. present a multi-agent-based method for wirelessly acquiring agricultural context-aware information sustained to increase the diversity and flexibility of the employed sensor types. Finally, an earlier work by Lee et al. as in [67] introduced an architectural framework of ubiquitous sensor networks for agriculture and livestock farms involving a server-side context-aware middleware which systematically coordinates interactions between all components involved, improving in this way the reliability and rightness of sensory data. It is worth noting that the models proposed in these contributions are mainly developed as standalone applications, and furthermore none of them succeeds in exceeding the limit of remote data acquisition and transmission.
Much more efficient appears to be the scanning in the literature regarding agricultural applications which involve cloud computing and IoT technologies for sustainable rural development, given that considerable works have been identified in this research field during the present decade. Indicatively, Cope et al. in their study as in [68], used available and low-cost technologies, such as GPS cameras and cloud storage, to create a cloud-based spatial-temporal repository system for monitoring phenology and other information related to plants while Mohanraj et al. proposed as in [69] an e-Agriculture application based on a framework which consists of a knowledge management base and monitoring modules in order to connect various distinct sources to the crop structures. Moreover, several researchers, inter alia Ahmed and Gregory [70], Mahesh et al. [71] as well as Kassim and Harun [72], proposed architectural frameworks according to which open-field WSNs or WSANs are combined with cloud computing services for assisting farmers to optimize the usage of available resources in agricultural production operations. Nonetheless such solutions present mostly standalone applications involving microcontrollers’ interfaces for commercial devices or sensors which employ online information libraries and schemes.
Finally, for ease of reference, some quite recent literature surveys reviewing systematically the IoT technologies penetration in agricultural applications were studied [6,23,28,30,73,74,75]. What most of these reviews have in common is that they conclude to the fact that although the IoT technologies are promptly evolving and providing considerable novel agricultural applications and services, some critical issues concerning the interoperability as well as the semantic annotation of heterogeneous data have to be handled.
In this respect, the FIWARE project as in [76], which has been developed within the scope of the Future Internet Public Private Partnership (FI-PPP) launched by the European Commission in collaboration with ICT industries, is considered to be a quite ambitious approach conceived to deliver a framework of open source platform components capable of providing adaptive solutions for internet technology that can be used into various usage domains which include smart agriculture as well [43]. In particular, FIWARE offers various added-value functions (services) by elaborating a public cloud along with an enriched library of modules, referred as Generic Enablers (GEs), which fulfil capabilities such as cloud hosting, IoT, services support and delivery, developer tools as well as network and devices interface [43,76]. Yet, it has been regarded that issues of interoperability among FIWARE GEs and applications exist while a considerable number of design flaws and severe bugs appear in some of the components as well [77,78,79]. Besides that, FIWARE is a rather large and complex platform involving enormous sets of services and components, which seem to be difficult to comprehend probably due to the lack of documentation updates. As it can be concluded by the research in the literature [43,76,77,78,79,80,81,82], the adoption of FIWARE in the development of smart agricultural applications is rather fragmentary and narrowed mostly to European researchers.
On the other hand, the oneM2M [83] is a global partnership project established by the seven most important Standards Developing Organizations (SDOs) in the world along with various industries and alliances. The main scope of this project is to define a horizontal service platform for enabling communication interoperability between machines. In these terms a technical report introducing a use case which involves oneM2M resource primitives and common service functionalities using MQ Telemetry Transport (MQTT) protocol binding so as to apply remote monitoring and actuating of smart devices in an agriculture farm, was presented by the oneM2M Telecommunication Technology Committee as in [84]. Furthermore, as part of the oneM2M project, the European Telecommunications Standards Institute (ETSI) SmartM2M Technical Committee, has recently released, as part of the SAREF (Smart Applications REFerence ontology) family of standards, some new specifications for smart domains, which includes smart agriculture as well. More precisely, SAREF4AGRI specification (ETSI TS 103 410-6) addresses the Smart Agriculture and Food Chain domain as in [85], with focus on livestock farming and smart irrigation use cases. Conclusively, these efforts, however significant they may be, are considered to be isolated and quite premature regarding the implementation of this platform to smart agriculture, since this issue does not seem to bring worth mentioned results in the scientific literature research.
As deriving from the overviewed state of the art, most currently offered solutions of context-aware middleware frameworks are limited to particular services, relying mostly on local infrastructures with confined processing power and storage capabilities for context discovery and management, whereas agricultural industry trends with regard to Agriculture 4.0 practices highly rely upon complex and intelligent context driven services the demand for which is constantly increasing due to the development of novel smart sensors and devices. The fact that such lack in processing power and storage capabilities in current infrastructures limits the ability of managing great volumes of sensory data, constitutes a strong motivation for introducing an alternative solution for cloud-based context-aware middleware framework capable of transposing this kind of operations from local infrastructures to a distributed cloud environment. The need for developing a cloud-based context-aware middleware framework is enhanced by the inefficiency of conventional context management frameworks to handle multiple PF facility systems simultaneously. With this in mind, this research is motivated to introduce a framework that will be able to use the context deriving from one PF facility system so that it acts as a knowledge bank for another one within the cloud repository, could extend the cloud middleware’s scalability and transform it into a flexible context source of knowledge for agricultural activities, offering significant support in the making of decisions and the delivering of real-time assistive actions. Finally, since the involvement of cloud computing attributes is about to broaden the variety of the offered services, the proposed framework is eager to use a single model which includes all kinds of services, such as instruction sets, software programs, and APIs for event alerts, could be delivered by the cloud platform infrastructure.
In any case, designing a model with such scalable and flexible computing capabilities for supporting efficiently all the aforementioned objectives involves several challenges by means of the following:
  • The real-time acquisition of remote raw data using agricultural sensors and other wireless devices as well as the process and categorization of these heterogeneous data into appropriate context is by any means a challenging task.
  • Integrating data sources and distributed components is complicated since PF facility systems generate raw data sets in a variety of forms such as analog signals, binary data streams, or even multimedia content (i.e., images and video streaming). As a result, accurately processing various forms of data and classifying them into context in order to trigger the corresponding operations or services in a short amount of time is a challenging issue which becomes more complex in the cases that these data derive in great volumes from several distinct PF facility systems.
  • The distribution of data migration and storage is a main matter of challenge as due to the nature of agricultural activities the data sets and their respective services are geographically allocated.
  • A challenging issue in PF facility systems is the real-time interaction with the end user (farmers, equipment, etc.) in terms of choosing and delivering the most appropriate service from those offered for a specific context.
Introducing a framework which employs a cloud context-aware middleware for integrating agricultural WSAN’s into the IoT is expected to be an alternative solution for overcoming these challenges by using the computational and storage resources offered into the cloud in order to facilitate the process, analysis and storage of sizeable amounts of raw data converted into context and reduce the computing load of sensing devices employed in various distinct PF facility systems. In such manner the framework acts in the backend as a DSS providing finally intelligent services which optimize agricultural production, minimize the cost, and assist all agricultural stakeholders in making decisions for the benefit of sustainable growth.

3. System Framework Overview

The proposed system framework consists of a PF facility and three main cloud-based components: the context-aware middleware cloud, the services cloud, and the social network cloud. The generic architecture and a data workflow overview of the system are illustrated in Figure 2. According to this, all system’s functional elements cope with context, whereas the operation of context awareness is accomplished by the flow of the context in a cloud-based distributed middleware component which is the core of the system.
In particular, sensor data, acquired by a Wireless Sensor and Actuator Network (WSAN) in a PF facility, are transmitted via a gateway as raw data to the context-aware middleware cloud where they are converted to context. These contextual data as well as the incoming rules provided by the services cloud (containing applications for the end user) are managed inside the middleware component to produce monitoring information, services and control actions (such as cultivation control). The context-aware middleware cloud responds back to the PF facility enabling the appropriate equipment to perform context-aware operations as well as back to the end user (farmers, agronomist engineers and agricultural products merchants) providing them with new context-aware services and monitoring information in order to take further assistive actions. In this sense the end user can operate the PA facilities remotely via the cloud services. A detailed overview of the system’s components is given below while a layered diagram of the system’s architecture is being illustrated in Figure 3. It should be noted that this system’s architectural framework may apply to more than one PF agriculture facilities.

3.1. Physical Layer

In the proposed system framework, the Internet of Things (IoT) is the enabling technology for efficient farm management to ensure maximum agricultural production of optimum quality and increase the profitability of various agricultural production schemes [86].
Toward this framework, a WSAN is integrated in an agriculture facility, consisting of a group of self-powered sensor nodes deployed in a mesh network topology with adequate communication range to cover a wide area. These nodes incorporate sensors that remotely acquire real-time data about various features concerning the cultivation, as well as actuators that interact with them enabling the proper physical actions within the facility. Concerning the hardware design architecture of the WSAN, several solutions, especially addressing to the harsh operating environment of rural areas, are identified and reported in the literature as in [38,39,40].
Integrating WSANs in agriculture facilities should meet several operation requirements that are applied and processed in parallel [29,39,40,41,42], as listed below:
  • Monitoring and/or control of environmental conditions such as temperature, humidity, pressure, wind, illuminance, etc.
  • Monitoring and/or control of properties related to the crop and the soil such as temperature (i.e., leaf, root zone, nutrient solution), moisture, oxygen (O2), carbon dioxide (CO2), acidity (pH level) nutrient concentration (PPM, EC), etc.
  • Forecast and control of imminent plant diseases and pests,
  • Security surveillance and control of agriculture facilities.
To handle such an extended demand in various information, a great number of heterogeneous sensor nodes is included in the WSAN. The schematic diagram of a typical agriculture sensor node deployed in the field is illustrated in Figure 4 while a brief indicative classification based on the properties of typical sensors applied to agricultural environments is given in Figure 5 [76].
The raw data acquired by the WSAN sensors are transmitted via a wireless/mobile gateway, providing the required translation technologies and mechanisms among various protocols, to the context-aware middleware cloud for being processed, managed, and stored as it will be thereafter described in this paper. Subsequently, a wireless/mobile gateway serves also the transmission of context-aware actions feedback to the actuator nodes of the WSAN in order to control the equipment of the PF facility (i.e., irrigation valves, fertilizing sprinklers, illuminance and heating/cooling systems, autonomous machinery, foggers/humidifiers, etc.) and perform the required agricultural applications.
Concerning the WSAN communication options, comparison results deriving from literature [87,88,89,90,91], suggest that among the several protocols available for the IoT (i.e., WiFi, Bluetooth, 6LowPAN, SigFox, Zigbee, etc.), the LoRaWAN and DASH7 wireless technologies are far more appropriate for the deployment of agricultural applications in rural areas, as they offer the optimum combination of communication range and data rate, as illustrated in Table 2.
Whatever the specifications or the requirements of the system are in the physical layer, the proposed solution is generating a unique framework for context representation depending on the types of the devices, the available running services, and the complete setup of the system. For this purpose, each device has a unique identifier in the system so that it can be distinguished in the general cloud architecture.

3.2. Middleware Layer

The middleware layer of the proposed system involves a context-aware middleware cloud which acts as a DSS for the entire model providing the required context-aware services and actions for its operation. This component adopts the Infrastructure as a Service (IaaS) properties of cloud computing and it is composed from several modules for acquiring, managing, and storing contextual data. Great importance is also given to the aspects of self-adaptability as well as security and privacy. A detailed description of the modules included into the context-aware middleware cloud, as illustrated earlier in Figure 2, is as follows.

3.2.1. Context Acquisition

The context acquisition module is responsible for the aggregation of the raw data which were obtained by the sensors of the PF facility’s WSAN and their distribution among various providers (i.e., a weather station providing context related to environmental conditions such as temperature, pressure, humidity, etc.) so as to be converted into context. After achieving the extraction of a high-level context feature, all the information is integrated in a single context model and its description is then forwarded to the context management module of the context-aware middleware cloud.
In the context acquisition module, context providers are accountable for converting the data acquired by the sensors into context. As agricultural environments are characterized by an exceeding amount of information that can be classified as “context”, several data abstraction levels and various feature selection techniques, such as classification and clustering, are required to obtain the exact content value for heterogeneous sensor data. Data fusion classification techniques, particularly can be extensively employed on multisensory environments aiming to fuse and aggregate data from multiple distributed heterogeneous sensors (as those deployed in agricultural fields) in order to obtain lower detection error probability and higher reliability [92]. For this purpose, the proposed system can employ a relatively large number of providers running individual techniques referring to Artificial Neural Network (ANN) classifiers, C5.0 classification algorithms, Bayesian fusion classifiers and Hidden Markov Model (HMM) classification methods, whereas in case the classification is unknown, unsupervised learning may be applied. Furthermore, clustering as an exploratory data analysis technique is widely used for identifying subgroups (clusters) in the data according to the similarity or diversity of data points. In other words, clustering is the technique of finding (according to a similarity measure) homogeneous subgroups within the data in such a way that data points in a cluster are as similar as possible. Since the K-means algorithm is one of the most used clustering techniques [93], special emphasis is given to it in the present work and its performance is going to be tested as part of the system’s evaluation.
As classification problems with large sets of input are considered to be of high computational cost, it is essential for the proposed model to be adequately adjusted to extract the proper classification features. Employing a mobile cloud platform to provide a classifier with the data storage and memory, that that are required for performing efficient computations is expected to minimize the load from local servers. Therefore, all context providers of the system are distributed in the cloud structure, running as SOAP-based web services which assemble raw sample data as inputs and respond with classification outputs. In this way the Simple Object Access Protocol (SOAP) allows clients to call upon web services and receive responses on all languages and platforms considering that web protocols such as Hypertext Transfer Protocol (HTTP) and Simple Mail Transfer Protocol (SMTP) are applied. A generic overview of the flows performed by a classifier of a context provider is illustrated in Figure 6.
While context providers perform the primal abstraction, the reasoning mechanism of the context aggregator performs the conversion into standard information, which is appropriate for recognition by the total of the system entities. The context aggregator refers to a distributed cloud service equipped with computational logic [94] for integrating as well as for interpreting all context which is essential for the interoperability among sensors data information and the service-providing entities. The aggregator is specifically assigned with the following operations:
  • Gather incoming raw data from sensor nodes of the WSANs in various PF facilities.
  • Assort the collected data for sending it to the appropriate context provider to obtain context classification.
  • Identify the type of the PF facilities as well as their particular devices and the related context providers.
  • Compile high-level output as context from various providers after performing a process of classification.
  • Resolve any imminent conflicts among duplicate data in case the same context is reported by various providers.
  • Select the optimum and most reliable value among those coming from various providers by executing, through context provisioning, a calculation of their performance score.
  • Aggregate all contextual information in single context model for each particular system.
  • Forward the context model for finding context-aware services and actions in the context-aware middleware cloud.
Furthermore, it is a fact that sensors involved in WSAN’s deployed in agricultural environments produce an extended amount of heterogeneous data which is structured in various forms. In order these data to be of proper use, it is essential to be specified and stored in a machine readable and editable form. This can be achieved by employing a modeling structure which defines, represents, and edits the contextual data in such a unified format that can be comprehended and shared. Without a precise, distinct, and flexible modeling structure, applications will be unable to comprehend and use contextual data in a sufficient way. Furthermore, the structure should be able to integrate not only the current features, but also any future changes and requirements.
The context modeling structure is compiled by the aggregator after the identification of the key contexts and it involves a hierarchical list of topics with respective attributes. It specifies the contextual data to be stored in a data source, retrieved with simple queries, and transmitted in a proper format, while it also defines whether the information is permanent or transitory. The structure is required to be transformed only in the case that new information is to be processed by the system (i.e., when a new sensing device is added or terminated).
A great number of modeling techniques can be found in the literature among which the most popular are logic-based, markup, key-value, object-oriented, domain-focused, sser-centric, multidisciplinary, graphical and ontology-based [43,44,95,96,97]. In the proposed system, the ontology-based modeling technique is being adopted because it is more competitive over the other methods in terms of formality, interoperability and reusability [95,97], focusing on a generalized model design which can assist the composition of context-aware services for the benefit of PA.
In Figure 7 an indicative proposed ontology-based context modeling structure in terms of Web Ontology Language (OWL) is being illustrated. According to this modeling structure the context is described by four main ontologies, which may have attributes to describe their basic properties. Additionally, some entities are part of the parent ontologies while they may also have some more children to describe them:
  • Plant ontology is used to identify the plants which are being cultivated in the PF facility as well as their profile, health conditions, possible diseases, etc.
  • Place ontology is used to describe the precise position of the plant cultivations.
  • Environment ontology is used to describe the environmental conditions of the surroundings.
  • Device ontology is used to describe the details of the system’s sensing and acting devices.
The aforementioned modeling structure is suitable for deriving knowledge from the current contextual data as well as for detecting any possible inconsistencies in them. This kind of structure is also convenient for the definition of rules whereas it can effortlessly be modified or extended according to the requirements of the system for one or multiple distinct PF facilities.
The modeling structure that is represented by the proposed ontology in Figure 7 can be converted to Extensible Markup Language (XML) in the level of implementation. XML is a platform-independent and resilient tool, suitable for usage in various phases of information representation as well as for communication based on the SOAP. A characteristic example of XML code listing concerning the generated context-aware modeling structure is presented in Figure 8.

3.2.2. Context Management

The context manager is responsible for managing requests from the context acquisition module, where contextual information is being obtained, as well as for correlating the contexts with the services which are specified by the service providers in order to identify the most suitable services and control actions for the relating context. This module is the core of the context-aware middleware cloud and encloses several various distributed engines that interact with each other, binding their operations as illustrated in Figure 9.
At first, the Context Retrieval Engine of the context management module is responsible for triggering requests to periodical retrieve contextual information via the context aggregator and distribute it to the corresponding components of the system. In addition, all system components can initiate context requests from the context-aware middleware cloud simply by using a web service running in the cloud server with an ID and an attribute context set. The proposed framework employs two of the most used distribution mechanisms [45]:
  • Subscribe/Publish or Notification; All system components interested in certain contextual information can subscribe to the context-aware middleware cloud and be notified each time that occurs an update of their interest.
  • Polling; All system components can make at any time, active queries for contextual information of their interest. Depending on the applied modeling techniques, various query methods may be employed.
After the infiltration of duplicate and rejected contextual data, the retrieval engine recovers the related information and responds by returning the most relevant and accurate of it.
Additionally, the necessity for more accurate and certain information leads to the demand for context inference. Although the greater part of the context inference is performed inside the context acquisition module, this engine operates as a context transformer effecting on changes of specific information. The context inference engine receives specific contextual data asserted in the ontology-based context modeling structure in terms of OWL as sets of facts and, incorporating appropriate axioms and inference rules based on second-order logic, extracts high-level contextual information as logical consequences of the data in the given ontology. The context inference task is sequentially looping through three steps (matching, selecting, and executing the rules). Since the rules execution often results in new individual or sets of facts which are being added to the knowledge base, the loop is triggered to be continued until no new rules can be further matched. In other words, the task of context inference is to extract high-level contextual information associated with some fundamental processes such as the validation of context values, the removal of outliers, the completion of missing values, the checking of context inconsistencies and the application of calculations for obtaining some new values. For instance, environment temperature expressed in the Fahrenheit climax (°F) can be transformed to the Celsius climax (°C) by applying the corresponding mathematical transformation function or the exact location of a place can be found by the provided longitude and latitude information.
The most significant operation of the context management module is the mapping of contextual data to one or more respective services to identify the appropriate actions for accomplishing these services. This engine is assigned with the task of finding the best possible matches between context and probable services as well as of combining these matches along with proper actions, through the implementation of suitable matching criteria and algorithms. An example of mapping in terms of the proposed system’s entities is illustrated in Figure 10. According to this, the root of the tree structure in the top level is context while in the following level there are the four nodes which correspond to the main entities of the modeling structure. The nodes which have no children are in the lowest level of the tree. As a respective tree structure represents the services, through the mapping operation similar paths between the two context trees are identified.
Finally, agricultural stakeholders into the services cloud can provide rules for control actions regarding several operational aspects of the PF facility. Nevertheless, in this framework, control actions do not derive only by the services cloud, as in certain cases the context-aware middleware cloud may also provide action rules through detecting, associating, and coordinating already existing services. This process of the system is characterized as service discovery. According to the service discovery process, centralized, or distributed repositories are employed for the storage of corresponding service profiles involving parameters, attributes, and locations which are required for the execution of further queries. On the subject of service discovery several protocols are taken into consideration as for instance the Service Discovery Service (SDS) [98] or the Simple Service Discovery Protocol (SSDP) [99].

3.2.3. Context Storage

The storage of context is highly required since context history can be essential for process planning, constituting a good source of knowledge for prediction of future actions to be undertaken and inference processes. Taking into consideration the rather extended volume of data, a distributed cloud repository is involved in the system model, to guarantee the conservation of contextual information. Up-to-date data and respective context are stored into the context-aware middleware cloud as an expandable knowledge base of ontologies while all attributes are stored as key-value pairs in various ontology repositories, simplifying the query versions [100]. All the system components as well as the devices have at disposal a unique id for the distinction of incoming contextual data.
In the proposed system model the entity database as well as the entity properties, tables and workflows are initially developed in Structured Query Language (SQL) which is a standard programming tool for storing, managing, and retrieving data, yet afterwards they are upgraded into a graphical environment inside the cloud platform. A screenshot representing part of an indicative entity database is illustrated in Figure 11. Let as note that while workflow and tables are optional for the entity database, properties are obligatory. In addition, screenshots representing some indicative (a) entity properties, (b) an entity table and (c) an entity workflow are illustrated in Figure 12. Regarding the issue of storage and retrieval of sensitive data into the context-aware middleware cloud [101], a sufficient authentication mechanism for access control is applied.

3.2.4. Self-Adaptation

The ability of self-adaptation is a strong requirement in the context-aware middleware cloud so that context is being provided as input to produce the proper services and control actions [46,47,102]. Moreover, self-adaptation is responsible for diagnosing, locating and recovering any possible failures in the workflows as in [102]. The self-adaptation module of the proposed context-aware middleware cloud is distinguished in the following two main mechanisms as illustrated in Figure 13:
  • The Evolution Management mechanism, which checks whether the context-aware middleware cloud is properly deployed to the proposed system through surveying the middleware and maintaining its coherency.
  • The Adaptation Management mechanism which receives and evaluates the surveillance results collected by the evolution manager to find new aspects of the context-aware middleware cloud deployment and allow any new services to be established on demand.
Specifically, the context-aware middleware of the proposed system can identify action sets and store this information into the cloud repository, enhancing the knowledge base. In this way the development cycle of the system is reduced when a similar pattern is detected in the context. Furthermore, it is considered that according to the proposed solution, the model can meet the requirements of processing and obtaining the most possible accurate results while maintaining on the analysis the real-time constraint.

3.2.5. Security and Privacy

The proposed model places great emphasis on ensuring security and privacy since an amount of the contextual data that is accumulated, processed, and managed inside the context-aware middleware cloud is sensitive. The security and privacy module, through the performance of security functions which detect and monitor possible irregularities or unauthorized accesses to data, ensures the privacy of contextual information. In this regard, precisely identifying access control as well as encrypting or authenticating contextual data during the transmission and storage processes, are the two basic mechanisms used to perform security functions.
In the literature, several solutions are proposed concerning context security and privacy [103,104,105,106] among which the One-Time Password (OTP) protocol [107,108,109] appears to be the most suitable one for controlling the access to the contextual data stored in the cloud since it can be integrated to mobile devices. This protocol differentiates from the one applying just a static password as it uses cryptographic algorithms to generate a new unique access token for each time a user requests login authentication. The OTP protocol is distinguished in two approaches:
Counter-synchronized OTP, in which a counter is set for synchronizing the authentication server and the access token. In this approach, the counter value of the generated access token is the security factor, since by the completion of an authentication attempt made by a certain user, it increases and cannot be reused.
Time-synchronized OTP, in which a timer is set for synchronizing the authentication server and the access token. According to this approach, the user is requested to provide the generated access token within a session of predefined duration as after it expires the access token is no longer valid.
From the aforementioned approaches the Time-synchronized OTP is the one applied for it is the most appropriate one for providing an enhanced security and privacy mechanism. Moreover, the system model adopts a combination of Attribute Based Access Control (ABAC) and Role Based Access Control (RBAC) in order to contemplate all attributes and roles that must be taken into consideration for controlling the access of users, groups, or applications to individual contextual data based on their level of privacy.
Several OTP generator applications are available such as Google Authenticator and Free OTP while some cloud computing platforms incorporate a variety of authentication features (i.e., Microsoft Azure platform integrates features as OTP, RBAC, shared key, etc.). For further developing the security and privacy in the system an OTP generator may be integrated within the end user mobile devices to generate the access tokens.

3.3. Application Layer

The application layer of the proposed model consists of two cloud components which involve the Software as a Service (SaaS) features, providing all required software applications for the interaction of end user with the system. The applications are centrally hosted, accessed by users remotely and licensed on a subscription basis.

3.3.1. Services Cloud

This cloud component is employed for providing various types of services. According to the proposed model, agricultural stakeholders (farmers, agronomist engineers and agricultural products merchants) can subscribe to the mobile cloud structure and by using the context which is deployed in it, they are able to receive request context-aware services concerning the observed conditions of the cultivations as well as to provide rules for control actions by using simple query mechanisms. Some typical examples of such services include automated, symptom detection, emergency, consultancy, and software service. Their rules as well as the corresponding control actions are presented in Table 3. Since a service rule is retrieved it can be easily described with control actions based on the ontology abstraction of the proposed entity-based context model. All rules are stored inside a context repository of the context-aware middleware cloud and can be retrieved by employing a suitable service provisioning technique [110].
Given that the implemented services are considerably large in number, as they may be implemented by several diverse stakeholders and differentiate among various plants or cultivations, it is almost impossible to be deployed and installed in a single machine. By integrating all services into the cloud, the issue of resources can be resolved and by describing them with a unique model the service-mapping task can be simplified. Several platforms providing cloud services for PA are available as for example The Open Ag Toolkit (OpenATK) which incorporates internet-based cloud services in widely available, low-cost mobile computing technologies [111].

3.3.2. Social Networking and Monitoring Cloud

Although all actions are event driven inside the context-aware middleware cloud, there are some cases in which manual tracking is required. According to the proposed model, a variety of web interface types is suggested for the context-aware middleware cloud management to store and retrieve context. Supplementary interfaces for data visualization analyze the context and present it in a visual representation format which can be published in a social network of agricultural stakeholders to provide real-time monitoring of the cultivation status. It is believed that such types of monitoring services can be easily adopted by the proposed model; however, the in-depth analysis of this aspect is beyond the boundaries of this article.

4. Implementation and Application Scenarios

To study the functionality of the system framework described in the previous section, a model was developed by employing the Python programming language for prototyping [112] and Microsoft Azure platform [113] for cloud computing infrastructure and services. An overview of the software features employed to develop the system’s modules is presented in Table 4.
For accuracy purposes agricultural raw data were collected in actual conditions of use in the “Kopaida” farm which is located 120 km north of Athens and managed by the Agricultural University of Athens. The farm covers an area of 1020 hectares divided into 11 sections of arable land, rich in organic matter and calcium, where various crops (cereal, maize, cotton, alfalfa, etc.) are cultivated. Moreover, it is equipped with agricultural machinery, an underground irrigation system, and a modern weather station. The acquisition of raw data was performed during June 2019, by deploying in a maize parcel environmental and soil wireless sensors as depicted in Figure 14. It is worth mentioning that the wireless sensors use the “SensoTube” open architecture which has been introduced as part of previous work by Piromalis and Arvanitis [38]. This architecture can contribute significantly towards the hardware abstraction requirements for the development of a sound middleware by providing an optimized, reliable, flexible, and scalable framework for agricultural WSANs. The hardware of a “SensoTube” wireless sensor is illustrated in Figure 15.
Among the data provided, the implementation process involves 300 sample sets containing parameters in form of numerical values about air temperature and humidity as well soil moisture and pH, considering a sampling rate of 15 min. A piece of random sample sets of raw data in numerical values is presented in Table 5.
According to the proposed system’s workflow, the provided agricultural raw data are classified to high-level contextual data (e.g., temperature is high, pH range is normal, etc.) by four corresponding rule-based classifiers developed as context providers in Python. Subsequently, the data are aggregated by the Python-developed context aggregator and finally the context model is derived by implementing the suggested modeling structure in terms of entities. A screenshot of Python source code for classifying pH range values to high-level contextual data is introduced in Figure 16.
The results of classifying the random sample sets of agricultural raw data, acquired in a maize field (as in Table 5), to contextual data are presented in Table 6. All sample sets are processed individually inside the context management module of the context-aware middleware cloud.
Furthermore, ten service providers (SP) were created, among which diverse fuzzy logic-based rules were distributed, involving all the potential actions for context correlation. These rules are stored in the form of XML code as demonstrated in Figure 17. The most suitable services, among the ones provided by various SP, are selected by the context management module after completing the service mapping operation.
Information concerning the profile characteristics of the cultivation is stored in the context repository served by a suitable Azure data source while log entries of unusual instances are also stored with corresponding timestamps.
For the purposes of this research, two application scenarios where studied during the implementation process of the system.

4.1. Application Scenario for Automated Context-Aware Service

The diagram representing the application scenario for automated context-aware service according to the following sequence is demonstrated in Figure 18.
  • Agricultural data are acquired by the WSAN deployed in a maize field of the “Kopaida” farm (as in Table 5) and transmitted to the gateway.
  • The gateway forwards the raw data to the context-aware middleware cloud into the Microsoft Azure platform.
  • Into the context-aware middleware cloud the raw data are classified as high-level contextual data (as in Table 6) and it appears that a set of them involves unusual values (No 8 of Table 6). The context management module after performing context correlation with the provided services identifies the most suitable service rule which corresponds to imminent plant disease conditions (high air temperature, soil moisture use, and soil pH range).
  • The contextual data are transmitted to the cloud server running in the Azure platform and stored in a data source as context history.
  • The service rule is converted to XML code and sent to the cloud server running in the Azure platform as a SOAP response.
  • The cloud server receives the service rule and sends the relevant action command to alert the farmer via a pop-up mobile application running in the cloud platform (in the case of the simulated model a flag is set in the device’s class object).
  • The pop-up mobile application involves a conversational user interface for communication with the farmer in a question–answer session. The form of the question for the current instance is indicatively “Imminent disease conditions identified. Request real-time agronomist support?”. The result of the conversation is sent to the context-aware middleware cloud to receive more specific context as “Consultancy request is positive”.
  • The context management module of the middleware runs a service-mapping operation with the new context (consultancy request) and identifies new service actions based on the context value. (For positive consultancy request it selects the service ‘‘Consultancy’’ as in Table 3).
  • The record of the conversation is also sent to the data source of the cloud server to be stored as context history for possible future usage.

4.2. Application Scenario for Real-Time Information Search Context-Aware Service

The diagram representing the application scenario for automated context-aware service according to the following sequence is demonstrated in Figure 19.
  • Agricultural data are acquired by the WSAN deployed in a maize field of the “Kopaida” farm (as in Table 5) and transmitted to the gateway.
  • The gateway forwards the raw data to the context-aware middleware cloud into the Microsoft Azure platform.
  • The raw data are processed and classified as high-level contextual data into the context management module of the middleware cloud.
  • The contextual data are sent to the cloud server running in the Azure platform and stored in a data source as context history.
  • The farmer accesses the system via a mobile application supported by conversational user interface and requests information concerning the daily cultivation soil moisture use for a specific date. The request is forwarded in real time to the context-aware middleware cloud.
  • The context-aware middleware cloud sends a request to the cloud server for accessing the related data stored in a data source.
  • The cloud server responds by returning to the context-aware middleware cloud the requested contextual data concerning the request.
  • The context-aware middleware cloud processes the contextual data and responds to the farmer via the mobile application by sending all the requested information.

5. Performance Evaluation Results

With the objective to validate the systems performance several trials were conducted both in real (as in Section 4) and simulated environment for one PF facility environment. Testing the system on two application scenarios allowed its proper analysis and evaluation in terms of health, operation, and performance, whereas considerable attention was given to the validation of the response time parameter, in terms of the real-time constraint.
At first it has been verified that raw data were being suitably acquired, transferred, stored and managed in the Microsoft Azure cloud platform to retrieve the relevant information as illustrated in Figure 20.
Metrics, as numerical values, helping to understand the health, operation, and performance of the system are available from Azure Resources in the platform’s backend as in the screenshots depicted below (Figure 21 and Figure 22).
The average server response time is probably the most important among the validated parameters concerning the system’s performance, as it represents the time spent from the arrival of a request into the cloud context-aware middleware performing the required operations over the data acquired by the WSAN until the dissemination of the processed contextual information to the applications of interest. The average response time of the server as deriving from the metrics depicted in Figure 21 is 56.82 ms, which is considered to quite satisfactory for the system’s performance.
Additionally, the average response time representing the period required for both semantic and mapping rules to be executed upon the arrival of an XML message has been measured during the tests as depicted in Figure 23. In particular, the chart demonstrates the results of testing the system’s behavior for one, five and ten mapping rules while the axes of the chart represent the number of messages that have been received in each case by the middleware component in relation to the response time. As it appears from the results, the system performs extremely well for 1 and 5 mapping rules, reaching the average response time of the server as provided by the Azure Resources metrics, for 10 mapping rules.
In general, according to the outcomes provided by the metrics obtained during the tests, the proposed system performs fairly satisfactory for controlling one PF facility environment since sensory data could be adequately acquired, processed, stored in the knowledge base, retrieved and disseminated to the applications of interest, resulting consequently into the proper actions. Nevertheless, the performance of the system is intended to be more thoroughly tested by evaluating additional parameters and integrating multiple PF environments for various cultivations and in distinct locations as part of future research.
As part of the system’s evaluation, the performance of implementing K-means algorithm for clustering has also been tested. Let as note that for this purpose the Python programming language was used. The graph in Figure 24 illustrates a scatter plot of data regarding soil moisture usage. The data are colored according to the plant group they belong to depending their behavior under two different irrigation scenarios. This means that we consider the two clusters as plant groups that indicate different kinds of behavior under the two different irrigation scenarios. The star symbol represents the centroid for each cluster. In this test, the K-means algorithm has been run on the data for K = 2.
For evaluating the performance of the K-means algorithm for clustering we have implemented the Elbow method, since it provides a sufficient outcome regarding the optimum number of clusters (K) based on the sum of squared distance (SSE) between data points and their assigned clusters’ centroids. The optimum value of K is defined at the spot where SSE starts to flatten out forming an elbow. SSE has been evaluated for different values of K and as the graph in Figure 25 demonstrates the choice of the value K = 2 has been quite sufficient.

6. Discussion

The purpose of this article was to introduce a competitive architectural framework of a context-aware middleware for integrating agricultural WSANs into the IoT by means of cloud infrastructures and resources, so as to efficiently support the real-time remote monitoring and control of PF facility systems. In this regard context awareness allows the comprehension of the sensory raw data situational context providing personalized intelligent services tailored to meet user and environmental needs, while cloud computing resources reduce the computing load of the sensing devices, provide centralized storage repositories and enable the dissemination of information under flexible usage scenarios to all agricultural stakeholders.
For the purposes of this work, the related state of the art in recent literature was studied and the limitations of the currently offered solutions were determined, in order to identify the challenges involved in the development of a single model framework with scalable and flexible computing capabilities, which respond to the demanding requirements of agricultural industry trends with regard to Agriculture 4.0 practices. The system model that was proposed in this article adopts a layered hierarchical structure, consisting of a PF facility at the lower level and three main components integrated into a cloud platform at the higher level. According to this model all of the system’s functional elements cope with context, while context awareness is accomplished into the cloud-based distributed middleware component which is the core of the entire system acting as a DSS in the backend.
Comprehensively, it is strongly considered that the points of view distinguishing the contribution of this proposed solution are perceptible in two ways, architecturally as well as functionally. Along these lines, the context-aware middleware component is integrated into the cloud platform, adopting the IaaS properties of cloud computing and it is composed from several modules for acquiring, managing, and storing contextual data. The context management module performs the most significant operations among which is the mapping of contextual data to one or more respective services to identify the appropriate actions for accomplishing these services. Great importance is also given to the aspect of self-adaptability according which the system is able to identify action sets and store this information into the cloud repository, enhancing in this way the knowledge base along with choosing the optimum actions for agricultural operations, correspondingly to the real-time constraint.
Testing the system on two application scenarios allowed its proper analysis and evaluation in terms of health, operation, and performance, whereas considerable attention was given to the validation of the response time parameter, in terms of the real-time constraint. As it appeared from the obtained outcomes, according to the metrics provided, the proposed system performs fairly satisfactory for controlling one PF facility environment since sensory data could be adequately acquired, processed, stored in the knowledge base, retrieved, and disseminated to the applications of interest, resulting consequently into the proper actions. Moreover, as deriving from the K-means algorithm evaluation the clustering using this technique performs sufficiently well.
At this point it has to be noted that the proposed solution is regarded to be quite scalable and flexible, applying in general to the guidelines of the internationally standardized IoT Reference Architecture provided by the new standard “ISO/IEC 30141” as in [114] which was released in 2018 by the International Organization for Standardization (ISO) as a reference framework for the IoT. However the compatibility of the proposed framework to some technology standards such as the “OpenLS” and “Sensor Web Enablement” provided by the Open Geospatial Consortium (OGC) as in [115] has not been taken into full consideration with regard to the issues of geocoding, determination of location, schemas for points of interest or location-based ad-hoc network formation.

7. Conclusions and Future Work

In conclusion, it is strongly believed that since context-aware middleware is estimated to become one of the prime research objectives within the Agriculture 4.0 approach, the proposed solution is considered to constitute a complete framework for supporting context awareness. It is in that regard that the introduced model, based on the integration of WSANs into the IoT, has the benefit of being effortlessly adaptable, modifiable, and extendable for any application in any PF system environment no matter how complex it is.
Future work on the subject is intended to include an in-depth performance evaluation of the model through the integration of multiple PF environments with various cultivations and in distinct locations in order to improve the interoperability and standardization of the proposed framework with regard to some significant cutting-edge standards such as the “ISO/IEC 30141” provided by the ISO as well as “OpenLS” and “Sensor Web Enablement” provided by the OGC. For what is more, since the involvement of smart mobile devices and social networking was not taken into much consideration, these features are going to be included as part of the ongoing work. Finally, issues regarding reliability analysis and cybersecurity are also going to be thoroughly examined.

Author Contributions

Conceptualization, E.S. and K.A.; methodology, formal analysis, investigation, writing—original draft preparation, E.S.; validation, E.S., K.A. and D.P.; writing—review and editing, E.S. and D.P.; supervision, K.A. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Acknowledgments

Authors would like to thank the Agricultural University of Athens for providing the required resources to complete and present this research project.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. FAO. Climate Smart Agriculture Sourcebook. Available online: http://www.fao.org/climate-smart-agriculture-sourcebook/en/ (accessed on 12 December 2019).
  2. Seelan, S.K.; Laguette, S.; Casady, G.M.; Seielstad, G.A. Remote sensing applications for precision agriculture: A learning community approach. Remote Sens. Environ. 2003, 88, 157–169. [Google Scholar] [CrossRef]
  3. Mulla, D.; Khosla, R. Historical evolution and recent advances in precision farming. In Soil-Specific Farming: Precision Agriculture, 1st ed.; Rattan, L., Stewart, B.A., Eds.; CRC Press Taylor & Francis Group: Boca Raton, FL, USA, 2016; Volume 1, pp. 1–36. [Google Scholar]
  4. Leonard, E.C. Precision agriculture. In Encyclopedia of Food Grains, 2nd ed.; Wrigley, C., Corke, H., Seetharaman, K., Faubion, J., Eds.; Elsevier: Oxford, UK, 2016; Volume 4, pp. 162–167. [Google Scholar] [CrossRef]
  5. Precision Agriculture and the Future of Farming in Europe, Study, EPRS-European Parliamentary Research Service, Scientific Foresight Unit (STOA), Brussels, European Union, 2016. Available online: http://www.europarl.europa.eu/RegData/etudes/STUD/2016/581892/EPRS_STU(2016)581892_EN.pdf (accessed on 12 December 2019). [CrossRef]
  6. Symeonaki, E.G.; Arvanitis, K.G.; Piromalis, D.D. Current trends and challenges in the deployment of IoT technologies for climate smart facility agriculture. Int. J. Sustain. Agric. Manag. Inform. 2019, 5, 181–200. [Google Scholar] [CrossRef]
  7. Kagermann, H.; Wahlster, W.; Helbig, J. Recommendations for Implementing the Strategic Initiative INDUSTRIE 4.0—Securing the Future of German Manufacturing Industry; Acatech-National Academy of Science and Engineering: Munich, Germany, 2013; Available online: http://forschungsunion.de/pdf/industrie_4_0_final_report.pdf (accessed on 12 December 2019).
  8. WEF. Mastering the Fourth Industrial Revolution. In Proceedings of the World Economic Forum Annual Meeting, Davos-Klosters, Switzerland, 20–23 January 2016; Available online: http://www3.weforum.org/docs/WEF_AM16_Report.pdf (accessed on 12 December 2019).
  9. Smit, J.; Kreutzer, S.; Moeller, C.; Carlberg, M. Industry 4.0 Analytical Study; European Parliament’s Committee on Industry, Research and Energy (ITRE): Brussels, Belgium, 2016; Available online: http://www.europarl.europa.eu/RegData/etudes/STUD/2016/570007/IPOL_STU(2016)570007_EN.pdf (accessed on 12 December 2019).
  10. Pfeiffer, S. The vision of “Industrie 4.0” in the making—A case of future told, tamed, and traded. NanoEthics 2017, 11, 107–121. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  11. Xu, L.D.; Xu, E.L.; Li, L. Industry 4.0: State of the art and future trends. Int. J. Prod. Res. 2018, 56, 2941–2962. [Google Scholar] [CrossRef] [Green Version]
  12. Rojko, A. Industry 4.0 concept: Background and overview. Int. J. Interact. Mob. Technol. 2017, 11, 77. [Google Scholar] [CrossRef] [Green Version]
  13. Bonneau, V.; Copigneaux, B.; Probst, L.; Pedersen, B. Industry 4.0 in Agriculture: Focus on IoT Aspects; Digital Transformation Monitor; European Commission: Brussels, Belgium, 2017; Available online: https://ec.europa.eu/growth/tools-databases/dem/monitor/sites/default/files/DTM_Agriculture%204.0%20IoT%20v1.pdf (accessed on 12 December 2019).
  14. De Clercq, M.; Vats, A.; Biel, A. Agriculture 4.0: The Future of Farming Technology. World Government Summit in Collaboration with Oliver Wyman. 2018. Available online: https://www.worldgovernmentsummit.org/api/publications/document?id=95df8ac4-e97c-6578-b2f8-ff0000a7ddb6 (accessed on 12 December 2019).
  15. Rose, D.C.; Chilvers, J. Agriculture 4.0: Broadening responsible innovation in an era of smart farming. Front. Sustain. Food Syst. 2018, 2, 1–5. [Google Scholar] [CrossRef] [Green Version]
  16. Patrício, D.; Rieder, R. Computer vision and artificial intelligence in precision agriculture for grain crops: A systematic review. Comput. Electron. Agric. 2018, 153, 69–81. [Google Scholar] [CrossRef] [Green Version]
  17. Popa, C. Adoption of Artificial Intelligence in Agriculture. Bull. Univ. Agric. Sci. Vet. Med. Cluj-Napoca Agric. 2011, 68, 284–293. [Google Scholar] [CrossRef]
  18. Dahikar, S.S.; Rode, S.V. Agricultural crop yield prediction using artificial neural network approach. Int. J. Innov. Res. Electr. Electron. Instrum. Contr. Eng. 2014, 2, 683–686. [Google Scholar]
  19. Ji, C.; Shao, Q.; Sun, J.; Liu, S.; Pan, L.; Wu, L.; Yang, C. Device data ingestion for industrial big data platforms with a case study. Sensors 2016, 16, 279. [Google Scholar] [CrossRef]
  20. Ip, R.H.L.; Ang, L.M.; Seng, K.P.; Broster, J.C.; Pratley, J.E. Big data and machine learning for crop protection. Comput. Electron. Agric. 2018, 151, 376–383. [Google Scholar] [CrossRef]
  21. Delgado, J.A.; Short, N.M.; Roberts, D.P.; Vandenberg, B. Big data analysis for sustainable agriculture on a geospatial cloud framework. Front. Sustain. Food Syst. 2019, 3. [Google Scholar] [CrossRef] [Green Version]
  22. Choudhary, S.K.; Jadoun, R.S.; Mandoriya, H.L. Role of cloud computing technology in agriculture fields. Comput. Eng. Intell. Syst. 2016, 7, 1–7. [Google Scholar]
  23. Symeonaki, E.G.; Arvanitis, K.G.; Piromalis, D.D. Cloud computing for IoT applications in climate-smart agriculture: A review on the trends and challenges toward sustainability. In Innovative Approaches and Applications for Sustainable Rural Development, 1st ed.; HAICTA 2017; Theodoridis, A., Ragkos, A., Salampasis, M., Eds.; Springer: Cham, Switzerland, 2019; Volume 1, pp. 147–167. [Google Scholar] [CrossRef] [Green Version]
  24. Tan, L. Cloud-based decision support and automation for precision agriculture in orchards. IFAC-PapersOnLine 2016, 49, 330–335. [Google Scholar] [CrossRef]
  25. Fresco, R.; Ferrari, G. Enhancing precision agriculture by internet of things and cyber physical systems. Atti. Soc. Tosc. Sci. Nat. Mem. Suppl. 2018, 125, 53–60. [Google Scholar] [CrossRef]
  26. Selmani, A.; Oubehar, H.; Outanoute, M.; Ed-Dahhak, A.; Guerbaoui, M.; Lachhab, A.; Bouchikhi, B. Agricultural cyber-physical system enabled for remote management of solar-powered precision irrigation. Biosyst. Eng. 2018, 177, 18–30. [Google Scholar] [CrossRef]
  27. An, W.; Wu, D.; Ci, S.; Luo, H.; Adamchuk, V.; Xu, Z. Agriculture cyber-physical systems. In Cyber-Physical Systems; Song, H.S., Rawat, D.B., Jeschke, S., Brecher, C., Eds.; Elsevier Academic Press: Cambridge, MA, USA, 2017; Volume 1, pp. 399–417. [Google Scholar] [CrossRef]
  28. Madushanki, A.; Halgamuge, M.; Wirasagoda, H.; Syed, A. Adoption of the Internet of Things (IoT) in agriculture and smart farming towards urban greening: A review. Int. J. Adv. Comput. Sci. Appl. 2019, 10, 11–28. [Google Scholar] [CrossRef] [Green Version]
  29. Talavera, J.M.; Tobón, L.E.; Gómez, J.A.; Culman, M.A.; Aranda, J.M.; Parra, D.T.; Quiroz, L.A.; Hoyos, A.; Garreta, L.E. Review of Iot applications in agro-industrial and environmental fields. Comput. Electron. Agric. 2017, 142, 283–297. [Google Scholar] [CrossRef]
  30. Lakhwani, K.; Gianey, H.; Agarwal, N.; Gupta, S. Development of IoT for smart agriculture a review. In Proceedings of the International Conference on Emerging Trends in Expert Applications & Security (ICETEAS 2018), Jaipur, India, 17–18 February 2018; Rathore, V.S., Worring, M., Mishra, D.K., Joshi, A., Maheshwari, S., Eds.; Springer: Singapore, 2019; pp. 425–432. [Google Scholar] [CrossRef]
  31. Sowjanya, K.D.; Sindhu, R.; Parijatham, M.; Srikanth, K.; Bhargav, P. Multipurpose autonomous agricultural robot. In Proceedings of the 2017 International Conference of Electronics, Communication and Aerospace Technology (ICECA), Coimbatore, India, 20–22 April 2017; pp. 696–699. [Google Scholar] [CrossRef]
  32. Shamshiri, R.; Weltzien, C.; Hameed, I.; Yule, I.; Grift, T.; Balasundram, S.; Pitonakova, L.; Ahmad, D.; Chowdhary, G. Research and development in agricultural robotics: A perspective of digital farming. Int. J. Agric. Biol. Eng. 2018, 11, 1–14. [Google Scholar] [CrossRef]
  33. Reiser, D.; Sehsah, E.S.; Bumann, O.; Morhard, J.; Griepentrog, H.W. Development of an autonomous electric robot implement for intra-row weeding in vineyards. Agriculture 2019, 9, 18. [Google Scholar] [CrossRef] [Green Version]
  34. Webster, J.; Watson, R.T. Analyzing the past to prepare for the future: Writing a literature review. MIS Q. 2002, 26, xiii–xxiii. [Google Scholar] [CrossRef]
  35. Tranfield, D.; Denyer, D.; Smart, P. Towards a methodology for developing evidence-informed management knowledge by means of systematic review. Br. J. Manag. 2003, 14, 207–222. [Google Scholar] [CrossRef]
  36. Ozdogan, B.; Gacar, A.; Aktas, H. Digital agriculture practices in the context of Agriculture 4.0. J. Econ. Financ. Account. 2017, 4, 186–193. [Google Scholar] [CrossRef]
  37. Deichmann, U.; Goyal, A.; Mishra, D. Will digital technologies transform agriculture in developing countries? Agric. Econ. 2016, 47, 21–33. [Google Scholar] [CrossRef]
  38. Piromalis, D.; Arvanitis, K. SensoTube: A scalable hardware design architecture for wireless sensors and actuators networks nodes in the agricultural domain. Sensors 2016, 16, 1227. [Google Scholar] [CrossRef] [Green Version]
  39. Li, S.; Cui, J.; Li, Z. Wireless Sensor Network for Precise Agriculture Monitoring. In Proceedings of the 2011 Fourth International Conference on Intelligent Computation Technology and Automation, Shenzhen, China, 28–29 March 2011; pp. 307–310. [Google Scholar] [CrossRef]
  40. Ojha, T.; Misra, S.; Raghuwanshi, N.S. Wireless Sensor Networks for agriculture: The state-of-the-art in practice and future challenges. Comput. Electron. Agric. 2015, 118, 66–84. [Google Scholar] [CrossRef]
  41. Popović, T.; Latinović, N.; Pešić, A.; Zečević, Ž.; Krstajić, B.; Djukanović, S. Architecting an Iot-enabled platform for precision agriculture and ecological monitoring: A case study. Comput. Electron. Agric. 2017, 140, 255–265. [Google Scholar] [CrossRef]
  42. Van Evert, F.K.; Fountas, S.; Jakovetic, D.; Crnojevic, V.; Travlos, I.; Kempenaar, C. Big data for weed control and crop protection. Weed Res. 2017, 57, 218–233. [Google Scholar] [CrossRef] [Green Version]
  43. Li, X.; Eckert, M.; Martinez, J.F.; Rubio, G. Context Aware Middleware Architectures: Survey and Challenges. Sensors 2015, 15, 20570–20607. [Google Scholar] [CrossRef] [Green Version]
  44. Zhang, D.; Huang, H.; Lai, C.F.; Liang, X.; Zou, Q.; Guo, M. Survey on context-awareness in ubiquitous media. Multimed. Tools Appl. 2013, 67, 179–211. [Google Scholar] [CrossRef]
  45. Van Kranenburg, H.; Bargh, M.; Iacob, S.; Peddemors, A. A context management framework for supporting context-aware distributed applications. IEEE Commun. Mag. 2006, 44, 67–74. [Google Scholar] [CrossRef]
  46. Dalmau, M.; Roose, P.; Laplace, S. Context aware adaptable applications: A global approach. Int. J. Comput. Sci. Issues 2009, 1, 13–25. [Google Scholar]
  47. Ghosh, R.K. Context-aware infrastructures for smart environment. In Wireless Networking and Mobile Data Management, 1st ed.; Ghosh, R.K., Ed.; Springer: Singapore, 2017; Volume 1, pp. 509–540. [Google Scholar] [CrossRef]
  48. Bosse, S.; Lehmhus, D.; Lang, W.; Busse, M.; Bosse, S. Distributed and cloud computing: The big machine. In Material-Integrated Intelligent Systems—Technology and Applications; Bosse, D., Lehmhus, W.L., Busse, M., Eds.; Wiley-VCH Verlag GmbH & Co.: Weinheim, Germany, 2017; Volume 1, pp. 385–386. [Google Scholar] [CrossRef]
  49. Yu, J.; Yang, Z.; Zhu, S.; Xu, B.; Li, S.; Zhang, M. A bibliometric analysis of cloud computing technology research. In Proceedings of the 2018 IEEE 3rd Advanced Information Technology, Electronic and Automation Control Conference (IAEAC), Chongqing, China, 12–14 October 2018; pp. 2353–2358. [Google Scholar] [CrossRef]
  50. Zhou, H.; Hu, Y.; Su, J.; de Laat, C.; Zhao, Z. CloudsStorm: An application-driven framework to enhance the programmability and controllability of cloud virtual infrastructures. In Cloud Computing—CLOUD 2018, Proceedings of the CLOUD 2018 Lecture Notes in Computer Science, Seattle, WA, USA, 25–30 June 25–30, 2018; Luo, M., Zhang, L.J., Eds.; Springer: Cham, Switzerland, 2018; Volume 10967, pp. 265–280. [Google Scholar] [CrossRef]
  51. Roman, M.; Campbell, R.H. Gaia: Enabling active spaces. In Proceedings of the 9th Workshop on ACM SIGOPS European Workshop: Beyond the PC: New Challenges for the Operating System, Kolding, Denmark, 17–20 September 2000; ACM: Kolding, Denmark, 2000; pp. 229–234. [Google Scholar]
  52. Capra, L.; Emmerich, W.; Mascolo, C. Reflective middleware solutions for context-aware applications. In Proceedings of the Third International Conference on Metalevel Architectures and Separation of Crosscutting Concerns, Kyoto, Japan, 25–28 September 2001; Springer: Berlin/Heidelberg, Germany, 2001; pp. 126–133. [Google Scholar]
  53. Garlan, D.; Siewiorek, D.P.; Smailagic, A.; Steenkiste, P. Project Aura: Toward distraction-free pervasive computing. IEEE Perv. Comput. 2002, 1, 22–31. [Google Scholar] [CrossRef] [Green Version]
  54. Verissimo, P.; Cahill, V.; Casimiro, A.; Cheverst, K.; Friday, A.; Kaiser, J.; EU IST (Funder). CORTEX: Towards supporting Autonomous and Cooperating Sentient entities. In Proceedings of the European Wireless 2002 (EW2002), Florence, Italy, 26–28 February 2002; pp. 595–601. [Google Scholar]
  55. Chan, A.T.S.; Siu-Nam, C. Mobipads: A reflective middleware for context-aware mobile computing. IEEE Trans. Softw. Eng. 2003, 29, 1072–1085. [Google Scholar] [CrossRef]
  56. Ranganathan, A.; al-Muhtadi, J.; Chetan, S.; Campbell, R.; Mickunas, M.D. Middlewhere: A middleware for location awareness in ubiquitous computing applications. In Proceedings of the 5th ACM/IFIP/USENIX International Conference on Middleware, Toronto, ON, Canada, 18–24 October 2004; Springer: New York, NY, USA, 2004; pp. 397–416. [Google Scholar]
  57. Sorensen, C.F.; Wu, M.; Sivaharan, T.; Blair, G.S.; Okanda, P.; Friday, A.; Duran-Limon, H. A context-aware middleware for applications in mobile ad hoc environments. In Proceedings of the 2nd Workshop on Middleware for Pervasive and ad-hoc Computing, Toronto, ON Canada, 18–24 October 2004; ACM: Toronto, ON, Canada, 2004; pp. 107–110. [Google Scholar]
  58. Gu, T.; Pung, H.K.; Zhang, D.Q. A service-oriented middleware for building context-aware services. J. Netw. Comput. Appl. 2005, 28, 1–18. [Google Scholar] [CrossRef]
  59. Azcorra, A.; Banniza, T.; Chieng, D.; Fitzpatrick, J.; von-Hugo, D.; Natkaniec, M.; Robitzsch, S.; Zdarsky, F. Supporting carrier grade services over wireless mesh networks: The approach of the European fp-7 strep carmen [very large projects]. IEEE Commun. Mag. 2009, 47, 14–16. [Google Scholar] [CrossRef] [Green Version]
  60. Hu, P.Z.; Chong, S.K.; Indulska, J.; Krishnaswamy, S. Context-aware and Resource Efficient Sensing Infrastructure for Context-aware Applications. In Proceedings of the 2010 8th IEEE International Conference on Pervasive Computing and Communications Workshops, Mannheim, Germany, 29 March–2 April 2010. [Google Scholar]
  61. Khaddar, M.A.E.; Chraibi, M.; Harroud, H.; Boulmalf, M.; Elkoutbi, M.; Maach, A. FlexRFID: A security and service control policy-based middleware for context-aware pervasive computing. Int. J. Adv. Res. Artif. Intell. 2014, 3, 26–34. [Google Scholar] [CrossRef] [Green Version]
  62. Celdrán, A.H.; Clemente, F.J.G.; Pérez, M.G.; Pérez, G.M. SeCoMan: A semantic-aware policy framework for developing privacy-preserving and context-aware smart applications. IEEE Syst. J. 2013, 10, 1111–1124. [Google Scholar] [CrossRef]
  63. Kang, J.; Park, S. Context-aware services framework based on semantic web services for automatic discovery and integration of context. Int. J. Adv. Comput. Technol. 2013, 5, 439–448. [Google Scholar] [CrossRef]
  64. Perera, C.; Zaslavsky, A.; Christen, P.; Georgakopoulos, D. Ca4iot: Context awareness for internet of things. In Proceedings of the 2012 IEEE International Conference on Green Computing and Communications, Besançon, France, 20–23 November 2012; IEEE Computer Society: Washington, DC, USA, 2012; pp. 775–782. [Google Scholar]
  65. Brinis, N.; Saidane, L. Context aware wireless sensor network suitable for precision agriculture. Wirel. Sens. Netw. 2016, 8, 1–12. [Google Scholar] [CrossRef] [Green Version]
  66. Bhanu, K.N.; Reddy, T.B.; Hanumanthappa, M. Multi-agent based context aware information gathering for agriculture using Wireless Multimedia Sensor. Netw. Egypt. Inf. J. 2018, 20, 1–12. [Google Scholar] [CrossRef]
  67. Lee, J.; Park, G.L.; Kang, M.J.; Kwak, H.Y.; Lee, S.J.; Han, J. Middleware integration for ubiquitous sensor networks in agriculture. In Computational Science and Its Applications-ICCSA 2012, Proceedings of the ICCSA 2012 Lecture Notes in Computer Science, Salvador de Bahia, Brazil, 18–21 June 2012; Murgante, B., Gervasi, O., Misra, S., Nedjah, N., Rocha, A.M., Taniar, D., Apduhan, B.O., Eds.; Springer: Berlin/Heidelberg, Germany, 2012; Volume 7335, pp. 217–226. [Google Scholar] [CrossRef]
  68. Cope, M.; Mikhailova, E.; Post, C.; Schlautman, M.; McMillan, P. Developing an integrated cloud-based spatial-temporal system for monitoring phenology. Ecol. Inform. 2017, 39, 123–129. [Google Scholar] [CrossRef]
  69. Mohanraj, I.; Ashokumar, K.; Naren, J. Field monitoring and automation using IoT in agriculture domain. Procedia Comput. Sci. 2016, 93, 931–939. [Google Scholar] [CrossRef] [Green Version]
  70. Ahmed, K.; Gregory, M. Integrating Wireless Sensor Networks with Cloud Computing. In Proceedings of the 2011 Conference: Seventh International Conference on Mobile Ad-hoc and Sensor Networks, MSN 2011, Beijing, China, 16–18 December 2011. [Google Scholar] [CrossRef]
  71. Mahesh, D.S.; Savitha, S.; Dinesh, K.A. A cloud computing architecture with wireless sensor networks for agricultural applications. Int. J. Comput. Netw. Commun. Secur. 2014, 2, 34–38. [Google Scholar]
  72. Kassim, M.R.M.; Harun, A.N. Wireless sensor networks and cloud computing integrated architecture for agricultural environment applications. In Proceedings of the 2017 Eleventh International Conference on Sensing Technology (ICST), Sydney, NSW, Australia, 4–6 December 2017; pp. 1–5. [Google Scholar] [CrossRef]
  73. Khanna, A.; Kaur, S. Evolution of Internet of Things (IoT) and its significant impact in the field of Precision Agriculture. Comput. Electron. Agric. 2019, 157, 218–231. [Google Scholar] [CrossRef]
  74. Gómez-Chabla, R.; Real-Avilés, K.; Morán, C.; Grijalva, P.; Recalde, T. IoT applications in agriculture: A systematic literature review. In ICT for Agriculture and Environment, Proceedings of the CITAMA2019, Advances in Intelligent Systems and Computing, Guayaquil, Ecuador, 22–25 January 2019; Valencia-García, R., Alcaraz-Mármol, G., Cioppo-Morstadt, J., Vera-Lucio, N., Bucaram-Leverone, M., Eds.; Springer: Cham, Switzerland, 2019; Volume 901, pp. 68–76. [Google Scholar] [CrossRef]
  75. Dlodlo, N.; Kalezhi, J. The internet of things in agriculture for sustainable rural development. In Proceedings of the International Conference on Emerging Trends in Networks and Computer Communications (ETNCC), Windhoek, Namibia, 17–20 May 2015; pp. 13–18. [Google Scholar]
  76. The FIWARE Project. Available online: https://www.fiware.org/ (accessed on 12 December 2019).
  77. Salhofer, P. Evaluating the FIWARE platform. A case-study on implementing smart application with FIWARE. In Proceedings of the 51st Hawaii International Conference on System Sciences, Waikoloa Village, HI, USA, 2–6 January 2018; pp. 5797–5805. [Google Scholar]
  78. Zyrianoff, I.; Heideker, A.; Silva, D.; Kamienski, C. Scalability of an Internet of Things platform for smart water management for agriculture. In Proceedings of the 23rd Conference of Open Innovations Association (FRUCT), Bologna, Italy, 13–16 November 2018; pp. 432–439. [Google Scholar] [CrossRef]
  79. Cardoso, J.; Pereira, C.; Aguiar, A.; Morla, R. Benchmarking IoT middleware platforms. In Proceedings of the 2017 IEEE 18th International Symposium on A World of Wireless, Mobile and Multimedia Networks (WoWMoM), Macau, China, 12–15 June 2017; pp. 1–7. [Google Scholar] [CrossRef]
  80. Martínez, R.; Pastor, J.; Álvarez, B.; Iborra, A. A Testbed to Evaluate the FIWARE-Based IoT Platform in the Domain of Precision Agriculture. Sensors 2016, 16, 1979. [Google Scholar] [CrossRef] [Green Version]
  81. López-Riquelme, J.A.; Pavón-Pulido, N.; Navarro-Hellín, H.; Soto-Valles, F.; Torres-Sánchez, R. A software architecture based on FIWARE cloud for precision agriculture. Agri. Water Manag. 2017, 183, 123–135. [Google Scholar] [CrossRef]
  82. Corista, P.; Ferreira, D.; Giao, J.; Sarraipa, J.; Goncalves, R.J. An IoT agriculture system using FIWARE. In Proceedings of the 2018 IEEE International Conference on Engineering, Technology and Innovation (ICE/ITMC), Stuttgart, Germany, 17–20 June 2018; pp. 1–6. [Google Scholar] [CrossRef]
  83. oneM2M. Standards for M2M and the Internet of Things. Available online: http://www.onem2m.org (accessed on 12 December 2019).
  84. Developers Guide—TR-0037-Smart Farm Example Using MQTT Binding. Available online: https://www.ttc.or.jp/application/files/1615/5442/3751/TR-M2M-0037v2.0.0.pdf (accessed on 12 December 2019).
  85. ETSI TS 103 410-6 V1.1.1 (2019-05) Technical Specification, SmartM2M; Extension to SAREF; Part 6: Smart Agriculture and Food Chain Domain. Available online: https://www.etsi.org/deliver/etsi_ts/103400_103499/10341006/01.01.01_60/ts_10341006v010101p.pdf (accessed on 12 December 2019).
  86. IOF2020 Reference Architecture for Interoperability, Replicability and Reuse. Available online: https://www.iof2020.eu/open-call/d3.3-iof2020-reference-architecture.pdf (accessed on 12 December 2019).
  87. Abdullah, A.; Barnawi, A. Identification of the type of agriculture suited for application of wireless sensor networks. Russ. J. Agric. Socio-Econ. Sci. 2012, 12, 19–36. [Google Scholar] [CrossRef]
  88. Piromalis, D.; Arvanitis, K. Radio frequency identification and wireless sensor networks application domains integration using DASH7 Mode 2 standard in agriculture. Int. J. Sustain. Agric. Manag. Inform. 2015, 1, 178–189. [Google Scholar] [CrossRef]
  89. Jawad, H.M.; Nordin, R.; Gharghan, S.K.; Jawad, A.M.; Ismail, M. Energy-efficient wireless sensor networks for precision agriculture: A review. Sensors 2017, 17, 1781. [Google Scholar] [CrossRef] [Green Version]
  90. Ayoub, W.; Samhat, A.E.; Nouvel, F.; Mroue, M.; Prevotet, J. Internet of mobile things: Overview of LoRaWAN, DASH7, and NB-IoT in LPWANs standards and supported mobility. IEEE Commun. Surv. Tutor. 2018, 21, 1561–1581. [Google Scholar] [CrossRef] [Green Version]
  91. Arvanitis, K.; Loukatos, D.; Manolopoulos, I.; Arvaniti, E.S.; Sigrimis, N. Experimental Testbed for Monitoring the Energy Requirements of LPWAN Equipped Sensor Nodes. In Proceedings of the 6th IFAC Conference on Bio-Robotics (Biorobotics 2018), Beijing, China, 13–15 July 2018; pp. 309–313. [Google Scholar]
  92. Castanedo, F. A review of data fusion techniques. Sci. World J. 2013, 2013, 704504. [Google Scholar] [CrossRef] [PubMed]
  93. Ramesh, D.; Vishnu Vardhan, B. Data mining techniques and applications to agricultural yield data. Int. J. Adv. Res. Comput. Comm. Eng. 2013, 2, 3477–3480. [Google Scholar]
  94. Bettini, C.; Brdiczka, O.; Henricksen, K.; Indulska, J.; Nicklas, D.; Ranganathan, A.; Riboni, D. A survey of context modelling and reasoning techniques. Perv. Mob. Comput. 2010, 6, 161–180. [Google Scholar] [CrossRef]
  95. Lee, K.C.; Kim, J.H.; Lee, J.H.; Lee, K.M. Implementation of ontology based context-awareness framework for ubiquitous environment. In Proceedings of the International Conference on Multimedia and Ubiquitous Engineering, (MUE ’07), Seoul, Korea, 26–28 April 2007; pp. 278–282. [Google Scholar]
  96. Henricksen, K.; Indulska, J.; Rakotonirainy, A. Modeling context information in pervasive computing systems. In Proceedings of the First International Conference on Pervasive Computing, Zürich, Switzerland, 26–28 August 2002; Springer: Berlin/Heidelberg, Germany, 2002; pp. 167–180. [Google Scholar]
  97. Devaraju, A.; Hoh, S. Ontology-based context modeling for user-centered context-aware services platform. In Proceedings of the International Symposium on Information Technology ITSim 2008, Kuala Lumpur, Malaysia, 26–29 August 2008; IEEE: Piscataway, NJ, USA, 2008; Volume 217. [Google Scholar]
  98. William, A.W.; Hari, B.; Lilley, J. The design and implementation of an intentional naming system. In Proceedings of the 17th ACM Symposium on Operating Systems Principles, Charleston, SC, USA, 12–15 December 1999. [Google Scholar]
  99. Jie, W.; Dong, J. A simple service discovery and configuration protocol for embedded devices. In Proceedings of the 2006 International Conference on Communication Technology, ICCT ’06, Guilin, China, 27–30 November 2006. [Google Scholar]
  100. LePendu, P.; Dou, D.; Frishkoff, G.A.; Rong, J. Ontology Database: A New Method for Semantic Modeling and an Application to Brainwave Data. In Scientific and Statistical Database Management, Proceedings of the SSDBM 2008, Lecture Notes in Computer Science, Hong Kong, China, 9–11 July 2008; Ludäscher, B., Mamoulis, N., Eds.; Springer: Berlin/Heidelberg, Germany, 2008; Volume 5069. [Google Scholar]
  101. Lounis, A.; Hadjidj, A.; Bouabdallah, A.; Challal, Y. Secure and scalable cloud-based architecture for e-health wireless sensor networks. In Proceedings of the 21st International Conference on Computer Communications and Networks ICCCN, Munich, Germany, 30 July–2 August 2012; IEEE: Piscataway, NJ, USA; pp. 1–7. [Google Scholar]
  102. Preuveneers, D.; Berbers, Y. Adaptive context management using a component-based approach. In Proceedings of the 5th IFIP International Conference on Distributed Applications and Interoperable Systems, Athens, Greece, 15–17 June 2005; Springer: Berlin/Heidelberg, Germany Volume 3543 of LNCS. ; pp. 14–26. [Google Scholar]
  103. Verginadis, Y.; Mentzas, G.; Veloudis, S.; Paraskakis, I. A survey on context security policies in the cloud. In Proceedings of the 2015 IEEE/ACM 8th International Conference on Utility and Cloud Computing (UCC), Limassol, Cyprus, 7–10 December 2015; pp. 589–594. [Google Scholar] [CrossRef]
  104. Aloraini, A.; Hammoudeh, M. A Survey on Data Confidentiality and Privacy in Cloud Computing. In Proceedings of the ICFNDS ’17 International Conference on Future Networks and Distributed Systems, Cambridge, UK, 19–20 July 2017; p. 10. [Google Scholar] [CrossRef] [Green Version]
  105. Veloudis, S.; Paraskakis, I.; Petsos, C.; Verginadis, Y.; Patiniotakis, I.; Gouvas, P.; Mentzas, G. Achieving security-by-design through ontology-driven attribute-based access control in cloud environments. Future Gener. Comput. Syst. 2018, 93, 373–391. [Google Scholar] [CrossRef]
  106. Huang, X.; He, Y.; Hou, Y.; Li, L.; Sun, L.; Zhang, S.; Jiang, Y.; Zhang, T. Privacy of value-added context-aware service cloud. In Cloud Computing; Martin, G.J., Gansen, Z., Chunming, R., Eds.; Springer: Berlin/Heidelberg, Germany, 2009; pp. 547–552. [Google Scholar]
  107. Kim, H.C.; Lee, H.W.; Lee, K.S.; Jun, M.S. A design of one-time password mechanism using public key infrastructure. In Proceedings of the Fourth International Conference on Networked Computing and Advanced Information Management, Gyeongju, Korea, 2–4 September 2008; pp. 18–24. [Google Scholar]
  108. Florêncio, D.; Herley, C. One-time password access to any server without changing the server. In Information Security, Proceedings of the ISC 2008, Lecture Notes in Computer Science, Taipei, Taiwan, 15–18 September 2008; Wu, T.C., Lei, C.L., Rijmen, V., Lee, D.T., Eds.; Springer: Berlin/Heidelberg, Germany, 2008; pp. 401–420. [Google Scholar] [CrossRef]
  109. Jeong, J.; Chung, M.Y.; Choo, H. Integrated OTP-based user authentication scheme using smart cards in home networks. In Proceedings of the 41st Hawaii International Conference on System Sciences, Waikoloa, HI, USA, 7–10 January 2008; pp. 1–7. [Google Scholar]
  110. Aslam, M.; Rea, S.; Pesch, D. Service provisioning for the WSN cloud. In Proceedings of the 2012 IEEE 5th International Conference on Cloud Computing, Honolulu, HI, USA, 24–29 June 2012; IEEE: Piscataway, NJ, USA, 2012; pp. 962–969. [Google Scholar]
  111. Wolfert, S.; Ge, L.; Verdouw, C.; Bogaardt, M.J. Big Data in smart farming—A review. Agric. Syst. 2017, 153, 69–80. [Google Scholar] [CrossRef]
  112. Python. Available online: https://www.python.org (accessed on 12 December 2019).
  113. Microsoft Azure. Available online: https://azure.microsoft.com/en-us/ (accessed on 12 December 2019).
  114. International Organization for Standardization (ISO). ISO/IEC 30141: 2018 Internet of Things (IoT)—Reference Architecture. Available online: https://www.iso.org/obp/ui/#iso:std:iso-iec:30141:ed-1:v1:en (accessed on 15 January 2020).
  115. Open Geospatial Consortium (OGC). Available online: https://www.opengeospatial.org (accessed on 15 January 2020).
Figure 1. Generalized concept of whole-farm management for Agriculture 4.0.
Figure 1. Generalized concept of whole-farm management for Agriculture 4.0.
Applsci 10 00813 g001
Figure 2. Generic architecture and data workflow overview for a context-aware IoT agricultural system framework consisting of three major mobile cloud-based components.
Figure 2. Generic architecture and data workflow overview for a context-aware IoT agricultural system framework consisting of three major mobile cloud-based components.
Applsci 10 00813 g002
Figure 3. Layered architecture diagram for a context-aware IoT agricultural system framework.
Figure 3. Layered architecture diagram for a context-aware IoT agricultural system framework.
Applsci 10 00813 g003
Figure 4. Schematic diagram of an agriculture wireless sensor deployed in the field.
Figure 4. Schematic diagram of an agriculture wireless sensor deployed in the field.
Applsci 10 00813 g004
Figure 5. Indicative hierarchy of agriculture sensors classification based on properties. Sensors are classified by broadly dividing them into three classes based on their properties: (i) Physical (ii) Mechanical and (iii) Chemical. Further breakdown is given according to the type of measurement.
Figure 5. Indicative hierarchy of agriculture sensors classification based on properties. Sensors are classified by broadly dividing them into three classes based on their properties: (i) Physical (ii) Mechanical and (iii) Chemical. Further breakdown is given according to the type of measurement.
Applsci 10 00813 g005
Figure 6. Generic overview of the flows performed by a classifier of a context provider.
Figure 6. Generic overview of the flows performed by a classifier of a context provider.
Applsci 10 00813 g006
Figure 7. Indicative OWL diagram for agriculture context-aware service modeling structure ontology.
Figure 7. Indicative OWL diagram for agriculture context-aware service modeling structure ontology.
Applsci 10 00813 g007
Figure 8. Screenshot of XML code listing concerning the generated context-aware modeling structure.
Figure 8. Screenshot of XML code listing concerning the generated context-aware modeling structure.
Applsci 10 00813 g008
Figure 9. Distributed Context Management Module.
Figure 9. Distributed Context Management Module.
Applsci 10 00813 g009
Figure 10. Mapping example in terms of the proposed system’s entities.
Figure 10. Mapping example in terms of the proposed system’s entities.
Applsci 10 00813 g010
Figure 11. Indicative entity database.
Figure 11. Indicative entity database.
Applsci 10 00813 g011
Figure 12. Indicative entity (a) properties, (b) table and (c) workflow.
Figure 12. Indicative entity (a) properties, (b) table and (c) workflow.
Applsci 10 00813 g012
Figure 13. Mechanisms of self-adaptation module.
Figure 13. Mechanisms of self-adaptation module.
Applsci 10 00813 g013
Figure 14. Environmental and soil wireless sensor deployed in the “Kopaida” farm maize parcel.
Figure 14. Environmental and soil wireless sensor deployed in the “Kopaida” farm maize parcel.
Applsci 10 00813 g014
Figure 15. Wireless sensor hardware using the “SensoTube” open architecture: (a) Shields for (i) LoRa wireless connectivity, (ii) data acquisition and control and (iii) energy management; (b) The three shields in a complete wireless node.
Figure 15. Wireless sensor hardware using the “SensoTube” open architecture: (a) Shields for (i) LoRa wireless connectivity, (ii) data acquisition and control and (iii) energy management; (b) The three shields in a complete wireless node.
Applsci 10 00813 g015
Figure 16. Indicative Python source code for classification to high-level contextual data.
Figure 16. Indicative Python source code for classification to high-level contextual data.
Applsci 10 00813 g016
Figure 17. Indicative Service Rule in XML format.
Figure 17. Indicative Service Rule in XML format.
Applsci 10 00813 g017
Figure 18. Sequence Diagram for Automated Context-aware Service.
Figure 18. Sequence Diagram for Automated Context-aware Service.
Applsci 10 00813 g018
Figure 19. Sequence Diagram for Real-time Information Search Context-Aware Service.
Figure 19. Sequence Diagram for Real-time Information Search Context-Aware Service.
Applsci 10 00813 g019
Figure 20. Screenshot of nodes as presented in the Microsoft Azure Platform virtual machine frontend.
Figure 20. Screenshot of nodes as presented in the Microsoft Azure Platform virtual machine frontend.
Applsci 10 00813 g020
Figure 21. Screenshot of the system’s performance overview as in the Microsoft Azure Platform backend.
Figure 21. Screenshot of the system’s performance overview as in the Microsoft Azure Platform backend.
Applsci 10 00813 g021
Figure 22. Server screenshot of the system’s performance overview as in the Microsoft Azure Platform backend.
Figure 22. Server screenshot of the system’s performance overview as in the Microsoft Azure Platform backend.
Applsci 10 00813 g022
Figure 23. Average response time in relation to mapping rules.
Figure 23. Average response time in relation to mapping rules.
Applsci 10 00813 g023
Figure 24. Visualization of clustered data for two irrigation scenarios.
Figure 24. Visualization of clustered data for two irrigation scenarios.
Applsci 10 00813 g024
Figure 25. Elbow evaluation method for K-means clustering.
Figure 25. Elbow evaluation method for K-means clustering.
Applsci 10 00813 g025
Table 1. Key Technologies for Agriculture 4.0.
Table 1. Key Technologies for Agriculture 4.0.
TechnologyCapabilityEffect
Artificial Intelligence and Machine Learning
[16,17,18] 1
Provide intelligent software applications and systems that can perform knowledge work operations involving subtle judgments and unstructured commands
-
Reduce prediction costs on decision making
-
Enable efficient risk management
-
Improve agricultural accuracy and increase productivity
Big Data and Analytics
[19,20,21] 1
Enable the acquisition and comprehensive evaluation of large amounts of heterogeneous data from numerous sources
-
Promote real-time decision support
-
Enhance efficient resources administration
-
Optimize production quality
Cloud Computing
[22,23,24] 1
Provides hardware, software, and storage computing resources delivered as a service over a network or the Internet
-
Negates the need for costly computing resources
-
Facilitates information management and dissemination
-
Supports decision making
Cyber-Physical Systems
(CPS)
[25,26,27] 1
Enable the connection of the physical world agricultural operations with computing and Information Communication Technologies (ICT) infrastructures by integrating innovative applications via networking
-
Modify workforce performance
-
Promote safety, flexibility and reliability of field activities
-
Produce higher quality yield at a lower cost
Internet of Things
(IoT)
[28,29,30] 1
Benefits field devices with sensory and computational support for communicating and interacting with each other via a highly distributed public network based on standard protocols
-
Decentralizes analytics enabling decision support for real-time responses
-
Optimizes assets management
-
Enhances production process performance
Autonomous Machinery
[31,32,33] 1
Perform various field tasks such as sowing, pruning, phenotyping, targeted fertilization, harvesting, and sorting in automated or near-automated mode
-
Ease the workload on farmers
-
Increase production rates
-
Optimize the management of resources
-
Advance soil health and yield quality
1 The indicative literature sources finally selected reflect the results of a thorough review, performed according to the methodology as in [34,35].
Table 2. Comparison of Wireless Protocols for the IoT.
Table 2. Comparison of Wireless Protocols for the IoT.
Wireless TechnologyWireless StandardOperating FrequenciesMax. Coverage RangeMax. Data RateSecurity
WiFiIEEE 802.11
a/b/g/n/ac/ad
2.4/5/60 GHz100 m2 Mbps–6.93 GbpsWEP/WPA/WPA2
BluetoothIEEE 802.15.12400/2483.5 MHz100 m1–3 Mbps56/128 bit
BLEIEEE 802.15.12400/2483.5 MHz100 m1Mbps128-bit AES
6LowPANIEEE 802.15.4908.42/2483.5 MHz100m250 Kbps128 bit
ZigbeeIEEE 802.15.42400/2483.5 MHz10 m250 Kbps128 bit
GPRS3GPPGSM 850/1900 MHz10 km171 KbpsGEA2/GEA3/GEA4
LTE3GPP700/2600 MHz28 km1 GbpsSNOW 3G
SigFoxSigFox908.42 MHz30–50 km10–1000 bpsN/A
LoRaWANLoRa Alliance868/915 MHz15 km50–100 Kbps128 bit
DASH7ISO/IEC 18000-7433.92/868/915 MHz10 km28–200 kbps128-bit AES
Table 3. Example of service type rules and corresponding actions.
Table 3. Example of service type rules and corresponding actions.
Service TypesRulesActions
Automated(?air temperature: high) ∧ (?irrigation valve: off)Activate irrigation valve→
Report via pop-up mobile app
Symptom Detection(?humidity: high) ∧ (leaf physiology: abnormal)Imminent Disease detected→
Alert Farmer
Emergency(?smoke detector: on) ∧ (?smoke level: irregular)Possible Fire detected→
Emergency Alert
Consultancy(?smart phone: on) ∧ (?messenger chatbot: installed) Real-time agronomist support
Software(?local time: 17.00) ∧ (?report time: true)Cultivation status report
via pop-up mobile app
Table 4. Software features for simulating the system’s modules.
Table 4. Software features for simulating the system’s modules.
SystemSimulated ModelDevelopment PlatformOutput
SensorsPython servletPython script in SQL serverData files
Context ProvidersPython script running in AzureAPI using AzureHigh-level context
Context AggregatorPython script running in AzureAPI using AzureContext model in XML
Context ModelingOWLAzure data sourceContext model
Service MappingPython script running in AzureAPI using AzureList of actions in XML
Context RepositoryStatic DatabaseAzure Data SourceDatabase records
Service ProvidersStatic XML in various web serversAzure web serverService rules with actions
Table 5. Random sample sets of agricultural raw data acquired in a maize field.
Table 5. Random sample sets of agricultural raw data acquired in a maize field.
NoDateTimeAir Temperature (°C)Air Humidity (%)Soil Moisture (%)Soil pH
12019-06-2008:38:07 + 02:0027.65362.46.4
22019-06-2009:53:45 + 02:0030.25165.86.8
32019-06-2011:45:23 + 02:0031.65160.76.1
42019-06-2013:02:04 + 02:0032.44860.26.1
52019-06-2014:34:36 + 02:0033.84258.36.0
62019-06-2016:10:11 + 02:0034.24257.45.9
72019-06-2017:26:18 + 02:0033.24361.16.5
82019-06-2018:46:13 + 02:0031.54663.57.1
Table 6. Random sample sets of high-level contextual data.
Table 6. Random sample sets of high-level contextual data.
NoTimeAir TemperatureAir HumiditySoil MoistureSoil pH Range
108:38:07 + 02:00NormalNormalHighNormal
209:53:45 + 02:00NormalNormalHighNormal
311:45:23 + 02:00NormalNormalNormalNormal
413:02:04 + 02:00NormalNormalNormalNormal
514:34:36 + 02:00HighLowNormalNormal
616:10:11 + 02:00HighLowNormalLow
717:26:18 + 02:00HighLowNormalNormal
818:46:13 + 02:00HighNormalHighHigh

Share and Cite

MDPI and ACS Style

Symeonaki, E.; Arvanitis, K.; Piromalis, D. A Context-Aware Middleware Cloud Approach for Integrating Precision Farming Facilities into the IoT toward Agriculture 4.0. Appl. Sci. 2020, 10, 813. https://0-doi-org.brum.beds.ac.uk/10.3390/app10030813

AMA Style

Symeonaki E, Arvanitis K, Piromalis D. A Context-Aware Middleware Cloud Approach for Integrating Precision Farming Facilities into the IoT toward Agriculture 4.0. Applied Sciences. 2020; 10(3):813. https://0-doi-org.brum.beds.ac.uk/10.3390/app10030813

Chicago/Turabian Style

Symeonaki, Eleni, Konstantinos Arvanitis, and Dimitrios Piromalis. 2020. "A Context-Aware Middleware Cloud Approach for Integrating Precision Farming Facilities into the IoT toward Agriculture 4.0" Applied Sciences 10, no. 3: 813. https://0-doi-org.brum.beds.ac.uk/10.3390/app10030813

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