Authentication is essential to hold users accountable across online services. Conventional authentication systems rely on centralized architectures or third-party identity providers, which, however, introduce single points of failure, privacy concerns, and limited user autonomy. Conversely, fully decentralized authentication frameworks often struggle to provide reliable identity attestation mechanisms. This makes them vulnerable to Sybil attacks and self-asserted claims, while limiting their interoperability with trust-based systems. This paper presents dAuth, a hybrid blockchain-based authentication architecture based on Ethereum smart contracts to provide cryptographic tokens that enable authentication to services. These tokens, anchored to the smart contract, are derived by users from institutionally certified base credentials issued by an accredited verifying authority and enable authentication to services without further involvement of the authority. Each token is cryptographically bound to a specific service, constrained in scope and duration, and verifiable off-chain through data and cryptographic commitments provided by the user. No plaintext personal information is published on-chain: identity attributes are committed as cryptographic digests, which anchor certified identity data on-chain while keeping the underlying personal information private and auditable. This design removes the verifying authority from the authentication process, as all authentication steps are assisted by the user-controlled smart contract. The verifying authority’s role is limited to initial identity certification and exceptional update procedures. The result is a privacy-preserving and verifiable hybrid authentication framework that leverages the cryptographic security properties of the underlying blockchain infrastructure and inherits its scalability characteristics. The proposed design has been implemented and experimentally evaluated on the Ethereum platform, addressing public blockchain-specific challenges such as scalability constraints and transaction costs to ensure practical deployment.
Drones have proven effective for acquiring aerial imagery, and when equipped with onboard analysis tools, they can automatically identify objects of interest. Neural-network methods for image analysis typically require large training datasets and substantial computational resources. By contrast, algorithmic techniques can detect objects using simple features, such as pixel colors, thereby reducing the need for extensive training and computational resources. Once trained, both types of system can analyze images in a short time. In our experiments, each approach has distinct strengths. The YOLO-based detector is more accurate for complex-shaped objects, such as trees, whereas the pixel-color approach performs better on sparser objects. This paper proposes YOLO-C3, a hybrid system designed for onboard drone image processing. By leveraging the strengths of both YOLO-based and pixel-based approaches, YOLO-C3 balances detection accuracy with estimation confidence. Trained on Mediterranean imagery dataset, the system is optimized for identifying natural objects, including citrus groves and trees. To assess the robustness of the image classifier, a K-fold cross-validation is performed. Compared to existing models, YOLO-C3 detects a wider range of natural objects with high accuracy and minimal latency, achieving a processing speed of 0.01 s per image. By performing object detection locally, drones can adapt their trajectories to support emergency response, helping to map safe corridors and locate buildings where people may be awaiting rescue after a natural disaster.
The increasing adoption of renewable energy sources introduces significant variability in power generation, requiring effective strategies to ensure maintain grid stability. Incentive-based demand response programs provide a practical solution for balancing supply and demand, however disputes may arise over energy data integrity. The existing solutions frequently rely on centralized authorities, exposing a single point of failure, or high costs and privacy limitation of recording granular data on-chain. To address this challenge, we propose a decentralized framework that separates cloud storage from integrity certification. This system employs a community aggregator to collect high-frequency energy measurements, store the raw data in the cloud, while anchors unique cryptographic hashes for batch of raw data to a public blockchain. This process creates an auditable and tamper-evident record of data. By recording only hashes on chain, our approach achieves privacy and scalability. Evaluation using a real-world Australian dataset confirms that the system enables transparent dispute resolution, with blockchain transaction costs consistently representing less than 0.10% of the total incentives awarded to participants.
Refactoring is a software engineering practice that aims to improve code quality without altering program behavior. Although automated refactoring tools have been extensively studied, their practical applicability remains limited. Recent advances in Large Language Models (LLMs) have introduced new opportunities for automated code refactoring. The evaluation of such an LLM-driven approach, however, leaves unanswered questions about its effects on code quality. In this paper, we present a comprehensive empirical study on LLM-driven refactoring using GPT-4o, applied to 100 Python classes from the ClassEval benchmark. Unlike prior work, our study explores a wide range of class-level refactorings inspired by Fowler's catalog and evaluates their effects from three complementary perspectives: (i) behavioral correctness, verified through unit tests; (ii) code quality, assessed via Pylint, Flake8, and SonarCloud; and (iii) readability, measured using a state-of-the-art readability tool. Our findings show that GPT-4o generally produces behavior-preserving refactorings that reduce code smells and improve quality metrics, albeit at the cost of decreased readability. Our results provide new evidence on the capabilities and limitations of LLMs in automated software refactoring, highlighting directions for integrating LLMs into practical refactoring workflows.
Large language models (LLMs) have shown remarkable results when tasked with the analysis and production of texts or images and for captioning images. Aerial images differ from other images since they exhibit many natural objects that have a highly variable color range and no clear contours. This paper reports to what extent an LLM, i.e., Llama-4, can be tasked with the identification and captioning in aerial images of natural objects, such as tree categories, uncultivated land, and some man-made objects, such as roads. This valuable automation is needed to scan large areas and detect the parts for which a sudden maintenance or an emergency intervention is due. Tests on the chosen LLM were performed against a custom image dataset built to overcome the limited availability of such a domain-specific aerial image set. To evaluate the identification and captioning results, the accuracy, precision and recall metrics were computed. The results given by a cutting-edge variant of Llama-4, namely Maverick, reveal its strengths and weaknesses in this context. Although it is remarkable that an out-of-the-box tool can give assistance in such a complex observation and detection task, substantial progress is needed for such a model to improve accuracy and constitute a reliable support, as accuracy is at most 58.6% and recall is at most 56.1%.
Java 8 brought functional programming to the Java language and library, enabling more expressive and concise code to replace loops by using streams. Despite such advantages, for-loops remain prevalent in current codebases as the transition to the functional paradigm requires a significant shift in the developer mindset. Traditional approaches for assisting refactoring loops into streams check a set of strict preconditions to ensure correct transformation, hence limiting their applicability. Conversely, generative artificial intelligence (AI), particularly ChatGPT, is a promising tool for automating software engineering tasks, including refactoring. While prior studies examined ChatGPT’s assistance in various development contexts, none have specifically investigated its ability to refactor for-loops into streams. This paper addresses such a gap by evaluating ChatGPT’s effectiveness in transforming loops into streams. We analyzed 2132 loops extracted from four open-source GitHub repositories and classified them according to traditional refactoring templates and preconditions. We then tasked ChatGPT with the refactoring of such loops and evaluated the correctness and quality of the generated code. Our findings revealed that ChatGPT could successfully refactor many more loops than traditional approaches, although it struggled with complex control flows and implicit dependencies. This study provides new insights into the strengths and limitations of ChatGPT in loop-to-stream refactoring and outlines potential improvements for future AI-driven refactoring tools.
The analysis of aerial images to detect objects of interest is an active research field as its results can be very useful for planning crops, estimating gains and costs, etc. This paper proposes a novel way to distinguish among some categories of crops in a field, as well as parts representing man-made objects, such as roads and buildings. For this, advanced YOLO models were trained using an accurately labeled data set, then validated and tested to assess the accuracy and precision of the detection. The outcome of the best trained YOLO model shows high precision. Therefore, the trained model can be very useful in scanning areas and systematically detecting the state of crops. Moreover, the high-quality labeled image data set can be used as a reference set to test other approaches.
A high level of data integrity is a strong requirement in systems where the life of people depends on accurate and timely responses. In healthcare emergency response systems, a centralized authority that handles data related to occurring events is prone to challenges, such as, e.g., disputes over event timestamps and data authenticity. To address both the potential lack of trust among collaborating parties and the inability of an authority to clearly certify events by itself, this paper proposes a blockchain-based framework designed to provide proof of integrity and authenticity of data in healthcare emergency response systems. The proposed solution integrates blockchain technology to certify the accuracy of events throughout their incident lifecycle. Critical events are timestamped and hashed using SHA-256; then, such hashes are stored immutably on an EVM-compatible blockchain via smart contracts. The system combines blockchain technology with cloud storage to ensure scalability, security, and transparency. Blockchain technology provides the advantage of eliminating a trusted server, providing timestamping and reducing costs by forgoing such a service. The experimental results, using publicly available incident data, demonstrated the feasibility and effectiveness of this approach. The system provides a cost-effective, scalable solution for managing incident data while keeping a proof of their integrity. The proposed blockchain-based framework offers a reliable, transparent mechanism for certifying incident-related data. This fosters trust among healthcare emergency response system actors.
Modern supply chains still rely on centralized procurement platforms; hence they struggle with inefficiencies, lack of transparency, and limited adaptability to disruptions and market changes. This paper proposes a decentralized e-bidding platform for Business-to-Business (B2B) procurement, integrating blockchain technology and artificial intelligence driven Intelligent Autonomous Agents (IAAs) to ensure trustworthiness and efficiency. Blockchain’s immutable ledger provides transparency and security, while IAAs, powered by large language models (LLMs), automate operational bid evaluation and support strategic supplier selection. Simulations of two supply chain scenarios with varying information sharing levels have demonstrated that higher transparency enhances efficiency. Results confirm the suitability of IAAs for real-time decision-making and blockchain for secure automation in supply chain applications.
The rapid growth of renewable energy sources is accelerating the transition towards decentralised electricity systems. However, the variable nature of such sources and user consumption profiles present a significant challenge to achieving a sustainable energy balance. This paper introduces an innovative software system for adaptive energy management in Energy Communities, where a data-driven aggregator collects energy data, defines flexible threshold-based balancing strategies, and coordinates user actions by means of a gamified mobile application. Hence, users would become active participants in the balancing process. We evaluated the proposed system using simulations based on publicly available data. The results showed that our system can be effectively used to address energy fluctuations through coordinated data-driven responses, harnessing the potential of a renewable energy infrastructure.
Land Use Land Cover (LULC) classification plays a crucial role in the optimisation of agricultural lands to cope with global warming and increase crops. Many existing methodologies for LULC classification rely on machine learning algorithms and/or hyperspectral imaging, both of which necessitate extensive annotated datasets and substantial computational resources. Moreover, these methods could yield results that are in some cases inaccurate or lack interpretability. This paper introduces an innovative and effective approach to extract characterising colours from different land types. The proposed solution manages to automatically generate the sets of colours corresponding to categories of land, from a small set of annotated images, in just one iteration. Such colours were then used to classify lands in other images by analysing colour distributions and assessing pixel densities. The results demonstrated the precision and accuracy of our approach, which successfully classifies up to three categories of land across multiple images.
We face a decentralized renewable energy production scenario, where a large number of small energy producers, i.e., prosumers, contribute to a common distributor entity, who resells energy directly to end-users. A major challenge for the distributor is to ensure power stability, constantly balancing produced vs consumed energy flows. In this context, being able to provide quick restore actions in response to unpredictable unbalancing events is a must, as fluctuations are the norm for renewable energy sources. To this aim, the high scalability and diversity of sources are crucial requirements for the said balancing to be actually manageable. In this study, we explored the challenges and benefits of adopting a blockchain-based software architecture as a scalable, trustless interaction platform between prosumers’ smart energy meters and the distributor. Our developed prototype accomplishes the energy load balancing service via smart contracts deployed in a real blockchain network with an increasing number of simulated prosumers. We show that the blockchain-based application managed to react in a timely manner to energy unbalances for up to a few hundred prosumers.
Blockchain technology offers unique features, such as transparency, the immutability of data, and the capacity to establish trust without a central authority. Such characteristics can be leveraged to support the collaboration among several different software systems operating within the healthcare ecosystem, while ensuring data integrity and make electronic health records (EHRs) more easily accessible. To provide a solution based on blockchain technology, this paper has evaluated the main issues that arise when large amounts of data are expected, i.e., mainly cost and performance. A balanced approach that maximizes the benefits and mitigates the constraints of the blockchain has been designed. The proposed decentralized application (dApp) architecture employs a hybrid storage strategy that involves storing medical records locally, on users’ devices, while utilizing blockchain to manage an index of these data. The dApp clients facilitate interactions among participants, leveraging a smart contract to enable patients to set authorization policies, thereby ensuring that only designated healthcare providers and authorized entities have access to specific medical records. The blockchain data-immutability property is used to validate data stored externally. This solution significantly reduces the costs related to the utilization of the blockchain, while retaining its advantages, and improves performance, since the majority of data are available off-chain.
Distinguishing whether some code portions were implemented by humans or generated by a tool based on artificial intelligence has become hard. However, such a classification would be important as it could point developers towards some further validation for the produced code. Additionally, it holds significant importance in security, legal contexts, and educational settings, where upholding academic integrity is of utmost importance. We present EX-CODE, a novel and explainable model that leverages the probability of the occurrence of some tokens, within a code snippet, estimated according to a language model, to distinguish human-written from AI-generated code. EX-CODE has been evaluated on a heterogeneous real-world dataset and stands out for its ability to provide human-understandable explanations of its outcomes. It achieves this by uncovering the features that for a snippet of code make it classified as human-written code (or AI-generated code).
The Electronic Health Record (EHR) is a system for collecting and storing patient medical records as data that can be mechanically accessed, hence facilitating and assisting the medical decision-making process. EHRs exist in several formats, and each format lists thousands of keywords to classify patients data. The keywords are specific and are medical jargon; hence, data classification is very accurate. As the keywords constituting the formats of medical records express concepts by means of specific jargon without definitions or references, their proper use is left to clinicians and could be affected by their background, hence the interpretation of data could become slow or less accurate than that desired. This article presents an approach that accurately relates data in EHRs to ontologies in the medical realm. Thanks to ontologies, clinicians can be assisted when writing or analysing health records, e.g., our solution promptly suggests rigorous definitions for scientific terms, and automatically connects data spread over several parts of EHRs. The first step of our approach consists of converting selected data and keywords from several EHR formats into a format easier to parse, then the second step is merging the extracted data with specialised medical ontologies. Finally, enriched versions of the medical data are made available to professionals. The proposed approach was validated by taking samples of medical records and ontologies in the real world. The results have shown both versatility on handling data, precision of query results, and appropriate suggestions for relations among medical records.
Social media networks provide an aggregation of news and content, allowing users to share and discuss topics of greatest interest to them. Users can enrich the news by providing context and opinions that are useful to other users. Understanding topics of interest sheds light on the collective thinking of a group of individuals and offers important insights for exploring a given field. Among the fields of interest on social media networks, finance stands out. Automatically identifying and organizing the main issues that users discuss can be useful for multiple purposes, e.g., identifying the preferred types of loans could be useful for refining targeted advertising. Our work aims to identify and organize the topics discussed on a social media network that are related to the financial sector. For this, we propose an approach that consists of analyzing posts from Reddit communities oriented to finance. First, posts were gathered and cleaned to remove punctuation, links, and images. Then, textual similarity was computed to match posts with classes from dedicated ontologies designed for the financial sector. Finally, the populated ontology was analyzed to identify clusters of concepts. The results showed that the proposed approach and corresponding tool can summarize topics from a large number of Reddit posts using the identified classes. Over 70% of posts were linked to ontologies when considering both posts and comments, which shows that the automatic support given to posts related to financial concepts had a high degree of success.
A reliable communication system is one of the most crucial component in emergency response. Blockchain technology, known for its distributed and decentralized management, has been extensively used in various contexts, with interest also growing for its applications in the health-care sector. In this paper we propose and evaluate a system incorporating blockchain technology for initial emergency care interventions, i.e. ambulance dispatching. The approach allows a distributed management and coordination of emergency interventions, using smart contracts in place of a central authorithy. The major benefit is the increased ability to trace, and afterward give evidence of, the events occurring when handling emergency calls, without having to rely on a central authority. Moreover, the proposed system combines medical data records storing in the blockchain with additional cryptography to preserve the privacy of healthcare data, while ensuring availability, integrity and persistence.
When developing a distributed application, several issues need to be handled, and software components should include some mechanisms to make their execution resilient when network faults, delays, or tampering occur. For example, synchronous calls represent a too-tight connection between a client requesting a service and the service itself, whereby potential network delays or temporary server overloads would keep the client side hanging, exposing it to a domino effect. The proposed approach assists developers in dealing with such issues by providing an automatic tool that enhances a distributed application using simple blocking calls and makes it robust in the face of adverse events. The proposed devised solution consists in automatically identifying the parts of the application that connect to remote services using simple synchronous calls and substituting them with a generated customized snippet of code that handles potential network delays or faults. To accurately perform the proposed transformation, the devised tool finds application code statements that are data-dependent on the results of the original synchronous calls. Then, for the dependent statements, a solution involving guarding code, proper synchronization, and timeouts is injected. We experimented with the analysis and transformation of several applications and report a meaningful example, together with the analysis of the results achieved.
Sequential programs can benefit from parallel execution to improve their performance. When developing a parallel application, several techniques are employed to achieve the desired behavior: identifying parts that can run in parallel, synchronizing access to shared data, tuning performance, etc. Admittedly, manually transforming a sequential application to make it parallel can be tedious due to the large number of lines of code to inspect, the possibility of errors arising from inaccurate data dependence analysis leading to unpredictable behavior, and inefficiencies when the workload between parallel threads is unbalanced. This paper proposes an automatic approach that analyzes Java source code to identify method calls that are suitable for parallel execution and transforms them so that they run in another thread. The approach is based on data dependence and control dependence analyses to determine the execution flow and data accessed. Based on the proposed method, a tool has been developed to enhance applications by incorporating parallelism, i.e., transforming suitable method calls to execute on parallel threads, and synchronizing data access where needed. The developed tool has been extensively tested to verify the accuracy of its analysis in finding parallel execution opportunities, the correctness of the source code alterations, and the resultant performance gain.
Software testing is a much needed activity to ensure quality of software systems, and a large and effective test suite has the potential to identify defects. However, substantial effort is required when implementing test cases, due to the knowledge that developers have to acquire on the structure and behaviour of the system under test, and for the time needed to write many test cases to cover most of the execution paths. This paper proposes an automatic approach to generate templates of test cases. A generated test template consists of a JUnit assert, a method call and some default parameters, and can be customised by the developer, since generated code is easy to read. In the proposed approach, some selected industrial software repositories have been analysed to determine the most frequent assert used according to the return type of a method call. Then, such a frequency is used to guide the generation of new test cases for other software systems. The approach has been assessed on real-world Java projects, proving that generated test cases increase application code coverage considerably, while exhibiting readability and effectiveness.
Ian S. Welch合作论文数Victoria University;School of Mathematics;Statistics and Computer Science 2