Submitted:
12 August 2025
Posted:
12 August 2025
You are already at the latest version
Abstract
Keywords:
1. Introduction
1.1. Current Usage of UAVs in the Olive Oil Industry
1.2. Current Usage of Blockchain in the Olive Oil Industry
1.3. Current Usage of Distributed Systems Technologies in the Olive Oil Industry
1.4. Paper Contributions
- Secure Transmission Platform (STP): The development of a Secure Transmission Platform that leverages blockchain technology to encrypt and log each image captured and transmitted by the UAV ensures protection against unauthorized access and data tampering, enhancing data security in aerial operations.
- Efficiency Optimization: By exploring innovative data compression techniques and optimizing blockchain transaction speeds, the developed work aims to improve data transmission efficiency. This optimization is crucial for supporting real-time or near-real-time image analysis and decision-making processes in applications such as environmental monitoring and emergency response.
- Versatile Application: The project aims to demonstrate the practical applications of the integrated UAV-blockchain-IPFS STP in ana application domain that can be replicated in other ones including environmental monitoring, urban planning, and disaster management. This showcases the versatility of the technology and its potential to address real-world challenges in diverse industries.
- Interdisciplinary Collaboration: By emphasizing the consideration of ethical and privacy aspects in UAV operations and data management, the presented research work promotes interdisciplinary collaboration between unmanned hardware, distributed systems and wireless communications. This holistic approach enriches the project with new perspectives and challenges, driving additional innovations at the intersection of drone technology and blockchain.
1.5. Paper Structure
2. Related Works
2.1. Study of the State of the Art
2.2. Open Issues
3. Solution Design
- The UAV used to collect the images from the olive trees being monitored. A base station connected to the UAV via an 802.11 Wi-Fi interface facilitates the seamless transfer of the images collected by the UAV onto a hardware device. This hardware device acts effectively as the entry point to the blockchain network, ensuring that the data is securely and accurately logged. Additionally, the same hardware is shared with the IPFS network, providing a decentralized and distributed storage solution. This dual use of hardware not only enhances the efficiency of the system but also ensures the integrity and accessibility of the collected data, thereby optimizing the monitoring process and improving data management within the blockchain framework.
- The blockchain network, which is used to obtain the UAV images from the olive trees, ensures the integrity and security of the collected data by adding them as timestamped entries in Base64 format onto a Java-developed blockchain. This process not only preserves the chronological order of the images but also provides an immutable record, enhancing the traceability and verification of the agricultural monitoring data. The use of Base64 encoding facilitates the efficient storage and transmission of the images within the blockchain, while the Java-based implementation offers robust performance and compatibility with various systems and applications.
- The IPFS network enhances the system's decentralization and security. Each of the hardware devices that contains the blockchain node is equipped with an IPFS client, enabling a seamless switch to the IPFS network. This integration allows the interchange information from the blockchain to be formatted as a JSON array of objects written onto a file. This file is then distributed across the IPFS network, creating a second layer of decentralization. By leveraging IPFS, the system significantly improves data transparency and security. The decentralized nature of IPFS ensures that the data are not stored in a single location, reducing the risk of data loss or tampering. This dual-layer approach, combining blockchain and IPFS, provides robust data integrity, making the entire monitoring process more resilient and trustworthy. Additionally, the use of JSON arrays for data formatting enhances the readability and interoperability of the data, facilitating easier access and analysis by various stakeholders. This comprehensive system design underscores the importance of advanced technologies in creating secure and transparent data management solutions.
3.1. UAV Description
3.2. Blockchain Develoment and Description
- Secure transmission protocol: One of the key applications of blockchain technology in this UAV project is the development of a secure transmission protocol that embeds blockchain into the image transfer process. This protocol aims to encrypt and log every image captured and transmitted by the UAV, ensuring protection against unauthorized access and data tampering. By utilizing blockchain's decentralized and immutable nature, the protocol enhances the security of data transmission, making it resistant to unauthorized manipulation or interception.
- Data integrity and transparency: Blockchain technology enables the creation of a tamper-proof and transparent record of all image transfers, ensuring data integrity throughout the process. Each transaction is securely recorded on the blockchain, providing an auditable trail of image transfers and ensuring that the data remains unchanged and verifiable. This level of transparency and auditability enhances trust in the data being transmitted and received, crucial for applications requiring accurate and reliable information.
- Efficiency and Real-Time Analysis: In addition to security and transparency benefits, blockchain integration also focuses on optimizing data transmission efficiency to support timely analysis and real-time decision-making processes. By exploring innovative data compression techniques, optimizing blockchain transaction speeds, and creating a blockchain-based application that supports high-throughput, low-latency operations, research works aim to enable real-time or near-real-time image analysis and decision-making. This emphasis on efficiency ensures that the UAV system can process and transmit data quickly and effectively, enhancing its operational capabilities in various sectors.
- Versatile Applications and End-User Engagement: Through practical application and engagement with end-users, the performed research works aim to demonstrate the versatility and potential of the integrated UAV-blockchain-IPFS STP in addressing real-world challenges across different application domains that might or might not be strictly related to agriculture or olive tree farming. By showcasing the technology's practical applications and engaging with potential end-users to map out specific use cases, the project aims to highlight the system's capabilities and opportunities for addressing diverse operational needs.
3.3. IPFS Description
3.4. Solution Development
3.4.1. Block Class
- Initialization and Block Creation: When a new block is created, the image information (data and name) is passed to it, along with the hash of the previous block. This ensures that each block is linked to the block that precedes it, thus forming a continuous and immutable chain. The timestamp captured during block creation helps record when the block was added to the chain, providing temporal context that is vital for auditing and verification operations.
- Hash Calculation: The SHA-256 algorithm is used to generate a hash from the combination of the previous hash, the timestamp, and the image data. This hash acts as a unique digital signature of the block, ensuring that any alterations in the block's data are detectable. This is an essential part of the security provided by blockchain, as any change to a block will require the recalculation of all hashes of subsequent blocks, which is computationally prohibitive and serves as a strong deterrent against tampering.
3.4.2. Blockchain Class
- Blockchain Initialization: When the Blockchain class is instantiated, it is initialized with a genesis block. This is the first block on the chain and is automatically created with a previous dummy hash of "0" to mark the start of the chain. The genesis block is essential because it establishes the root of the blockchain from which all subsequent blocks will be linked.
- Add Blocks to the Chain: A method is provided to add new blocks to the blockchain. Every time a new block is created, for example, after the capture of a new image or transaction, this block is added to the end of the chain. The new block stores the hash of the last block in the chain, cryptographically linking them. This ensures that any modification to a previous block would invalidate all subsequent blocks, protecting the chain against tampering.
- Chain Access: The blockchain can be accessed using a method that returns the entire blockchain. This is useful for verifications, audits, and for applications that need to validate the integrity of the entire chain or extract historical data.
3.4.3. BlockchainUtil Class
- Archival Blockchain Data Storage: Data persistence management is facilitated using the saveBlockchainToFile method. In this method, you receive as parameters a Blockchain instance, which contains all the blocks, and a filename, which specifies the path of the file where you want to save the blockchain.
- Data Writing Process: When invoked, the method opens a BufferedWriter linked to the specified file. It is iterated over each block within the provided chain. For each block, the name of the image, the hash of the block, and the hash of the previous block are written to the file. Each block is visually separated by dashed lines to facilitate the readability of the resulting file.
3.4.4. ImageUtil Class
- Read Bytes: The method Files.readAllBytes allows for reading all bytes of a file located at a specified path. This is achieved by using the method Files.readAllBytes, which takes a Path object as an argument, representing the converted path.
- Base64 encoding: These bytes are then encoded into a Base64 string using the encodeToString method of the Base64.getEncoder() encoder. Base64 is an encoding method commonly used to convert binary data into ASCII text strings.
3.4.5. Main Class
- Directory Configuration: At the start of the main method, the base paths for images and results are set. The existence of the results folder is verified and, if it is not present, it is created.
- Dataset Processing: For each dataset specified in an array, it is processed. The start of this process is notified in the console for each dataset.
- Image Management and Blockchain: Within each dataset, image files are listed and processed. Each image is converted to Base64 format using a specific method of the ImageUtil class. With the image data already processed, a new block is created on the blockchain, which includes the image information along with the hash of the previous block in the chain. This newly created block is added to the blockchain.
- Blockchain Persistence: Once all images in a dataset have been processed and recorded on the blockchain, the entire state of the blockchain is saved in a file within the results folder.
3.4.6. Results



