Next Article in Journal
Challenging Ergonomics Risks with Smart Wearable Extension Sensors
Next Article in Special Issue
Supervised Machine Learning Tools and PUF Based Internet of Vehicles Authentication Framework
Previous Article in Journal
Area- and Power-Efficient Reconfigurable Architecture for Multifunction Evaluation
Previous Article in Special Issue
GDPR Compliant Data Storage and Sharing in Smart Healthcare System: A Blockchain-Based Solution
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Agricultural Lightweight Embedded Blockchain System: A Case Study in Olive Oil

1
CES Lab, ENIS, University of Sfax, Sfax P.O. Box 3038, Tunisia
2
Regim Lab, ENIS, University of Sfax, Sfax P.O. Box 3038, Tunisia
3
Department of Information Technology, College of Computer and Information Sciences, Princess Nourah bint Abdulrahman University, P.O. Box 84428, Riyadh 11671, Saudi Arabia
4
Faculty of Engineering, Uni de Moncton, Moncton, NB E1A3E9, Canada
5
International Institute of Technology and Management, Commune d’Akanda, Libreville P.O. Box 1989, Gabon
6
Spectrum of Knowledge Production & Skills Development, Sfax P.O. Box 3027, Tunisia
7
Department of Electrical and Electronic Engineering Science, School of Electrical Engineering, University of Johannesburg, Johannesburg 2006, South Africa
*
Authors to whom correspondence should be addressed.
Electronics 2022, 11(20), 3394; https://doi.org/10.3390/electronics11203394
Submission received: 9 September 2022 / Revised: 14 October 2022 / Accepted: 15 October 2022 / Published: 20 October 2022

Abstract

:
In Tunisia, one of the major problems of the olive oil industry is marketing. Several factors have an impact, such as quality, originality, lobbying, subsidies and the certification of extra virgin olive oil. The major problem remains the traceability of the production process to guarantee the origin of the food at all times. This fine-grained traceability can be achieved by applying Blockchain technologies. Blockchain can be used as a solution that could bring visibility to the oil supply chain. It is proposed in order to guarantee the veracity of the product information at different stages. In this paper, a multi-Blockchain, multi-sensor traceability system using IoT will be presented. Two Blockchains that can be programmed via Smart Contract will be used. The first one is Quorum, which is a private Blockchain used by the actors of our system, and the second one is Ethereum, which is public and connects the different actors who have access to our system. This smart contract allows us to conta our system to track the olive oil manufacturing process from the farmer, through the oil mill, the transporter and the quality controller to the customer. A general approach for managing the olive oil supply chain is presented. This approach offers the possibility for the system to be configurable. It is based on smart contracts and applications that interact with the same smart contracts. The IoT is used to configure sensors. These sensors are the source of data for the supply chain process. These sensors are connected to the embedded platforms that host Quorum.

1. Introduction

Tunisia is one of the major exporters of olive oil in the world. For decades, several oil producing countries, such as Italy and Spain, have been importing Tunisian olive oil in bulk. The Tunisian oil is mixed with local oils and will be sold under other European brands. However, today, the “liquid gold” of Tunisia is beginning to be exported by the local industry in bottles under Tunisian brands.
The quality of the oil depends on several factors influencing the olive, which are agricultural policies, environmental conditions, olive variety, the industrial processing of olives, storage location and distribution. Generally, this kind of information about these factors is not shared transparently among partners. Thus, customers are often confronted with numerous problems regarding the traceability and originality of the product.
There is therefore an interest in certifying and controlling the quality of extra virgin olive oil. Since a high quality product is very expensive, the oil is vulnerable to fraud and adulteration throughout its processing. Customers are increasingly demanding the quality of the oil. The authentication of olive oil quality is essential for consumers, as revealed in Figure 1.
Blockchain technology is gaining support for various agricultural product applications, including agricultural product tracing and provenance. The data traceability and inclusiveness of Blockchain can reduce fraud and risks regarding food safety.
In this paper, the focus will be laid on the implementation of a system to track the flow of olive oil from farmer to customer to oil manufacturer to quality controller to transporter. The objective is to avoid going through intermediaries or feed sources, as shown in Figure 1. Our system is based on several advanced technologies. Each element of our chain (farmer, manufacturer, quality controller and transporter) has its own system. This system includes the sensors necessary for its application. These sensors are connected to on-board platforms to capture different pieces of information. Such information is then stored in the Quorum private Blockchain. The information that needs to be accessible to the different links of the chain, but also to the customers, is sent via Ethereum. However, confidential data is only recorded on Quorum. They allow the desired traceability.
The main technological innovation in this agricultural application applied to the Tunisian market and particularly to the olive oil market is based on a multi-Blockchain system composed of two Blockchains that communicate with each other, namely a private Quorum Blockchain (suppliers, users, etc.) and a public Ethereum Blockchain that will be accessible to customers.
Thus, farmers will be able to use this system to increase their profits and improve their productivity. Customers, on the other hand, will be provided with efficient results.
This study is structured around four parts. The first one is the current state of the art. The implemented approach is then presented before moving on to the result obtained. The paper ends with a conclusion and some perspectives.

2. Related Works

