1. Introduction
Ontology engineering in computer sciences and information systems refers to modeling domain knowledge for applications development. The ontologies are widely adopted in all major disciplines, including the agriculture domain. An example is the application of ontology for precision farming. An agriculture ontology helps professionals, including farmers, to understand the various concepts in the domain and how to use them in a better way. The ontology application in the form of a decision support system ensures crop management through the implementation of precision farming practices.
The applications of agriculture ontologies use technology components in the form of sensors and actuators. These devices are used to acquire the data and implement desired operations. Agriculture 4.0 adds internet connectivity to transform these into IoT devices. Furthermore, more sensors of technical relevance are introduced for a wider scope. Agriculture 4.0 provides automation, digitalization with big data, and artificial intelligence, which plays a vital role in business efficiency, production of crops, pest control, and livestock management. These advancements require the ontologies to be scalable and have important characteristics of serviceability and context-awareness.
Context-awareness states that devices can both react and sense based on the environment. The devices have information about the environment. Based on environmental information, it takes decisions and acts accordingly. Context-aware systems are mainly implemented using three steps: (1) the system acquires context for processing and observes the situation from different sources such as sensors; (2) afterward, it understands and represents the context that will be matched with the context perceived in the first step; and (3) finally, it recognizes the context by eliciting actions according to the context. For example, the backlight of a phone when entering any dark place, temperature and humidity sensors, etc. are examples of context-awareness. All these sensors act accordingly to take environmental information from heterogeneous sources.
A review of existing agriculture ontologies reveals that there is a need to introduce new ontologies with the characteristics of scalability, context-awareness, and serviceability. This may be accomplished by extending an already available ontology. This work extends ONTAgri [
1] to incorporate these features. As the decision support system is the desired application, the work incorporates the reasoning processes at both local and global levels [
2].
This work proposes the ONTAgriX ontology by extending an earlier work ONTAgri ontology [
1]. ONTAgri is a scalable and service-oriented ontology. The proposed ontology combines system and domain ontologies. The domain ontology has core and services. The system ontology is described as a combination of hardware and software. It includes sensors, timers, counters, interfaces, packets, actuators, and others. This ontology lacks context-awareness and described the precision farming application only.
The ONTAgriX ontology extends ONTAgri ontology through the inclusion of the IoT subdomain and the reasoning process. The IoT subdomain includes internet-enabled devices, for example, sensors and actuators. IoT plays a major role in changing human life from traditional life to digital life. Smart mirror, smart city, smart vehicles, smart home, smart industries, autonomous transportation systems, smart curtain systems, smart drones, robots in restaurants, smart agriculture, and smart pest control management systems are a few examples of IoT transformations. Nowadays, IoT becomes an important part of our life in every domain. The reasoning process includes both local and global decision-making to compute the need of operations required to ensure crop management best practices for the precision farming application. A comparison with recent agriculture ontologies shows the significance of the proposed ontology in this research work.
The research accomplished in this work proposes extended ONTAgri (ONTAgriX) and implements it in Protégé [
3], a well-known open-source platform. This platform provides an ontology editor and framework to build intelligent applications. Protégé is used to create the ontology model. This model is imported into the Apache Jena [
4] Ontology application programming interface. Jena is an open-source framework for building semantic web and data link applications. The results are generated through the SPARQL query language.
The paper layout is as follows. The section Related Work presents an overview of the literature, its limitations, and identified research gaps. The proposed ontology is developed and simulated in
Section 3 and
Section 4, respectively. Results are discussed with comparison in
Section 5. Finally, the paper concludes in
Section 6 with future work directions.
2. Related Work
An ontology refers to “an explicit specification of a conceptualization” [
5]. The term ontology is borrowed from philosophy. It defines a set of primitives to model domain knowledge [
6]. These primitives include classes, attributes, and relationships. Ontologies are widely adopted by various disciplines, ranging from biomedicine to finance, engineering, law, and cultural heritage [
7]. Soon after the introduction of the term ontology in the 1980s, the work on agriculture ontologies also started.
Recent ontologies proposed in the research literature are [
1,
2,
8,
9,
10]. A short description of these contributions is as follows. In [
1], the author describes an architecture that is ontology-driven and may be used for precision farming applications; there are different entities working together—these entities often have their sensors and actuators and can function according to their role in the domain. The immediate decision process for these entities is through local decision making, and the final decision at a wider scale is through global decision making. In [
2], the authors discussed a scalable service-oriented architecture (ONTAgri) based on several groups of concepts. Two major groups are domain ontology and system ontology. The domain is further divided into services and core parts of agriculture, e.g., irrigation, fertilization, etc.
Internet of Things (IoT) plays a major role in agriculture systems. These devices used in agriculture enhance the growth of crops. The major problem is simultaneously managing semantic data of all the phases of the agriculture system since they are not consistent all the time. In [
8], the authors proposed the framework AgriOnt that may be used for smart agriculture. It has four areas: geographical ontology, business sub-domain, IoT-based sub-domain, and agriculture-based sub-domain. In [
9], authors proposed a framework that matches evaluation approaches that are gold-standard, application-based, criteria-based, and data-driven to different ontology purposes that share vocabularies and integrate data, system interoperability, knowledge search and exploration, and decision support. In [
10], the authors developed SAAONT, which is specifically focused on the farmers of the Saudi Arabia region. Previous ontologies did not support the required level of knowledge to farmers. During the development of ontology, different phases are used for the structure implementation of SAAONT, which includes a selection of ontology, re-utilization of ontology, modeling, and architecture design. The system architecture of SAAONT ontology is based on knowledge base architecture which consists of four components, views, application and APIs, Ontology and Artificial intelligence, storage, and physical hardware. Views are used between the end-user and application for the representation of the knowledge base of SAAONT. Application and APIs’ responsibility is to run queries and code. Ontology and Artificial intelligence use Protégé and ontology reasoner HermiT for knowledge base in the domain. Storage and physical hardware are used to save information from all components.
Despite a significant amount of works accomplished in the above-mentioned ontologies, there is still a need to solve the problem of scalability, context-awareness, and being service-oriented. It is possible to include the desired characteristics by extending a selected work and incorporating selected features from others. In [
1], authors described architecture that only works on plants’ ontology, specifically, plants’ core ontology and plants’ higher ontology. In [
2], context-awareness in ONTAgri is the main limitation that is missing, and it can be implemented with features of being service-oriented and scalable. In [
8], the author proposed a framework, but that framework has the limitation of context-awareness, scalability, and service-oriented architecture. In [
9], the authors only work on pest-ontology and apply evaluation methods discussed above. In future research, it can be implemented on other agriculture ontologies. In [
10], authors only targeted Saudi Arabia and created ontology for the Arabic region; there are several ontologies in different languages, but recognition of the Arabic language is not common among farmers around the world, so this ontology is limited to the Arabic region only.
Existing approaches have minimum capability to overcome the constraints that are discussed above and do not have all features, e.g., scalability, service-oriented, and context-awareness. A few researchers implemented one or two approaches but not all approaches are used in any research. Some research works, related to precession farming, IoT, service-oriented, core agriculture, and ontology, are discussed below.
In [
11], the authors proposed an architecture named Rule Engine and Complex Event Processor. This architecture allows the dynamic processing of events in terms of precision farming and IoT. The Rule Engine and Event Processor are used to developing this architecture. Finally, the gathering data flow component is used; it obtains data from different platforms and communicates with sensors and actuators or other databases to obtain information and expected production of crops. In [
12], information is collected related to the agriculture environment and soil from the rural area within a diameter of 17 kilometers. By using a control unit developed from sensors and actuators, investigation of communication performance is completed by obtaining information from soil surface temperature and soil moisture.
In [
13], the authors introduced a cloud-based framework for adaptive, responsive, and service-oriented Internet of Things integrated models. The introduced framework produces context-aware middleware solutions. The proposed framework contains the functionality of precision farming with three cloud-based components, namely, social network, service, and context-aware middleware. In [
14], authors used deep learning predictors for prediction and better performance of weather data using IoT in precision farming. A sequential two-level decomposition structure is used to decompose weather data into four components, each component trained via a gated recurrent unit as a sub-predictor. The results of all components are combined to obtain prediction results. Decomposition, prediction, and combination are three steps of the model.
In [
15], the authors proposed an approach for sensor measurement values by linking site-specific parameters to crop-specific trait ontologies. The main feature of the proposed approach is data integration for syntactic and semantic interoperability. Utilization of APIs and web services in syntactic interoperability of gadgets information in the agriculture domain is a key part of the research. An open data platform is developed to evaluate the proposed approach. Four layers are presented in the proposed approach, namely, processing, web services, semantic interoperability, and exportation. In [
16], the author tries to find the best WSN technologies for precision farming by investigating different agriculture scenarios. Three wireless networks are used in this work for precision framing, namely, NB-IoT, LoRa, and ZigBee. Communication time and power consumption are compared by the corresponding test of these WSNs. A wireless sensor network is an environment with ‘n’ number of nodes. Every node has a battery, sensor, transceiver, and microcontroller with a circuit. Every node in the network is connected to each other and used for data collection.
In [
17], the authors discussed the communication mechanism for IOUT after reviewing communication architecture. Different communication mechanisms are discussed in this article. The most important part of the communication mechanism is sensing that improves the production of crops and efficiency in agricultural processes. However, wireless connectivity is also presented in terms of in-field communications where different sensors are used with respect to their power consumption, time efficiency, etc., and implementation of cloud and big data in precision farming as well. IOUT are autonomous devices placed underground partly or completely; they collect information of soil, plants, etc., and send it to farmers for decision-making by real-time sensing and monitoring. IOUT facilitates integration of machineries, underground sensors, and agriculture irrigation systems. In [
18], the author constructs the ontology OntoAgroHidro, which represents knowledge on agriculture activities and climatic changes on water resources. Interoperability issues are also part of the research work. Different steps are highlighted to resolve the issues.
Recommendation, decision, and semantic search systems are also developed to overcome the issue of ontology. In [
19], the authors proposed the recommendation system based on an ontology model to describe the outbreaks that pests produce to crops and the approved ways to treat and facilitate them. Pests, crops, and their treatment ontologies (PCT-O) are also discussed in this research work, which is an extension of the disease triangle.
In [
20], the authors represent a method that is based on crop cultivation standard (CCS) combined with task ontology and domain ontology. The information comprises static information that is directed towards domain ontology, e.g., seeds, soils, and machines used in agricultural processes. Task ontology contains information on plant processes, e.g., soil and seed selection, irrigation, and fertilization. In [
21], authors developed an ontology and apply a semantic search method on it, such as the ontology of knowledge regarding the cropping and production of longan fruit for the purpose of enhancing fruit quality and growing quality longan fruit suitable for the international market.
Some novel approaches and solutions for wireless sensor networks are also discussed in [
22], which are based on service-oriented middleware and service-oriented architecture. The goals and challenges of the middleware architecture of WSNs, namely, scalability, heterogeneity, data aggregation, QoS, managing battery power, security, and fault tolerance, are also discussed in detail. According to [
23], the study of precision farming states that it is useful for the economic support for small to medium farms. It is going to be the next big thing in the agriculture industry because it works on precision, it can maximize the growth of the crops, and people who are using this technology obtain the best outcome. This does not only enhance the business and productivity of farmers but also avoids crop wastage due to imperfections from the manual process.
In [
24], the authors present how precision farming is solving problems by increasing crop growth and saving time as well as cost-efficiency. Decision support systems (DSS) are defined as core concepts to optimize an agricultural model related to crop growth. It can use many smart devices such as the Internet of Things (IoT) to obtain the raw data from the plant’s behavior. For example, a farmer obtaining bad behavior through sensor technology using a smartphone, and alarms, e.g., if the weather is bad, then the farmer will be notified by the behavior of plants; the issue can be managed accordingly to prevent any damage or loss.
In the above-mentioned related work, a few researchers developed ontologies, and some of them developed recommendation systems, presented case studies, and designed models and frameworks. Service-oriented, scalable, and context-aware are the main concerns of this research which are not presented by any researcher. ONTAgri is service-oriented and scalable, but context-awareness is a limitation of the research. To overcome this limitation, a new model is proposed in the next section; the new model has the capability to take environmental information of agriculture-related issues, e.g., pesticides, soil, fertilization, and irrigation, etc. The new model utilizes heterogeneous information about agriculture issues in the region. It presents this information along with the available actions based on local and global decision making processes. This is accomplished through a query configured to trigger automatically or interactively. The end user selects one or more actions. The model implements end user selected actions through actuators.
Table 1 is also presented a literature matrix having the implementation type, name, limitation, and purpose of the research.
3. Proposed ONTAgri Extension
A new ontology, ONTAgriX, is proposed in this work by extending the ONTAgri [
1] architecture. The ONTAgri is detailed in the Related Work section.
Figure 1 and
Figure 2 are the model and ontology of ONTAgri, respectively. The foundational ONTAgri divided the ontology into system and domain sub-ontologies. Before the implementation of the proposed ontology, ONTAgri was implemented to understand the insight of the ontology.
Table 2 is defining the structure of the proposed model. The proposed ontology consists of numerous eGadgets and eEntities. Examples are farms, plants, irrigation, fertilization, sensors, actuators, and more.
Table 2.
Defining structures of the proposed model.
Table 2.
Defining structures of the proposed model.
In the ONTAgriX, many features are introduced in the system ontology. For example, a lamp as an eGadget is placed at an appropriate distance to the plants. Now, when the local decision-making analyzed the data acquired from the sensors that the plants are in a state of receiving an excessive amount of energy from the sunlight and lamp, then it sends the turn-off signal to the actuator for the lamp. The lamp is turned off to remove its contribution to the sunlight and to achieve the desired optimal state for the plants. A similar mechanism may adjust the lamp luminosity to exact control in a more precise manner. In this way, if the local decision-making responds positively to global decision making, it indicates to the farmer that the plants have exceeded the energy consumption threshold and the light in the form of a lamp for the plant should be turned off.
The main data required from the plants include temperature, light, and weather conditions. The core ontology is extended by a reasoning process and IoT subdomain with reasoning decision, which shows the output to the end-user, as shown in
Figure 8. The services part of ONTAgriX ontology has eIrrigation and eFertilizer, followed by the sensors and the actuators. The impacts of these eEntities are combined with respective eGadgets through global decision making.
The eFertilizer and eIrrgition are controlled through both global decision making and local decision making. Initially, the model responds to the local decision making; then, it responds to the global decision making to complete the operations selected by the farmer.
Local decision making is used on a small number of nodes. Global decision making is used in a wider context, for example, a large number of distributed nodes to communicate and exchange data. The desired system state is maintained through the combined and synchronized local and global decision-making processes [
2].
The ONTAgriX is applied to precision farming by introducing new gadgets that are appropriate to match the management practices in the discipline. The purpose of these gadgets is to notify the farmers through various forms of analytics, for example, labeled videos, predication graphs, and alike. The drone technology may be present in the form of an eGadget to monitor the farm and send real-time notifications to the ground base for processing to generate desired analytics information. The alarm, as another eGadget, plays an important part in the farm to indicate the need for an action based on monitoring: for example, watering the plants, and taking care of the plants being attacked by animals and insects. The use of IoT devices can assist the farmers in locating and identifying the plants and related actions to improve productivity and ensure precision farming practices.
Figure 3,
Figure 4 and
Figure 5 are the model, ontology of AgriOnt, and context management process diagrams, respectively. We have adopted the IoT subdomain, as shown in
Figure 3, and the reasoning process, as shown in
Figure 5. Both are included in ONTAgriX ontology.
Figure 6 is the extended version of ONTAgriX with both the IoT subdomain and reasoning.
Figure 7 shows the implementation of the new model in Protégé.
Figure 8 shows the architecture diagram of the proposed model.
5. Results and Discussion
The proposed new ONTAgriX ontology in this work extends ONTAgri [
1] and incorporates context-awareness, scalability, and service-oriented aspects. These features were not available in the earlier proposed works on agriculture ontologies, ONTAgri [
1] and AgriOnt [
8]. There was no implementation described by the authors in their proposed ONTAgri [
1] ontology. This work accomplished the implementation of ONTAgri to obtain a better understanding. In addition to extending the ONTAgri, this work shows the application of ONTAgriX ontology in precision farming. ONTAgriX can be implemented in any region of the land where the agriculture process exists. Since ONTAgriX is a scalable, service-oriented, and context-aware architecture, it works as a middleware between farmers and agriculture issues raised in the field, which fulfills the requirements of context-awareness [
25]. It can accommodate and involve different types of input from farmers according to the region. The basic infrastructure of ONTAgriX is based on ONTAgri [
1] infrastructure.
The ONTAgriX has system ontology, domain ontology, IoT subdomain, and reasoning process. In the implementation, the system ontology has light sources, sensors, plants, and actuators. The domain ontology has different group’s irrigation, fertilization, etc. The IoT subdomain has numerous sensors. The reasoning process spans both local decision making and global decision making. The precision farming applications use smartphones, alarms, and drones for better results and notify the farmers. Farmers use smartphones to receive notifications and decision-support information. In case of immediate attention, alarms are used. Drones are used for real-time monitoring.
The application of ONTAgriX is designed to adjust the light intensity of the lamp. The desired optimal state of energy at the plants is ensured. The decision making process receives sensor data, performs analytics task, and suggests actions to the farmer. Based on the selected action, the actuators implement the desired action to achieve the optimal state of energy at the plants. The real-time monitoring and notifications indicate the scalability and service-oriented components of the proposed ontology. The use of precision farming applications ensures the best practices to manage the farm.
In AgriOnt ontology, the applications are built using a semantic framework. Crops, farmers, farms, diseases, affected aspects, etc., are used to relate the products with linked data; however, the important features of context awareness, scalability, and service-oriented are lacking. In [
20], the authors demonstrated an application called pest control ontology. Their developed ontology is used in this application that supports decision control systems; however, their proposed ontology lacks service-oriented, context-awareness, and scalability features.