Skip to Content
SustainabilitySustainability
  • Article
  • Open Access

31 August 2021

Extending ONTAgri with Service-Oriented Architecture towards Precision Farming Application

,
,
,
and
1
Faculty of Engineering Sciences & Technology, Hamdard University, Karachi 74600, Pakistan
2
College of Computing and Information Science, Pakistan Air Force, Karachi Institute of Economics and Technology, Karachi 75190, Pakistan
3
School of Computing, National University of Computer and Engineering Science (FAST-NUCES), Karachi 75030, Pakistan
*
Authors to whom correspondence should be addressed.

Abstract

The computer science perspective of ontology refers to ontology as a technology, however, with a different perspective in terms of interrogations and concentrations to construct engineering models of reality. Agriculture-centered architectures are among rich sources of knowledge that are developed, preserved, and released for farmers and agro professionals. Many researchers have developed different variants of existing ontology-based information systems. These systems are primarily picked agriculture-related ontological strategies based on activities such as crops, weeds, implantation, irrigation, and planting, to name a few. By considering the limitations on agricultural resources in the ONTAgri scenario, in this paper, an extension of ontology is proposed. The extended ONTAgri is a service-oriented architecture that connects precision farming with both local and global decision-making methods. These decision-making methods are connected with the Internet of Things systems in parallel for the input processing of system ontology. The proposed architecture fulfills the requirements of Agriculture 4.0. The significance of the proposed approach aiming to solve a multitude of agricultural problems being faced by the farmers is successfully demonstrated through SPARQL queries.

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.

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.
Figure 1. ONTAgri model [1].
Figure 2. ONTAgri ontology [1] in Protégé.
Table 2. Defining structures of the proposed model.
Figure 8. ONTAgriX architecture.
Figure 7. ONTAgriX in Protégé.
Figure 6. ONTAgriX proposed model.
Figure 5. Plant/environmental context management process of plant [2].
Figure 4. AgriOnt ontology [8].
Figure 3. AgriOnt model [8].
Table 2. Defining structures of the proposed model.
FigureDescriptionRemarks
Figure 1Model of ONTAgri ontology[1]
Figure 2Implementation on Protégé
Figure 3Model of AgriOnt ontology[8]
Figure 4AgriOnt ontology
Figure 5Plant ontology[2]
Figure 6Model of ONTAgriXProposed
Figure 7ONTAgriX model ontologyProposed
Figure 8ONTAgriX architectureProposed
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.

4. Simulations

Many researchers utilized Protégé in their works [1,9,24]. This work implements both ONTAgri and ONTAgriX ontologies in Protégé for precision farming applications. Figure 9 shows the Object properties and Data properties, Figure 10 shows the views available in the Individuals tab in the Protégé interface. The ONTAgriX ontology appears as the primary node in the Class hierarchy. The secondary nodes under the primary node are Reasoning, IoT subdomain, system ontology, and domain ontology. The named individuals in the Individual view are different entities. These entities include farm1, humidity sensors (HS1 and HS2Center), light sensors (LS1 and LS2Center), and soil sensors (SS1 and SS2Center). These sensors are initialized in Object Properties and Data Properties, as shown in Figure 9, and are used in the Property Assertion view, as shown in Figure 10. In Object Properties, features related to ONTAgriX are created. In Data Properties, attributes of ONTAgriX are created. In this way, data are inserted in the ONTAgriX ontology using the Data Properties assertion view and linked with different nodes.
Figure 9. Object and Data Properties.
Figure 10. Individuals of ontology.
After implementation in Protégé, the data are entered in the model, synchronized with the reasoner, and the dataset is added to Jena. The SPARQL queries are used to retrieve data, as shown in Figure 11. All data are available in subject–predicate and object. According to the end-user need and requirement, data can be gathered using the data properties and object properties mentioned in Figure 9.
Figure 11. Generating results from Jena using SPARQL query.

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.

6. Conclusions

Precision farming has become immense potential in the agriculture domain with the connection of service-oriented architecture services. There is a persistent need for new techniques that will be used in the processing of raw data and extract useful information. This is especially true for the agriculture discipline. There are important disciplines, including IoT-based companies, the automation industry, businesses, and many more, that rely on useful data extraction, despite the fact that the data are continuously changing day by day. Ontology is one of the best techniques to extract related information through relations from the data. There are different usages for ontology: it can be used for a decision support system, expert system, reusability of domain knowledge, etc. Many authors develop knowledgebase systems based on an ontology which includes Plants ontology, SAAONT, AgriOnt, OntoAgroHidro, etc. In this work, a new ontology is proposed by extending an earlier ontology with additional features. The extended ontology ONTAgriX includes the features of scalability, being service-oriented, and context-awareness. Additionally, it incorporated the IoT subdomain and reasoning process for precision farming applications. The proposed architecture is modeled, implemented, and demonstrated using well-known open-source platforms. The example of the precision farming practice is described in detail. The new features, technology components, and reasoning process in the proposed ontology enable more agriculture business applications.

Author Contributions

All authors contributed to this article according to their expertise. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