In order to avoid food fraud, many countries have imposed strict legislation; they have implemented traceability systems to assure consumers. Therefore, the identification of products has become a necessity to ensure traceability. Detecting food fraud requires interdisciplinary knowledge combining food biology, legislation, supply chain management, computer science and mathematics [1]. In this context, Blockchain is an effective solution to the immutable solution of data during all stages of the food supply chain. With this technology, the transparency and the immutability records in the form of digital certificates are guaranteed.
According to Galvez et al. [2], most traceability management techniques with Blockchain have been developed since 2015. Many research works [3,4,5,6] show that Blockchain is among the best ways to ensure the traceability and transparency of data in an immutable way. Some companies have launched Blockchain projects for proof of concept in supply chains, as shown in Figure 2.
Today, numerous companies are developing Blockchain technologies in the field of the agricultural and food industries. These companies are summarized in Table 1 [7,8,9]. On the other hand, researchers have been studying Blockchain integration in food supply chains. Yu and Huang [10] opted for a Blockchain solution to attain traceability on chickens. They utilized RFID technology to scan the existing QR code on the chicken’s claw ring. The chicken’s claw ring is designed to be single-use. Tian et al. [11,12] proposed an agricultural food supply chain traceability system in China. Yang et al. [13] exploited Hyperledger as a traceability medium to save information. However, the solution was expensive and slow. Xie et al. [14] developed an IoT solution for tracking agricultural products, allowing data reliability in the case of a malicious attack. However, the cost of transactions on the Blockchain increases with the volume of data.
Hao et al. [15] studied the traceability of crop growth based on Blockchain technology via IPFS to provide crop growth statistics. This solution solves the problem of storing data in the Blockchain; however, it mainly focuses on crop information acquisition techniques. Caro et al. proposed a fault-tolerant, immutable and verifiable solution called AgriBlockIoT for an agricultural supply chain [16]. AgriBlockIoT relies on IoT and Blockchain technology to store traceability data. Ethereum and Hyperledger were the two Blockchain platforms tested. According to the results, Ethereum performs better than Hyperledger in terms of latency and CPU usage.
Agricultural supply chain management was proposed by Lin et al. [17]. This system is based on Blockchain, IoT, and a low power wide area network (LPWAN). ERPs were also proposed by Lin et al. [17]. In [18], the different parts of an agricultural supply chain ecosystem were proposed to ensure food security and attain a trusted supply chain. Mondal et al. presented a system based on Blockchain and IoT. This system did not use the greediest consensus—PoW; instead, the authors used different Blockchains PoO (Proof of Object) and PoS (Proof of Stake), in this case [19].
Based on the different approaches used not only in the state of the art but also in some previous works conducted by the researchers [20,21,22], and given the Tunisian technological, retail and infrastructural constraints, an approach that could help to improve olive oil quality as well as optimize the selling price is proposed in this paper. Cutting out the middleman is the best way to avoid fraud and minimize possible commissions. The result is a very high-quality oil with low prices. The most suitable process will be described in what follows.
Table 2 represents a comparison of our approach with the different state-of-the-art approaches. These different approaches concern the supply chain applied to olive oil. As presented in Table 2, it is obvious that the different approaches use IoT and are accessible via mobile devices. While in [23,24], the proposed systems are based on databases, in the other approaches [25,26,27,28,29] Blockchain with a purely decentralized system is used. In [30], they proposed a system using Blockchain, which is used by farmers to trace data from wireless sensor networks using a public Blockchain.
The implemented approach presents another vision. Indeed, refs. [23,29] use a private Blockchain, whereas our approach uses a permissioned Blockchain (Ethereum) and a private Blockchain (Quorum). Blockchain technology was chosen instead of a distributed system as it is able to trace any transaction made. Thus, no one can modify, delete or change any data that has been added to the block.
In the context of our agricultural application, two Blockchains were chosen: one private and one public, for several reasons. In fact, in the various works that have been carried out in the framework of the supply chain of agricultural products, it should be noted that most of the works use a single Blockchain to which all actors are connected.
In the context of Tunisian agriculture and given that the various actors (farmers, transporters, quality service, etc.) are not open to sharing all data, some of which are confidential (customers, suppliers, etc.). To overcome this, a multi-Blockchain system composed of a private Blockchain for the different suppliers is proposed, which allows the preservation of the confidentiality of some data as well as a public Blockchain, which will be accessible to the customer. Thus, the farmers will be able to use this system to increase their earnings and improve their productivity, and the customer will receive the efficient result. The innovation in this framework lies in the fact that two different Blockchains (Quorum and Ethereum) communicate together. The data that need to be shared are sent from Quorum to Ethereum and can then be viewed by the customers.
Indeed, some actors, such as the farmer, the manufacturer and the transporter, do not prefer to submit all the internal data of their company. Therefore, a private Blockchain is used, and our choice of technology is Quorum. Polge et al. [31] compared four major permissioned Blockchain frameworks: Hyperledger Fabric, Ethereum, Quorum, MultiChain and R3 Corda. They demonstrate the higher performance of Quorum compared with the other frameworks, in terms of latency, throughput and privacy. Our choice of Quorum is also based on the fact that this Blockchain is based on the same architecture as Ethereum. Being a public Blockchain, Ethereum allows all steps to be traced. The different consumers will be able to check the transactions, which are displayable for those interested. It is thus possible to show the feasibility of linking two public and private Blockchains and to obtain a reliable and accessible system. The inputs of our system are provided by different sensors that are connected to two embedded platforms. They are Arduino and Raspberry PI.