4. Solution Testing
4.1. Image Collection via UAV
4.2. Image Coding and Integration Onto the Blockchain
- Byte splitting: Binary data is divided into three-byte blocks, adding up to 24 bits.
- Conversion to 6-bit units: Each 24-bit block is then divided into four 6-bit units.
- Mapping to Base64 Characters: Each 6-bit unit is used as an index for a Base64 character array. Since 2^6 = 64, each 6-bit unit maps perfectly to a single character in the Base64 set.
- Padding: If the number of bytes of the data is not a multiple of three, the last one or two bytes are encoded by adding additional bits of padding (zeros) to form a full block of 24 bits. Then, one or two = characters are added to the end of the encoded string to indicate that padding has been applied.
4.3. Information Visualization via IPFS
- dag-pb UnixFS: Indicates that the object is stored using the UnixFS (Unix File System) format over the DAG-PB (Directed Acyclic Graph - Protocol Buffers) protocol. UnixFS is a file format used in IPFS to handle files and directories, while DAG-PB is a format for structuring data in IPFS.
- CID: "QmVunr399LCN7EpSje5knL9zoHkno4z2UmtPQTEBZLKmKe" is the Content Identifier of the file. The CID is a unique representation that identifies data in IPFS based on its content.
- Size: The file is 26 KB in size, which represents the space the file occupies within IPFS.
- Links: Shows that there are 0 links, indicating that this file has no sub-files or links to other nodes within the IPFS structure.
- Data: Details are provided about the data type, which in this case is a file, along with a representation in a byte array (Uint8Array).
- CID Information: This section breaks down the CID of the archive into its fundamental components, providing details on how the CID is coded and structured:
- 7.
- Multihash: Details how the hash of the content is constructed:
5. Conclusions and Future Works
Author Contributions
Conflicts of Interest
References
- Khan, N.; Ray, R.L.; Sargani, G.R.; Ihtisham, M.; Khayyam, M.; Ismail, S. Current Progress and Future Prospects of Agriculture Technology: Gateway to Sustainable Agriculture. Sustainability 2021, 13, 4883. [Google Scholar] [CrossRef]
- Nakamoto, S. Bitcoin: A Peer-to-Peer Electronic Cash System; 2008.
- Benet, J. IPFS - Content Addressed, Versioned, P2P File System. arXiv 2014, arXiv:1407.3561. [Google Scholar] [CrossRef]
- Abbas, A.; Zhang, Z.; Zheng, H.; Alami, M.M.; Alrefaei, A.F.; Abbas, Q.; Naqvi, S.A.H.; Rao, M.J.; Mosa, W.F.A.; Abbas, Q.; et al. Drones in Plant Disease Assessment, Efficient Monitoring, and Detection: A Way Forward to Smart Agriculture. Agronomy 2023, 13, 1524. [Google Scholar] [CrossRef]
- Ongena, Guido & Ravesteyn, Pascal & van Hilten, Mireille. Blockchain for Organic Food Traceability: Case Studies on Drivers and Challenges. Frontiers in Blockchain 2020, 3. [CrossRef]
- Rülicke, L. , Fehrle, F., Martin, A. et al. Exploring decentralized data management: a case study of changing energy suppliers in Germany. Energy Inform 2024, 7, 8. [Google Scholar] [CrossRef]
- Thomas van Klompenburg, Ayalew Kassahun, Cagatay Catal, Crop yield prediction using machine learning: A systematic literature review. Computers and Electronics in Agriculture 2020, 177, 105709. [CrossRef]
- Arena, A.; Bianchini, A.; Perazzo, P.; Vallati, C.; Dini, G. BRUSCHETTA: An IoT Blockchain-Based Framework for Certifying Extra Virgin Olive Oil Supply Chain. Sensors 2019, 19, 3257. [Google Scholar]
- Conti, M. EVO-NFC: Extra Virgin Olive Oil Traceability Using NFC Suitable for Small-Medium Farms. Agriculture 2022, 12, 265. [Google Scholar] [CrossRef]
- Gupta, R.; Shukla, A.; Mehta, P.; Bhattacharya, P.; Tanwar, S.; Tyagi, S.; Kumar, N. VAHAK: A Blockchain-based Outdoor Delivery Scheme using UAV for Healthcare 4. 0 Services. 2021.
- Kostas Peppas, Dimitrios Vlachos, and Dimitrios Kogias. Title: "An Ethereum-Based Distributed Application for Traceability in the Food Supply Chain: The Case of Greek Table Olives." Journal: Foods 2023, 12, 1–20. [CrossRef]
- Ben Ayed, R.; Hanana, M.; Ercisli, S.; Karunakaran, R.; Rebai, A.; Moreau, F. Integration of Innovative Technologies in the Agri-Food Sector: The Fundamentals and Practical Case of DNA-Based Traceability of Olives from Fruit to Oil. Plants 2022, 11, 1230. [Google Scholar] [CrossRef] [PubMed]
- Mercuri, F.; Dellacorte, G.; Ricci, F. Blockchain Technology and Sustainable Business Models: A Case Study in the Agri-Food Sector. Sustainability 2021, 13, 5619. [Google Scholar] [CrossRef]
- Bistarelli, S.; Faloci, F.; Mori, P.; Taticchi, C. Olive Oil as Case Study for the *-Chain Platform. In Proceedings of the DLT 2022: 4th Distributed Ledger Technology Workshop, Rome, Italy, 20 June 2022. [Google Scholar]
- Haque, B.; Rahman, M.; Islam, M.; Hossain, M. SmartOil: Blockchain and Smart Contract-Based Oil Supply Chain Management. IET Blockchain 2021, 1, 95–104. [Google Scholar] [CrossRef]
- Violino, S.; Paoletti, G.; Cini, E.; Pallottino, F.; Costa, C. Full Technological Traceability System for Extra Virgin Olive Oil: A Case Study in Italy. Foods 2020, 9, 624. [Google Scholar] [CrossRef] [PubMed]
- Abenavoli, L.M.; Cuzzupoli, F.; Chiaravalloti, V.; Proto, A.R. Traceability system of olive oil: a case study based on the performance of a new software cloud. Agronomy Research 2016, 14, 1247–1256. [Google Scholar]
- 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. [Google Scholar] [CrossRef]
- Air Parrot v2.0 documentation. [online]. Available at: https://www.parrot.com/assets/s3fs-public/2021-09/ar.drone2_user-guide_uk.pdf. [Accessed: 15 - Jul- 2024].
- Quora, "What is the Java Virtual Machine (JVM)? How does it enable platform independence in Java programming," [Online]. Available at: https://www.quora.com/What-is-the-Java-Virtual-Machine-JVM-How-does-it-enable-platform-independence-in-Java-programming. [Accessed: May-04-2024].
- The Knowledge Academy, "What is Robust Meaning in Java - Explained in Detail," [Online]. Available at: https://www.theknowledgeacademy.com/blog/robust-meaning-in-java/. [Accessed: May-04-2024].Wqeqwe.
- Kass. Creating Your First Blockchain With Java. Part 1. Accessed: Aug. 31, 2020. [Online]. Available: https://medium.com/programmersblockchain/create-simple-blockchain-java-tutorial-from-scratch6eeed3cb03fa.
- Rodriguez, J. , "TFMCabanas," GitHub. [Online]. Available at: https://github.com/jrodrimo/TFMCabanas. [Accessed: June-20-2024].