Data are not available publically, though the data may be made available on request from the corresponding author.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Rehman, A.U.; Shaikh, Z.A. ONTAgri: Scalable service-oriented agriculture ontology for precision farming. In Proceedings of the International Conference on Agricultural and Biosystems Engineering, Amsterdam, The Netherlands, 13–15 July 2011. [Google Scholar]
  2. Goumopoulos, C.; Kameas, A.D.; Cassells, A. An ontology-driven system architecture for precision agriculture applications. Int. J. Metadata Semant. Ontol. 2009, 4, 72. [Google Scholar] [CrossRef]
  3. Protégé. Available online: http://protege.stanford.edu/ (accessed on 5 April 2012).
  4. Apache Jena. Available online: https://jena.apache.org (accessed on 1 July 2021).
  5. Gruber, T.R. Toward principles for the design of ontologies used for knowledge sharing? Int. J. Hum. Comput. Stud. 1995, 43, 907–928. [Google Scholar] [CrossRef]
  6. Tom, G. Ontology. In Encyclopedia of Database Systems; Tamer, M.O., Ling, L., Eds.; Springer: Boston, MA, USA, 2009; Volume 6, pp. 1963–1965. [Google Scholar]
  7. Tudorache, T. Ontology engineering: Current state, challenges, and future directions. Semant. Web 2020, 11, 125–138. [Google Scholar] [CrossRef]
  8. Ngo, Q.H.; Le-Khac, N.A.; Kechadi, T. Ontology based approach for precision agriculture. In Proceedings of the International Conference on Multidisciplinary Trends in Artificial Intelligence, Hanoi, Vietnam, 18–20 November 2018; Manasawee, K., Rainer, M., Duc, D.N., Nicolas, S., Eds.; Springer: Cham, Switzerland, 2018; pp. 175–186. [Google Scholar]
  9. Goldstein, A.; Fink, L.; Ravid, G. A Framework for Evaluating Agricultural Ontologies. Sustainability 2021, 13, 6387. [Google Scholar] [CrossRef]
  10. Alreshidi, E. SAAONT: Ontological knowledge-based development to support intelligent decision-making systems for Saudi Arabian agriculture. Int. J. Adv. Appl. Sci. 2020, 7, 49–59. [Google Scholar] [CrossRef] [Green Version]
  11. Mazon-Olivo, B.; Hernández-Rojas, D.; Maza-Salinas, J.; Pan, A. Rules engine and complex event processor in the context of internet of things for precision agriculture. Comput. Electron. Agric. 2018, 154, 347–360. [Google Scholar] [CrossRef]
  12. Taşkin, D.; Yazar, S. A Long-range Context-aware Platform Design for Rural Monitoring with IoT in Precision Agriculture. Int. J. Comput. Commun. Control. 2020, 15. [Google Scholar] [CrossRef] [Green Version]
  13. 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. [Google Scholar] [CrossRef] [Green Version]
  14. Jin, X.-B.; Yu, X.-H.; Wang, X.-Y.; Bai, Y.-T.; Su, T.-L.; Kong, J.-L. Deep Learning Predictor for Sustainable Precision Agriculture Based on Internet of Things System. Sustainability 2020, 12, 1433. [Google Scholar] [CrossRef] [Green Version]
  15. Aydin, S.; Aydin, M.N. Semantic and Syntactic Interoperability for Agricultural Open-Data Platforms in the Context of IoT Using Crop-Specific Trait Ontologies. Appl. Sci. 2020, 10, 4460. [Google Scholar] [CrossRef]
  16. Feng, X.; Yan, F.; Liu, X. Study of Wireless Communication Technologies on Internet of Things for Precision Agriculture. Wirel. Pers. Commun. 2019, 108, 1785–1802. [Google Scholar] [CrossRef]
  17. Vuran, M.C.; Salam, A.; Wong, R.; Irmak, S. Internet of underground things in precision agriculture: Architecture and technology aspects. Ad Hoc Netw. 2018, 81, 160–173. [Google Scholar] [CrossRef] [Green Version]
  18. Bonacin, R.; Nabuco, O.F.; Junior, I.P. Ontology models of the impacts of agriculture and climate changes on water resources: Scenarios on interoperability and information recovery. Futur. Gener. Comput. Syst. 2016, 54, 423–434. [Google Scholar] [CrossRef] [Green Version]
  19. Lacasta, J.; Lopez-Pellicer, F.J.; Espejo-García, B.; Nogueras-Iso, J.; Zarazaga-Soria, F.J. Agricultural recommendation system for crop protection. Comput. Electron. Agric. 2018, 152, 82–89. [Google Scholar] [CrossRef] [Green Version]
  20. Li, D.; Kang, L.; Cheng, X.; Li, D.; Ji, L.; Wang, K.; Chen, Y. An ontology-based knowledge representation and implement method for crop cultivation standard. Math. Comput. Model. 2013, 58, 466–473. [Google Scholar] [CrossRef]
  21. Bangkhomned, W.; Payakpate, J. Applying Ontology Knowledge Representation Technology and Semantic Searching Methods to Support the Production of High Quality Longan Fruit. In Information Science and Applications; Springer: Singapore, 2020; pp. 601–612. [Google Scholar] [CrossRef]
  22. Alshinina, R.; Elleithy, K. Performance and Challenges of Service-Oriented Architecture for Wireless Sensor Networks. Sensors 2017, 17, 536. [Google Scholar] [CrossRef] [PubMed]
  23. Vecchio, Y.; Agnusdei, G.P.; Miglietta, P.P.; Capitanio, F. Adoption of precision farming tools: The case of Italian farmers. Int. J. Environ. Res. Public Health 2020, 17, 869. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  24. Kocian, A.; Incrocci, L. Learning from Data to Optimize Control in Precision Farming. Stats 2020, 3, 239–245. [Google Scholar] [CrossRef]
  25. Li, X.; Eckert, M.; Martinez, J.-F.; Rubio, G. Context Aware Middleware Architectures: Survey and Challenges. Sensors 2015, 15, 20570–20607. [Google Scholar] [CrossRef] [PubMed] [Green Version]
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.