3. Proposed Approach

The aim of the proposed work is to allow the implementation of a supply chain system, allowing the follow-up of the routing of the olive oil from the producer to the customer through the oil factory. The proposed system, as indicated here, allows the bypassing of intermediaries to minimize the cost of the production and to secure the system. Anyone who is not part of our Blockchain is automatically excluded. This system therefore allows us to maintain the quality of our production. Our reliable system is achieved through the implementation of smart contracts to store critical data that are immutable and to ensure the monitoring and securing of olive production. Thus, there is a need for:
  • Implementation of a web application for data entry;
  • Transfer, processing and storage of information in the Blockchain;
  • Blockchain implementation on Raspberry PI;
  • Secure data tracking.
Farmers need to:
  • Access the system by completing the registration process;
  • Put products on sale, i.e., the olives, and the necessary details about the product.
The producer needs to:
  • Access the system by completing the registration process;
  • Buy the raw materials offered for sale by the farmer;
  • Put the oil up for sale.
The customer will be able to:
  • Access the system;
  • Check the production line through which the product passed.
Figure 3 represents the different actors and the steps that will be followed during the implementation of our system.
The system proposed in our paper is presented in Figure 4. The different people who are involved in this system are presented in Figure 3. Thus, there is the farmer, the producer (manufacturing, processing and packaging, quality inspection, transport and logistics) and the customer. Each member of our system will comprise a Blockchain node, which will be implemented on a Raspberry PI3. The smart contract will record each transaction performed. The result of the implementation of our system is illustrated in Section 4.
The Raspberry PI and the Arduino board were chosen for this work to show the feasibility of the system on mobile and low power platforms. Indeed, thanks to the approach proposed, the feasibility of an embedded Blockchain-based system with limited power consumption has been demonstrated.

4. Results Obtained

4.1. Proposed Architecture

Based on the approach proposed in Figure 4, researchers have realized a complete system that creates the supply chain of farmers, oil manufacturer, quality control company and, finally, the transporters. Figure 5 shows the system that has been set up and is described in the proposed approach section. Our system, as shown in Figure 5, has five parts: four private parts and a public part that connects the parts of system to each other. The platform presents four systems: one for the farmer, one for the transporter, one for the oil manufacturer and, lastly, one for the quality control process. These different private systems send the characteristic transactions to the Ethereum Blockchain. As shown in Figure 5, each actor has its own private Blockchain. In this Quorum Blockchain, the actor enters all the data that are specific to their part of the system. For example, the farmer handles data related to their agricultural fields (humidity, temperature, salinity, etc.), to the different agricultural actors (fertilizers, medicines, suppliers, etc.) and to the harvest (olives, wood, etc.).
Some of these data are confidential and specific to the farmer. Others are public (quantity of olives, quantity of wood). These data will also be recorded in the public Blockchain of our general system. Thus, such transactions will be saved in the Ethereum Blockchain. The different nodes of this Blockchain are saved on embedded platforms (Raspberry PI 4). The different aspects thereof are detailed hereafter.

4.1.1. Farmer Architecture

As described in Figure 5, each component of our ecosystem will have its own private system. Thus, a farmer will have their own platform. As far as farmers are concerned, they will be able to enter the inputs and outputs of their fields in terms of products, seeds, fertilizers, etc. Intrinsic data of the fields, such as humidity, salinity, soil PH, etc., are collected from analog sensors. These sensors sends the data to an Arduino platform to retain their accuracy. This platform sends its data to Raspberry PI. Raspberry PI acts as a web server but also as a host platform for the Quorum Blockchain. All data will be saved and only the farmer and their associates will be able to access them. Transactions intended for the public (the other components of our system as well as the clients) will be sent to the embedded system comprising the Ethereum nodes.
The Ethereum Blockchain has the characteristic of being accessible to everyone. Figure 6 shows the farmer’s platform.
The sensor nodes are vulnerable to various malicious attacks. They can also suffer from drift or bias, which makes it challenging to ensure the correctness of the collected data. In [32], the authors proposed Blockchain-based trust management based on a non-cooperative game in order to detect malicious data. In [33], the authors proposed a gossip-broadcasting-based referendum consensus to overcome the faulty nodes issue. For future work, it is recommended that a fault-tolerant system with build-in resilience against malicious behavior should be built.

4.1.2. Manufacture Architecture

As far as the oil manufacturer is concerned, the input will be the olives purchased from the farmer and the final product will be the pressed and packed olive oil. The intrinsic data to be collected are PH, salinity, temperature and humidity. These data are analog data connected to an Arduino platform. These data enable optimizing the energy consumption, the quality and the internal parameters of the oil. The latter will send its data to the Raspberry PI connected to the Quorum Blockchain. All data will be saved by the oil manufacturer and will be accessible by its employees. Transactions intended for the public (other components of our system as well as customers) will be sent to the embedded system comprising Ethereum nodes. Figure 7 shows the manufacturer’s platform.

4.1.3. Quality Process Architecture