| Research work | Advantages | Disadvantages |
|---|---|---|
| Arena et al. [8] | Access to a tamper-proof history of the product via smartphones, IoT sensors for quality control, and meet the requirements set by European laws | Usage of UAVs or application layer distribution (IPFS-like solution) is not considered |
| Conti et al. [9] | NFC provides detailed information on product quality fostering loyalty | No imagery or application layer distribution (IPFS-like solution) |
| Gupta et al. [10] | Ultra-low latency, ultra-high reliability, improved scalability. Usage of IPFS guarantees a further layer of decentralization | Scope differs from the one that is provided by our manuscript |
| Kechagias et al. [11] | Traceability and transparency, particularly for small-scale producers and low-income countries | Relays on packaging information rather than olives trees |
| Bean Ayed et al. [12] | Underscores the transformative potential of integrating innovative technologies in the agri-food industry | Scope differs from the one that is provided by our manuscript |
| Mercuri et al. [13] | Increased transparency, trust-building with customers, and reduced transactional costs | Usage of UAVs or application layer distribution (IPFS-like solution) is not considered |
| Bistarelli et al. [14] | Represents complex supply chain processes, generates solidity code, and provides a user-friendly interface | Usage of UAVs or application layer distribution (IPFS-like solution) is not considered |
| Haque et al. [15] | Real-time data updates, customer access to information, and the elimination of intermediaries | Usage of UAVs or application layer distribution (IPFS-like solution) is not considered |
| Violino et al. [16] | Blockchain technology and QR codes to track the production process from olive tree to EVOO bottle | Usage of UAvs is left for future works. Application layer distribution (IPFS-like solution) is not considered |
| Abenavoli et al. [17] | De facto middleware monitoring critical stages of olive oil production | Usage of UAVs or application layer distribution (IPFS-like solution) is not considered |
| Ktari et al. [18] | Blockchain throughout supply chain. Usage of Smart Contracts | Usage of UAVs or application layer distribution (IPFS-like solution) is not considered |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).