Regarding the quality process, oil bottles already have been tested as input and will have a quality certificate as a result. After checking the peroxidation, acidity and wax of the oil, these data will be stored on the Raspberry PI, which is connected to the Quorum Blockchain. The data collection in this case is still manual. All the data will be saved by the oil quality control system and will be accessible by its collaborators. Transactions intended for the public (other components of our system as well as customers) will be sent to the embedded system comprising Ethereum nodes. Figure 8 describes the quality controller platform.

4.1.4. Transporter Architecture

As for the transporter, it will have the certified oil bottles that will be offered to the customers in the big stores as the input. The intrinsic data to be collected are the CO2, temperature and the humidity of the transport car. These data are analog data connected to an Arduino platform. They will be sent, along with the GPS location, in order to describe the path of the transporter to the Raspberry PI connected to the Quorum Blockchain. All data will be saved by the oil manufacturer and will be accessible by their associates. Transactions intended for the public (other components of our system as well as customers) will be sent to the embedded system comprising Ethereum nodes. Each Quorum Blockchain is owned by the actor who uses it (quality process, farmer, manufacturer and transporter). Thus, the smart contract set up for each actor allows the recording of any data inserted in the system as a transaction. For example, as soon as the transporter picks up the cargo, the temperature, the CO2 content and the GPS location are automatically recorded at regular time intervals.
Every hour, the GPS location, temperature and CO2 content are concatenated in a single transaction. The transaction is then encrypted and can only be decrypted through the transporter’s key. At the end of the transport operation, the system saves a specific transaction that includes the departure time, the arrival time, the minimum and maximum temperature values and the minimum and maximum CO2 content values. This last transaction is sent to the Ethereum Blockchain to be accessible to the public (customers) who can access the olive oil traceability system. In the following section the implementation of the Blockchain on the Raspberry PI will be described.

4.2. Implemented Blockchain on Raspberry PI

In terms of low power consumption [34,35,36,37,38], a Raspberry Pi platform has been chosen for the implementation of our application, for many reasons. The raspberry PI has the characteristics of a PC with a minimalist configuration. It offers a multiprocessor architecture with a GPU that allows access to a good computational capacity. It offers different peripherals in order to be able to connect and use several peripherals. Since the data do not require significant computational capabilities, Raspberry Pi will be used as a receptacle for the Blockchain used by the researchers. Therefore, Ethereum will be used as the Blockchain implemented in Raspberry. The result of our work is described in Figure 9. The Blockchain, as well as the different transactions performed, is provided. In Figure 9, a virtual machine on which Raspbian OS is installed has been used.
The data were recorded using smart contracts. Smart contract is managed by the organization that takes care of preparing and maintaining the traceability of our system. In the context of this work, this body could be the supervisory ministry (Tunisian Ministry of Agriculture), which makes it possible to enhance the product exported through this system. It is noteworthy that the communication between the two Blockchains is achieved via the internet using the Web3 technology as a bridge between the two systems.
However, the implementation of our Blockchain goes through several steps that will require the use of several tools. To test the custom Ethereum Blockchain, Ganache will be used. The truffle tool will be the provider of our smart contract and, finally, MetaMask will be our crypto wallet. Figure 10 describes the different tools used and already described [39].
After the smart contract, the Ganache result is presented in Figure 11. It is clear that all transactions are hashed to secure the outcomes.
After describing the Blockchain implementation, we will now highlight the mobile device aspect used to consult as well as move our transactions via Blockchain.

4.3. Web Application

Regarding the application aspect, the authors propose a system that has been realized using Flatter. Our realized web application is shown in Figure 12. The goal is to use a mobile application that can be used both on Android and IoS. Figure 12 shows the agriculture registration aspect.
After selling olives to the manufacturer to extract olive oil, the transaction was saved on the Blockchain. In Figure 13, the confirmation of the executed transaction is provided. It represents the oil manufacturer interface.
The third application actor was the customer, who can access the system to check the identity of the olive producer as well as the oil manufacturer before buying the oil. Figure 14 illustrates this.
It is important to notice that each actor in our system has access to a crypto-wallet MetaMask to perform the necessary transactions in our system. Each transaction performed by the system needs Ethereum gas to be validated. This crypto money is displayed via MetaMask.

5. Discussion

In the implementation of olive oil supply chain systems, this study can be divided into three parts: detailed centralized systems, generic public decentralized systems and detailed private decentralized systems. The architecture of the centralized systems is based on a backup on the cloud and only allows access to authorized people. This system is certainly efficient, but the fact that it is centralized gives the administrator the right to control the entire platform.
To remedy this problem, decentralized systems give more freedoms and rights to different actors. Indeed, decentralization allows the democratization of the process of supply chains and the treatment of the different systems.
Thus, some companies use their own secure private Blockchains to track their products. The problem with this kind of approach is that it is totally inaccessible for people who are not part of this network and thus cannot access the information. So, if the process inside the company is decentralized, the system remains closed to the outside. Let us now move to the last case. Using a fully public Blockchain allows anyone to access and verify product information. This being the case, confidential information could be accessible, which would go against the policies of some manufacturers and/or farmers.
To overcome this, a system that allows different partners to maintain the industrial secrecy of certain data by using a private Quorum Blockchain has been set up. This decentralized system is based on different embedded platforms for the different actors: the farmer (Arduino, sensors and Raspberry PI), the oil manufacturer (Sensors, Arduino, Raspberry PI), the transporter (sensor, sensors, mobile, raspberry PI) and the quality control company (Raspberry). These decentralized platforms are private and therefore the information they store is only accessible to the associates of each actor.
As for the information that is accessible to anyone, including actors, customers, supermarkets, etc., it will be sent to a Ethereum Blockchain. Ethereum was chosen because it is compatible with the Quorum Blockchain for the transfer of information and communication between the two Blockchains. Each Raspberry PI will carry an Ethereum node. People can thus access this Blockchain to see the life cycle of the product from the tree to the olive, to the manufacturer, and to the quality controller through the various carriers. This traceability will enhance the quality of the product while giving satisfaction to the customer.
As part of this work, a prototype of an application has been implemented to secure and realize the traceability of our product. As a case study, the Ethereum Blockchain has been chosen. It is possible to use Ethereum as a permissioned Blockchain and to apply an application-specific value for transaction gas. This value can be very small. It will therefore be added to the price of the bottle of olive oil. For example, 10% can be added to the price of a bottle. This addition will be the cost of the transactions made on Ethereum from the picking of the olives until they reach the customer.
Several contributions from the literature are presented and compared. Indeed, in the agricultural domain, users utilize embedded systems without Blockchain or Blockchain without embedded systems. IoT sensors are used in different systems. As such, our contribution lies in the use of low power and low resource platforms with IoT sensors. If in other systems, the use of a multi-Blockchain system is possible [40], the value and advantage of this work is the use of a private and a public Blockchain. The former is used by different actors who do not want to reveal their customers or suppliers. The latter is accessible to anyone who wants to buy the product. Thus, customers will be able to trace any transaction related to the product. Thus, the second contribution lies in the use of two different Blockchains to enable the implementation of a heterogeneous agricultural platform that is secure and traceable.
In terms of power consumption, the low power factor has become an important issue, especially for Blockchain, which is energy intensive. The Raspberry platform based on multi-core architecture solves the power consumption problem despite its low computing power compared to a processor of the x86-64 family. This encourages the adoption of a low-power Blockchain approach.
For agriculture applications, the real time aspect is not dominant, especially for the private Blockchain. In our case and based on previous work [40], it has been noticed that despite the performance loss with Raspberry (16 times) % x86-64 Xeon for example, there is a very significant energy gain (26 times) that largely compensates for the performance loss, especially for applications without real-time constraints. Thus, the migration to the Raspberry architecture offers an overall energy gain of more than 61% [40] compared to the Xeon processor and a greater gain compared to the Radeon VII GPU, for example, which consumes more than 200W.
Nonetheless, the proposed system has certain shortcomings that could be improved. It remains quite complex and requires many platforms working in parallel (Raspberry [30] + Arduino + FPGA [41,42]). The feasibility of the system has been proven and the concept has been shown to be functional. Nonetheless, it would be adequate to optimize the size and the cost as well as the energy consumption by creating an embedded design of a platform that would be optimized for each actor according to their needs. The Ethereum 1.0 with PoW consensus was chosen. The compatibility and security of our platform, however, could be tested using Ether 2.0, which uses PoS consensus.

6. Conclusions

This article has presented a system to highlight the security of information related to the entire olive oil production process using Blockchain. The system proposed is simple because it allows each actor to have their own private Blockchain. This permits the maintenance of the confidentiality of the data related to the product. Thus, each actor is the center of their system based on the Quorum Blockchain. Each actor has access to it, along with their different associates. All data extrinsic to the field and/or greenhouse as well as intrinsic data obtained from the sensors will be recorded as transactions in this decentralized system. The targeted actors are the farmers, the oil manufacturers, the quality control companies and the transporters. Important information that needs to be accessible will be sent to a public Blockchain. The latter is realized using Ethereum, whose nodes are implemented on a Raspberry PI. The different partners and customers will be able to have access to its data in order to know the origin of the product, as well as the whole chain of production. These steps show the importance of our system. This was achieved taking into account the Tunisian context related to olive oil.
Several perspectives can be added to this work. To have a system using intelligent agriculture, other sensors could be added to apply our platform to the cultivation of organic olive oil, and it could be applied to to other organic crops that are destined for foreign countries. Artificial intelligence, and deep learning especially, is used to automate not only the state of the olives and the quantity of the production but also the type and quality of the olive oil obtained.

Author Contributions

This paper is the result of a collaboration between different authors from different universities. Conceptualization, T.F. and J.K.; methodology, F.C. and T.F.; software.; validation, J.K. and F.C.; formal analysis, M.H.; investigation, F.C.; resources, M.H.; data curation, H.H.; writing—original draft preparation, J.K.; writing—review and editing, T.F.; visualization, M.H.; supervision, H.H.; project administration, T.F.; funding acquisition, M.H. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by Princess Nourah bint Abdulrahman University Researchers Supporting Project number (PNURSP2022R125), Princess Nourah bint Abdulrahman University, Riyadh, Saudi Arabia.

Data Availability Statement

No data availability.

Acknowledgments

The authors thank Natural Sciences and Engineering Research Council of Canada (NSERC) and New Brunswick Innovation Foundation (NBIF) for the financial support of the global project. These granting agencies did not contribute to the design of the study or the collection, analysis and interpretation of the data. This work was supported by 19PEJC09-12, Smart AGE project, Minister of Higher Education and Scientific Research in Tunisia.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Danezis, G.P.; Tsagkaris, A.S.; Camin, F.; Brusic, V.; Georgiou, C.A. Food authentication: Techniques, trends & emerging approaches. TrAC Trends Anal. Chem. 2016, 85, 123–132. [Google Scholar]
  2. Galvez, J.F.; Mejuto, J.C.; Simal-Gandara, J. Future challenges on the use of blockchain for food traceability analysis. TrAC Trends Anal. Chem. 2018, 107, 222–232. [Google Scholar] [CrossRef]
  3. Demestichas, K.; Peppes, N.; Alexakis, T.; Adamopoulou, E. Blockchain in Agriculture Traceability Systems: A Review. Appl. Sci. 2020, 10, 4113. [Google Scholar] [CrossRef]
  4. Costa, C.; Antonucci, F.; Pallottino, F.; Aguzzi, J.; Sarriá, D.; Menesatti, P. A review on agri-food supply chain traceability by means of rfid technology. Food Bioprocess Technol. 2013, 6, 353–366. [Google Scholar] [CrossRef]
  5. Tian, F. An agri-food supply chain traceability system for China based on RFID & blockchain technology. In Proceedings of the 2016 13th International Conference on Service Systems and Service Management (ICSSSM), Kunming, China, 24–26 June 2016. [Google Scholar] [CrossRef]
  6. Antonucci, F.; Figorilli, S.; Costa, C.; Pallottino, F.; Raso, L.; Menesatti, P. A review on Blockchain applications in the agri-food sector. J. Sci. Food Agric. 2019, 99, 6129–6138. [Google Scholar] [CrossRef] [PubMed]
  7. Xu, J.; Guo, S.; Xie, D.; Yan, Y. Blockchain: A new safeguard for agri-foods. Artif. Intell. Agric. 2020, 4, 153–161. [Google Scholar] [CrossRef]
  8. Singh, M. Can Blockchain Technology Support Agricultural Sustainability? Authorea, 2022; preprints. [Google Scholar] [CrossRef]
  9. Kamble, S.S.; Gunasekaran, A.; Sharma, R. Modeling the blockchain enabled traceability in agriculture supply chain. Int. J. Inf. Manag. 2020, 52, 101967. [Google Scholar] [CrossRef]
  10. Yu, K.-P.; Tan, L.; Aloqaily, M.; Yang, H.; Jararweh, Y. Blockchain-Enhanced Data Sharing With Traceable and Direct Revocation in IIoT. IEEE Trans. Ind. Inform. 2021, 17, 7669–7678. [Google Scholar] [CrossRef]
  11. Ghorbel, O.; Ayadi, R.; Frikha, T.; Alanazi, A.S.; Abid, M. Fast and Intelligent Irrigation System Based on WSN. Comput. Intell. Neurosci. 2022, 2022, 5086290. [Google Scholar]
  12. Tian, F. A supply chain traceability system for food safety based on HACCP, blockchain & Internet of things. In Proceedings of the 2017 International Conference on Service Systems and Service Management, Dalian, China, 16–18 June 2017; pp. 1–6. [Google Scholar]
  13. Yang, X.; Li, M.; Yu, H.; Wang, M.; Xu, D.; Sun, C. A Trusted Blockchain-Based Traceability System for Fruit and Vegetable Agricultural Products. IEEE Access 2021, 9, 36282–36293. [Google Scholar] [CrossRef]
  14. Xie, C.; Sun, Y.; Luo, H. Secured data storage scheme based on block chain for agricultural products tracking. In Proceedings of the 2017 3rd International Conference on Big Data Computing and Communications, Chengdu, China, 10–11 August 2017; pp. 45–50. [Google Scholar]
  15. Hao, J.T.; Sun, Y.; Luo, H. A safe and efficient storage scheme based on Blockchain and IPFS for agricultural products tracking. J. Comput. 2018, 29, 158–167. [Google Scholar]
  16. Caro, M.P.; Ali, M.S.; Vecchio, M.; Giaffreda, R. Blockchain-based traceability in Agri-Food supply chain management: A practical implementation. In Proceedings of the 2018 IoT Vertical and Topical Summit on Agriculture-Tuscany (IOT Tuscany), Tuscany, Italy, 8–9 May 2018; pp. 1–4. [Google Scholar]
  17. Lin, J.; Shen, Z.; Zhang, A.; Chai, Y. Blockchain and IoT based food traceability for smart agriculture. In Proceedings of the 3rd International Conference on Crowd Science and Engineering-ICCSE’18, Singapore, 28–31 July 2018; Volume 3, p. 3. [Google Scholar]
  18. Krithika, L.B. Survey on the Applications of Blockchain in Agriculture. Agriculture 2022, 12, 1333. [Google Scholar] [CrossRef]
  19. Frikha, T.; Chaabane, F.; Aouinti, N.; Cheikhrouhou, O.; Ben Amor, N.; Kerrouche, A. Implementation of Blockchain Consensus Algorithm on Embedded Architecture. Secur. Commun. Netw. 2021, 2021, 9918697. [Google Scholar] [CrossRef]
  20. Frikha, T.; Chaari, A.; Chaabane, F.; Cheikhrouhou, O.; Zaguia, A. Healthcare and Fitness Data Management Using the IoT-Based Blockchain Platform. J. Healthc. Eng. 2021, 2021, 9978863. [Google Scholar] [CrossRef]
  21. Allouche, M.; Frikha, T.; Mitrea, M.; Memmi, G.; Chaabane, F. Lightweight Blockchain Processing. Case Study: Scanned Document Tracking on Tezos Blockchain. Appl. Sci. 2021, 11, 7169. [Google Scholar] [CrossRef]
  22. Ktari, J.; Frikha, T.; Ben Amor, N.; Louraidh, L.; Elmannai, H.; Hamdi, M. IoMT-Based Platform for E-Health Monitoring Based on the Blockchain. Electronics 2022, 11, 2314. [Google Scholar] [CrossRef]
  23. Haque, B.; Hasan, R.; Zihad, O.M. SmartOil: Blockchain and smart contract-based oil supply chain management. IET Blockchain 2021, 1, 95–104. [Google Scholar] [CrossRef]
  24. Conti, M. EVO-NFC: Extra Virgin Olive Oil Traceability Using NFC Suitable for Small-Medium Farms. IEEE Access 2022, 10, 20345–20356. [Google Scholar] [CrossRef]
  25. Guido, R.; Mirabelli, G.; Palermo, E.; Solina, V. A framework for food traceability: Case study—Italian extra-virgin olive oil supply chain. Int. J. Ind. Eng. Manag. 2020, 11, 50–60. [Google Scholar] [CrossRef]
  26. Violino, S.; Pallottino, F.; Sperandio, G.; Figorilli, S.; Antonucci, F.; Ioannoni, V.; Fappiano, D.; Costa, C. Are the Innovative Electronic Labels for Extra Virgin Olive Oil Sustainable, Traceable, and Accepted by Consumers? Foods 2019, 8, 529. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  27. Biagianti, A. Certified Origins Italia Transforms Supply Chain with Oracle Blockchain. Oracle Customer Stories. 2019. Available online: https://www.oracle.com/it/customers/certified-origins-1-Blockchain-story.html (accessed on 25 August 2022).
  28. Alkhudary, R.; Brusset, X.; Naseraldin, H.; Féniès, P. Enhancing the competitive advantage via Blockchain: An olive oil case study. IFAC-PapersOnLine 2022, 55, 469–474. [Google Scholar] [CrossRef]
  29. Arena, A.; Bianchini, A.; Perazzo, P.; Vallati, C.; Dini, G. BRUSCHETTA: An IoT Blockchain-Based Framework for Certifying Extra Virgin Olive Oil Supply Chain. In Proceedings of the 2019 IEEE International Conference on Smart Computing (SMARTCOMP), Washington, DC, USA, 12–15 June 2019; pp. 173–179. [Google Scholar] [CrossRef]
  30. Ghorbel, O.; Frikha, T.; Hajji, A.; Alabdali, R.; Ayadi, R.; Elmasry, M.A. Blockchain-Based Supply Chain System for Olive Fields Using WSNs. Comput. Intell. Neurosci. 2022, 2022, 9776776. [Google Scholar] [CrossRef] [PubMed]
  31. Polge, J.; Robert, J.; Le Traon, Y. Permissioned blockchain frameworks in the industry: A comparison. ICT Express 2021, 7, 229–233. [Google Scholar] [CrossRef]
  32. Bai, Y.; Fan, K.; Zhang, K.; Cheng, X.; Li, H.; Yang, Y. Blockchain-based trust management for agricultural green supply: A game theoretic approach. J. Clean. Prod. 2021, 310, 127407. [Google Scholar] [CrossRef]
  33. Lee, H.; Seo, H.; Choi, W. Fast and Scalable Distributed Consensus Over Wireless Large-Scale Internet of Things Network. IEEE Internet Things J. 2022, 9, 7916–7930. [Google Scholar] [CrossRef]
  34. Ktari, J.; Abid, M. A Low Power Design Methodology Based on High Level Models. In Proceedings of the International Conference on Embedded Systems & Applications, Atlanta, GA, USA, 19–24 October 2008; pp. 10–15. Available online: https://dblp.org/rec/conf/csreaESA/KtariA08.html (accessed on 1 September 2022).
  35. Ktari, J.; Abid, M. A Low Power Design Space Exploration Methodology Based on High Level Models and Confidence Intervals. J. Low Power Electron. 2009, 5, 17–30. [Google Scholar] [CrossRef]
  36. Alsirhani, A.; Khan, M.A.; Alomari, A.; Maryam, S.; Younas, A.; Iqbal, M.; Siqqidi, M.H.; Ali, A. Securing Low-Power Blockchain-Enabled IoT Devices Against Energy Depletion Attack. ACM Trans. Internet Technol. 2022. [Google Scholar] [CrossRef]
  37. Ktari, J.; Abid, M. System Level Power and Energy Modeling for Signal Processing Applications. In Proceedings of the 2007 2nd International Design and Test Workshop, Cairo, Egypt, 16–18 December 2007; pp. 218–221. [Google Scholar] [CrossRef]
  38. Ktari, J.; Abid, M.; Julien, J.; Laurent, J. Power Consumption and Performance’s Library on DSPs: Case Study MPEG2. J. Comput. Sci. 2007, 3, 168–173. [Google Scholar]
  39. Ethereum Developer Onboarding: Step 2. Available online: https://consensys.net/developers/onboarding-step-2/ (accessed on 1 September 2022).
  40. Chaabane, F.; Ktari, J.; Frikha, T.; Hamam, H. Low Power Blockchained E-Vote Platform for University Environment. Future Internet 2022, 14, 269. [Google Scholar] [CrossRef]
  41. Ktari, J.; Frikha, T.; Yousfi, M.A.; Belghith, M.K.; Sanei, N. Embedded Keccak implementation on FPGA. In Proceedings of the 2022 IEEE International Conference on Design & Test of Integrated Micro & Nano-Systems (DTS), Cairo, Egypt, 6–9 June 2022; pp. 1–5. [Google Scholar] [CrossRef]
  42. Dhouioui, M.; Frikha, T. Design and implementation of a radar and camera-based obstacle classification system using machine-learning techniques. J. Real-Time Image Process. 2021, 18, 2403–2415. [Google Scholar] [CrossRef]
Figure 1. Fraud in transformation process.
Figure 1. Fraud in transformation process.
Electronics 11 03394 g001
Figure 2. Blockchain participants in the food supply chain.
Figure 2. Blockchain participants in the food supply chain.
Electronics 11 03394 g002
Figure 3. Implemented proposed system.
Figure 3. Implemented proposed system.
Electronics 11 03394 g003
Figure 4. Global approach.
Figure 4. Global approach.
Electronics 11 03394 g004
Figure 5. Global system.
Figure 5. Global system.
Electronics 11 03394 g005
Figure 6. Farmer platform.
Figure 6. Farmer platform.
Electronics 11 03394 g006
Figure 7. Manufacture platform.
Figure 7. Manufacture platform.
Electronics 11 03394 g007
Figure 8. Quality process platform.
Figure 8. Quality process platform.
Electronics 11 03394 g008
Figure 9. Blockchain implemented on Raspbian OS.
Figure 9. Blockchain implemented on Raspbian OS.
Electronics 11 03394 g009
Figure 10. Blockchain implementation tools used.
Figure 10. Blockchain implementation tools used.
Electronics 11 03394 g010
Figure 11. Ganache results example.
Figure 11. Ganache results example.
Electronics 11 03394 g011
Figure 12. Monitoring and securing production: agriculture interface.
Figure 12. Monitoring and securing production: agriculture interface.
Electronics 11 03394 g012
Figure 13. Monitoring and securing production: oil manufacturer interface.
Figure 13. Monitoring and securing production: oil manufacturer interface.
Electronics 11 03394 g013
Figure 14. Monitoring and securing production: customer interface.
Figure 14. Monitoring and securing production: customer interface.
Electronics 11 03394 g014
Table 1. Blockchain technology in the agri-food collaboration area.
Table 1. Blockchain technology in the agri-food collaboration area.
Blockchain CompanyFood Company PartnersFood ProductsCountry
IBMWalmart, Carrefour, Nestlé, Unilever, Farmer Connect, Tysonmousseline, scallop, lettuce, mango, slices, chicken,USA, China, France
SAPTarget, Kellogs, Tate & Lyle, Johnsonville, Naturayellowfina tunaUSA
Foodlog IQTyson Foods, Subway, UK’s food, Standards Agencytomato, coffeeUSA
BloomBlocMalaysian Palm Oil Council (MPSOC)palm OilMalysia
Open SCNestlémilk and palm oilSwitzerland
Table 2. Existing approach comparison.
Table 2. Existing approach comparison.
ReferenceBlockchainTechnologyMulti-BlockchainEmbeddedDatabaseDevices
[23]Hyperledger IoT and GPSNoNoNoMobile
[24]NoSensors (N.A.)NoNoYesMobile
[25]NoSensors (N.A.)NoNoYesMobile
[26]Yes (N.A.)NFC, RFID, QRNoNoN.A.Mobile
[27]Oracle BlockchainN.A.NoNoN.A.Mobile
[28]Yes (N.A.)Sensors, RFIDNoNoNoMobile
[29]HyperledgerTemperatureNoNoNoMobile
[30]EthereumWSNNoYesYesWeb
Our approachEthereum and QuorumSensors, GPS, YesRaspberry PI and ArduinoYesMobile and Web
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Ktari, J.; Frikha, T.; Chaabane, F.; Hamdi, M.; Hamam, H. Agricultural Lightweight Embedded Blockchain System: A Case Study in Olive Oil. Electronics 2022, 11, 3394. https://doi.org/10.3390/electronics11203394

AMA Style

Ktari J, Frikha T, Chaabane F, Hamdi M, Hamam H. Agricultural Lightweight Embedded Blockchain System: A Case Study in Olive Oil. Electronics. 2022; 11(20):3394. https://doi.org/10.3390/electronics11203394

Chicago/Turabian Style

Ktari, Jalel, Tarek Frikha, Faten Chaabane, Monia Hamdi, and Habib Hamam. 2022. "Agricultural Lightweight Embedded Blockchain System: A Case Study in Olive Oil" Electronics 11, no. 20: 3394. https://doi.org/10.3390/electronics11203394

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