Next Article in Journal
Study on Rapid Detection of Pesticide Residues in Shanghaiqing Based on Analyzing Near-Infrared Microscopic Images
Next Article in Special Issue
IoTTPS: Ensemble RKSVM Model-Based Internet of Things Threat Protection System
Previous Article in Journal
A THD-Based Fault Protection Method Using MSOGI-FLL Grid Voltage Estimator
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

COSIBAS Platform—Cognitive Services for IoT-Based Scenarios: Application in P2P Networks for Energy Exchange

by
Diego Gutiérrez Martín
1,
Sebastian Lopez Florez
1,2,*,
Alfonso González-Briones
2 and
Juan M. Corchado
1,2,3,4,*
1
Air Institute, IoT Digital Innovation Hub (Spain), Carbajosa de la Sagrada, 37188 Salamanca, Spain
2
Grupo de Investigación BISITE, Departamento de Informática y Automática, Facultad de Ciencias, Instituto de Investigación Biomédica de Salamanca, Universidad de Salamanca, Calle Espejo 2, 24.2, 37007 Salamanca, Spain
3
Department of Electronics, Information and Communication, Faculty of Engineering, Osaka Institute of Technology, Osaka 535-8585, Japan
4
Pusat Komputeran dan Informatik, Universiti Malaysia Kelantan, Karung Berkunci 36, Pengkaan Chepa, Kota Bharu 16100, Malaysia
*
Authors to whom correspondence should be addressed.
Sensors 2023, 23(2), 982; https://doi.org/10.3390/s23020982
Submission received: 3 November 2022 / Revised: 9 January 2023 / Accepted: 11 January 2023 / Published: 14 January 2023

Abstract

:
The revolution generated by the Internet of Things (IoT) has radically changed the world; countless objects with remote sensing, actuation, analysis and sharing capabilities are interconnected over heterogeneous communication networks. Consequently, all of today’s devices can connect to the internet and can provide valuable information for decision making. However, the data collected by different devices are in different formats, which makes it necessary to develop a solution that integrates comprehensive semantic tools to represent, integrate and acquire knowledge, which is a major challenge for IoT environments. The proposed solution addresses this challenge by using IoT semantic data to reason about actionable knowledge, combining next-generation semantic technologies and artificial intelligence through a set of cognitive components that enables easy interoperability and integration for both legacy systems and emerging technologies, such as IoT, to generate business value in terms of faster analytics and improved decision making. Thus, combining IoT environments with cognitive artificial intelligence services, COSIBAS builds an abstraction layer between existing platforms for IoT and AI technologies to enable cognitive solutions and increase interoperability across multiple domains. The resulting low-cost cross platform supports scalability and the evolution of large-scale heterogeneous systems and allows the modernization of legacy infrastructures with cognitive tools and communication mechanisms while reusing assets.

1. Introduction

COSIBAS seeks to take the next step in IoT-based applications and solutions, integrating context-aware computing [1] to address a new challenge regarding incompatibility between devices. Semantics has been a key enabler towards a complete and general description of connected objects by removing relational ambiguities and improving context awareness [2,3]. Semantic descriptions that relate an object in a virtual form lead to innate aggregate capabilities in physical devices, which facilitates dynamic process updating. The contextual information present in physical devices is not necessarily static in time; thus, devices require semantic richness with more contextual details as they interact with applications and other reasoning engines [4,5]. The constant evolution of IoT has resulted in a certain level of complexity due to the large number of heterogeneous object implementations, sensing data and suggested services [6].
Therefore, objects from different manufacturers are connected to each other, and the generated data have different encoding formats leading to a complex data exchange task, including semantic heterogeneity [7]. The variety of these objects and their constantly changing requirements and deployment contexts further complicate their management and configuration tasks. These challenges arise due to the absence of a unified and standardized model for IoT devices along with their data and services. Therefore, semantic concepts play a key role in IoT due to their efficiency in addressing issues of heterogeneity [8,9], interoperability and data interpretation [10].
The establishment of knowledge-level interoperability between data from other fields, such as climatic analysis, has recently made significant strides, according to researchers in the field of statistical web technology [11,12]. According to the studies, ontology is essential to the structure of the semantic web since it serves as a specialized language for modeling domains shared by heterogeneous entities [13]. The addition of semantics to the data sent between the parties enables a clear understanding of the knowledge shared by both parties, which improves the effectiveness of data exchange by removing misunderstandings [14,15].
In this study, we propose a solution to these problems, which consists of creating heterogeneous data sources and analyzing them using AI algorithms to increase the overall efficiency of the target system, which will consider the devices and services currently on the market by adapting the intelligence layer, making use of semantics to support inter-object communications and without forcing other solutions to adapt. The use of these technologies makes it possible to strategically explore the semantic relationships between the different energy devices in a network, allowing knowledge to be spread throughout the network and easily recognized by the end users.
At the same time, this allows simulating the processes of a P2P energy trading system within a smart city in order to optimize the transfer of energy between producers and consumers. Cognitive services will be able to interpret and evaluate the state of the entire system with the aim of building and performing transactions in a cognitive model, which is the basis for interaction, decision-making and support for intelligent mechanisms that enable seamless interoperability.
In summary, the novel contributions of this work include the development of a semantic system that can simulate what the energy negotiation process would look like in a real environment using data from external energy services. A case study examining the results of the work packages will be tested in a model that allows for the simulation of these processes so that the feasibility of these hypotheses can be demonstrated using real data in a simulated environment.
The remainder of this article is structured as follows: Section 2 presents the relevant literature, including comparisons between different methods as well as adoptions of outside ideas. Section 3 contains the architecture, including a description of the architecture in detail. Section 4 focuses on the complete workflow proposed for the machine-learning technique for solar-power-generation prediction. Section 5 discusses the machine-learning problem for wind-power-generation prediction. Section 6 describes the trading stage, and lastly, in Section 7, we summarize our work and outline possible future work.

2. Related Work

A general description is provided of the most recent IoT applications in semantic representation approaches. First, we study the proposed approaches in the IoT in general. Second, we are interested in approaches that define the semantics of IoT-based systems; therefore, in this section, we indicate recent survey papers on these topics.
The first study in this research area was published in 2012 by Barnaghi et al. [3] who explained the importance of defining and presenting IoT semantics to resolve the heterogeneity and ambiguity of the large amount of data collected through connected objects and to ensure interoperability between IoT systems. From this perspective, the authors present an overview of some existing ontologies designed to represent sensors and their data, such as the O&M and SSN ontologies.
In [16], an overview of SWT used in different layers of IoT systems is emphasized, along with important ontologies for developing IoT applications and services—namely, SSN [17], IoT Ontology [18] and IoT-O [19]. Following this dynamic, many IoT ontologies have been proposed by researchers with the goal of achieving semantic interoperability between heterogeneous IoT devices. LOV4IoT [20] provides a catalog of over 400+ ontologies spanning different domains, such as IoT, WoT, transportation, health, weather and food. Of these, approximately 27+ ontologies were developed explicitly to address IoT interoperability. However, they do not follow Semantic Web best practices, making them difficult for developers to adopt.
A notable exception is the W3C SSN ontology [17], which was jointly developed by several research organizations and became the W3C standard ontology for semantic sensor networks in 2017. From this, around 24 IoT ontologies were derived, which referenced the SSN concept showing its wide acceptance and usage. SAREF is a smart device reference ontology developed with the support of the European Commission [21]. It provides modular building blocks for representing devices in a smart home environment, such as lists of functions, commands and states that can be combined to create complex functions in a single device. Recently, a new field of research, the "Internet of Things" (WoT), has begun to connect internet-connected objects (ICOs) to networks, allowing for transparent access to data.
Girard et al. [22] clearly mentioned in their study that IoT itself is not sufficient to solve the semantic interoperability problem and needs the help of ontologies to conceptualize it better. The Semantic Web of Things (SWoT) [23,24] is the most recent field of research that aims to combine the power of Semantic Web and WoT technologies to achieve interoperability [25,26,27,28].

3. Architecture

The COSIBAS design is built on the fundamental FIWARE architecture for IoT, to which the COSIBAS platform has added additional generic components. This section displays many architectural perspectives using Kruchten’s 4 + 1 model, or "quote Kruchten." The "Recommended Practice for Architecture description of Software-Intensive Systems" standard published by IEEE 15 and used to describe the architecture from many angles is compatible with this paradigm. By segmenting an architecture into multiple views according to the goal interest, the authors gave a simpler view of it. Understanding the system, how to maintain it and how it develops is made easier by this description. The many architectural elements and their interrelationships are depicted in the following diagram.
Figure 1 shows a diagram that groups the different components in colors differentiating the generic components, specific components, the context broker and the dashboards and external services.
  • Generic Components “A platform of open source software components which can be used jointly or in combination with third-party components to build platforms that aid in the development of intelligent solutions in a fast, easy and inexpensive way” [29].
  • Specific Components Well-defined components designed to assist the application development plan in other use cases.
  • Context Broker A single component required to be considered a FIWARE solution.
  • External Services and Dashboard Components responsible for creating requests to the system and displaying their responses.
For a user or a city or port service to make a request, it must first be authenticated in the system. The Idm Auth component checks if the user exists in the system. If the user does not exist, the system denies user access. Once authenticated, the user sends a request to the system. This request is evaluated by the Idm Auth component to validate if the user has permissions to perform the action. If the user is not authorized, the system denies the request. Otherwise, the Idm Auth component forwards the user’s request to the Context Adapter component.

Summary of Useful Web Approaches

This section covers the technology required to create the web-based content creator.
The Context Adapter is the component that creates a context entity from the received request. Before sending this entity to the Context Broker component, the Context Adapter checks if there are subscriptions in the context for the type of entity to be created. To do this, it performs a query to the Context Broker component. If this does not exist, the Context Adapter creates the subscriptions and sends them to the Context Broker component. Once the existence of the subscriptions has been verified, the Context Adapter sends the entity it has created to the Context Broker component. On the other hand, this component creates and sends a response entity to the end user from the notification received from the Context Broker.
The Adapter is the component that receives a notification when an entity is created. Contextually, it corresponds to the request coming from a port service. Using the received notification, this component obtains information from the provider, required for cognitive analysis. Using this information, it creates the entity or entities in context for cognitive analysis. Before sending these entities to the context, the Adapter checks if there is a subscription in the context for each of the entities. To do so, it performs the corresponding query to the Context Broker component. If there is none, the Adapter creates the corresponding subscription and sends it to the Context Broker component. Once the existence of the subscriptions is verified, it sends the created entities to the Context Broker component.
Once the context entities required for cognitive analysis have been sent, a context entity is created corresponding to a cognitive analysis request. Again, before sending this entity to the Context Broker component, it is checked if a subscription exists in the context for this type of entity. If this does not exist, the system creates the corresponding subscription and sends it to the Context Broker component. Once the subscription is verified, it sends the entity corresponding to the cognitive analysis request to the Context Broker component.
The IoT component receives information from IoT devices and transforms it into context entities. Before sending one of these entities to the Context Broker component, the IoT component checks if there are subscriptions in the context for the type of entity to be sent. To do so, it performs the corresponding query to the Context Broker component. In case there is none, it creates a subscription for the type of entity to be sent and sends it to the Context Broker component. Once the subscriptions have been verified, it sends, to the Context Broker component, the context entity created from the information received from the IoT device. The Short Term Historic Data is the component that receives a notification from the Context Broker component each time an entity of the Adapter component and the IoT component is created in the context. From the received notification, it stores in a database the information required by the history data.
This information can be checked later by the user by visualizing it on a dashboard. The Semantic Component is the component that receives a notification from the Context Broker component each time an entity of the Adapter component and the IoT component is created in the context. It extracts the context entity included in the received notification and searches the linked database for the meaning of each entity attribute. Then, the Semantic Component adds a new metadata attribute to the entity attribute with the found meaning. Once it has added a meaning to each of the entity attributes, it sends the modified context entity back to the Context Broker component.
The Congnitive Component is the component that receives a notification from the Context Broker component each time a cognitive analysis request entity is created in the context. From the received notification, this component obtains, from its linked database, the information corresponding to the cognitive service to be executed. Once it has this information, it creates an entity that is sent to the corresponding cognitive service. The cognitive service receives an entity corresponding to a cognitive analysis request. This entity contains the identifiers of the entities required for cognitive analysis to be executed. For each of these identifiers, the corresponding context entity is obtained from the Context Broker component. Once all the necessary information is available, the cognitive analysis is performed.
As a result of the analysis, a response is created and sent. A context entity is created from this response. Before sending this entity to the Context Broker component, it is checked if a subscription for this type of entity exists in the context. If it does not exist, a subscription is created and sent to the Context Broker component. Once the subscriptions have been verified, the context entity corresponding to the result of the cognitive analysis is sent to the Context Broker component. The CEP is the component that receives a notification each time a context entity is created from the cognitive component. From the received notification, it extracts the information required by the business rule and executes the business rule. As a result of the rule execution, a context entity is created and sent to the Context Broker component, and the corresponding user or service is sent for viewing.

4. Machine-Learning Models for Wind-Power-Generation Prediction

In this section, we are going to study the different machine-learning models that allow prediction of the production of energy generated through windmills, using for this purpose climatological information obtained from meteorological APIs. Initially, we decided to make a previous selection of algorithms using libraries, such as pycaret, which generate a list of the algorithms that can give the best results for a previously selected data set.
As we can see in the previous image, pycaret shows us a Table 1 with different algorithms in which it has tested our data set for the previously selected characteristic, that we specifically want to predict from that data set. The algorithm with the best results was the Light Gradient Boosting Machine, which also shows us the hyperparameters it has selected for this test.

4.1. Study of the Dataset

Before starting to explain the machine-learning models that we finally decided to use, it is necessary to prepare the dataset with which we are going to train, validate and test our models. This process is key to achieving the expected results in our models. The dataset that was used for this project was taken from a scada system of windmills that are installed in Turkey and are generating energy [30,31].
The dataset has five columns, which are:
  • Date/Time Time at which the measurement was taken, the measurements were taken at 10 minute intervals.
  • LV Active Power (kW) The power generated by that mill at that time.
  • Wind Speed (m/s) The wind speed at the height of the windmill axis.
  • Theoretical Power Curve (KW) The theoretical power that the windmill should generate for that wind speed (provided by the manufacturer).
  • Wind Direction (°) The wind direction at the windmill axis (The windmill is automatically rotated to that direction).
For the study of this dataset, more columns have been added [30,31]:
  • Month A month column was added based on the date column.
  • Mean Wind Speed In this new column, the wind speed is rewritten in 0.5 intervals—for example: if the wind speed is between 3.25 and 3.75, it becomes 3.5; and if the wind speed is between 3.75 and 4.25, it becomes 4.
  • Mean Wind Direction In this new column, the wind direction is rewritten in 30 degree intervals—for example: for wind directions between 15 and 45, it would become 30; or for wind directions between 45 and 75, it would become 60.
  • Direction In this column, we rewrite the Mean Wind Direction column to replace its values with letters, e.g., 0 = N, 30 = NNE, 60 = NEE and 90 = E, …
Following this, we found that most of the wind speed values were between 3.5 and 25.5, and thus we eliminated the values that are outside this range. We also observed that there were a small amount of values in which the wind speed was higher than 3.5 but the energy generated was 0—this means that the windmill is out of service, and thus they were eliminated as well.
The distribution of the values for the respective columns is shown below. The analysis used to remove wind data when the turbine is operating abnormally, such as when there is wind reduction and blade damage, will mitigate the negative effects of these abnormally high values in the training phases of the power curve model. However, it cannot be guaranteed that various types of outliers will be found and handled during the data preprocessing phase. As a result, certain hidden anomalies will still be present in the data. As a result, the distribution of errors in the modeled data for the harmonic power curve will be asymmetrical as seen in Figure 2.
Below is a graph showing the wind speed and wind direction for the different measurements: The annual frequency distribution of observed wind direction and wind speed representing the relatively calm wind field at the upper boundary is seen in the wind rose in Figure 3. This analysis reveals the main flow directions in the area to be northeast, east and southwest, which is typical for the area. Therefore, the model study below focuses on the main wind directions northeast (45°), east (25°) and southwest (250°, as the 270° and 225° wind direction intervals are represented with similar frequency).

4.2. Algorithms Used Wind

Once the dataset was prepared, the prediction process began. In the first instance, we tested the algorithms indicated by the pycaret library—those shown in Figure 4—with the respective parameters indicated by the library. In this way, we obtained an average score of 80–85%. In order to improve the performance of the algorithms, we selected those algorithms that exceeded 88% by retouching their hyperparameters and selected other algorithms, not indicated by pycaret, whose hyperparameters were modified, obtaining the following results.

5. Machine-Learning Models for Solar-Power-Generation Prediction

In this section, we study the different machine-learning models that will allow us to predict the production of energy generated through solar panels using, for this purpose, climatological information obtained from meteorological APIs. Initially, we decided to make a previous selection of algorithms using libraries, such as pycaret, which generate a list of the algorithms that can give the best results for a previously selected data set.
As we can see in the previous image, pycaret shows us a Table 2 with different algorithms in which it has tested our data set for the previously selected characteristic that we specifically want to predict from that data set. The best performing algorithm was CatBoostRegressor.

5.1. Study of the Dataset

Before starting to explain the machine-learning models that we finally decided to use, it is necessary to prepare the dataset with which we are going to train, validate and test our models. This process is key to achieve the expected results in our models.
The dataset used for this project was obtained from a solar panel farm in Berkeley, CA [32].
The dataset has 16 columns, which are as follows:
  • Day of Year Day of current year [0–365].
  • Year Year in which the measurement is taken.
  • Month Month of the year in which the measurement is taken.
  • Day Day of the month in which the measurement is taken.
  • First Hour of Period Measurements are taken in 3 h intervals, i.e., each measurement represents the value of a 3 h interval, and this column represents the time of day when that 3 h period begins.
  • Daylight Represents whether the time that measurement was taken was in the daytime or nighttime.
  • Distance to Solar Noon A measure representing the distance to the time of day when the sun is at the highest point in the sky for the location where the measurements are taken [0–1].
  • Average Temperature (Day) Average of the temperature of the day when the measurement is taken.
  • Wind Direction (Day) Average wind direction for the day the measurement is taken.
  • Average Wind Speed (Day) Average wind speed for the day the measurement is taken.
  • Sky Cover Indicates how clear the sky is.
  • Visibility Indicates the visibility.
  • Relative Humidity Relative humidity of the environment.
  • Wind Speed (Period) Average wind speed of the period in which the measurement is taken.
  • Barometric Pressure (Period) Average barometric pressure of the period in which the measurement is taken.
  • Generated Amount of power generated in that period.
We observe the relationship between the different columns of the dataset through a heat map Figure 5.

5.2. Algorithms Used Solar

Once the dataset was prepared, the prediction process began. In the first instance, we tested the algorithms indicated by the pycaret library—those shown in Figure 6—with the respective parameters indicated by the library. In this way, we obtained an average score of 83–87%, in order to improve the performance of the algorithms, we selected those algorithms that exceeded 88% by retouching their hyperparameters and selected other algorithms, not indicated by pycaret, whose hyperparameters were modified, obtaining the following results:

6. Trading

As for the negotiation part, an algorithm based on the sealed envelope auction was developed. In this auction, bidders put the price of the auctioned object in an envelope, and the one who has written the highest price wins the auction. For adaptation to the digital format, features have been added for the benefit and convenience of users to facilitate the process of bidding and selling. In the following, the process of putting up for sale and auctioning the different energy lots is detailed. First, a producer divides its power generation forecast into lots. These lots are automatically assigned the initial bid price and the maximum price that they are able to reach on the market.
These prices are set by Red Eléctrica de España and provided by eSios through its API. However, the sale prices to small electricity consumers are set after 8:00 PM for the following day, which limits energy trading between 8:00 PM and 12:00 PM. Faced with this drawback, a trading process capable of operating in that time interval had to be created. A system that would force a multitude of users to participate simultaneously in several auctions in which they were interested in such a short period of time each day would not be successful.
Therefore, it was determined that the sealed bid auction provided more advantages than the traditional English auction, having to place a single bid. However, setting a single bid for all the energy lots in which the user would be interested would greatly limit the benefit that could be obtained, either by setting the price too high or too low. To address the regret factor present in sealed bid auctions, the blind bid was adapted to be treated as a maximum price willing to bid per lot if necessary. Although this did not completely solve the problem, it did serve to alleviate the effect of regret.
With this, it is possible to automate the bidding process to a certain extent, reducing the interaction required by the user. In this negotiation process, the user is given the freedom to participate in all the auctions in which they can supply the energy need. This means that the consumer can participate in all auctions whose energy lot provides an amount less than or equal to their energy requirements. This avoids wasting energy on much lower requirements with lots of high energy input.
Following pre-negotiation, the auction process of an energy lot begins. First, it is verified that the users meet the necessary requirements to participate in the lot auction, these requirements being an energy requirement lower or equal to the energy supply auctioned and a closed bid equal to or higher than the initial bid of the lot. After verification, the negotiation continues. In the next stage, three situations may occur:
  • No bidders for the auction: the auction fails and no one wins the lot.
  • Single bidder for the auction: The consumer wins the auction with the starting bid price.
  • Multiple bidders for the auction: The winner selection process begins.
In the third situation, if there is only one bidder with the maximum bid, this consumer wins the auction with a bid price one unit higher than the second highest bid. In this way, we partially mitigate the regret factor and achieve a greater benefit for the consumer. In the event that there are two or more bidders with the highest bid, we proceed to a random winner selection process among the highest bidders. The resulting bidder wins the auction with the price of their sealed bid.
After winning an auction, the energy contributed from the lot is subtracted from the winner’s energy requirement, so that they can continue to participate in the remaining auctions until their needs are met. The auction result is then sent to the Orion Context Broker for processing and storage.

7. Discussion of Future Research Directions

The energy industry is on the verge of a true internet revolution. It intends to bring a new era of web interaction through the adoption of the Semantic Web, with significant changes in the way developers and content creators use it. This web will make web services, applications and power exchange agents more intelligent and even provide new autonomous forms of rapid response to random changes that, under human conditions, would be unresponsive through the use of an AI system. Despite the tremendous amount of innovation, its adoption in the Smart City may bring considerable challenges.
The problem with "web semantics" is that it requires a level of implementation commitment from web developers and content creators that will not be easy to achieve. In order for the semantic web developer community to help contribute to future energy development, it is essential to point them in the right direction. The following are the main challenges facing Semantic Web Development in general: content accessibility, ontological expansion, scalability, multilingualism and visualization, of which the vast majority are addressed in this research.
One of the greatest challenges associated with the adoption of the Semantic Web is the vulnerability of connected data. In the course of the research, this difficulty was discovered to exist, and future research efforts are proposed. All of a user’s personal information and token exchange records are stored and connected at one point, and a malicious party could take control of these records by corrupting the data and compromising the functionality of the system.
In addition, we intend to work with more semantic methods, such as GeoSPARQL and temporal RDF, as well as a wider range of energy-related datasets, such as remote sensing data, sensing data, energy markets and political data, with the goal of developing a robust and interoperable ontology model capable of serving a nearly complete knowledge-sharing energy data ecosystem spanning multiple domains, thereby, improving the understanding of the decentralized energy distribution mechanism as well as investigating the use of blockchain technology for peer-to-peer energy markets given that it has demonstrated a significant potential for acceptance in the P2P energy market with an increasing number of businesses adopting the technology and changing their business models [33,34].

8. Conclusions

COSIBAS seeks to develop an intelligent solution across multiple sectors based on open standards and open-source paradigms that provides process automation across the value chain and easy integration with other applications and services. Ensuring interoperability between heterogeneous IoT systems by defining a unified vocabulary to be shared between IoT devices and systems, based on contextual information management services and Big Data in the cloud, this study detailed and analyzed semantic-based approaches for IoT-domain representation, context management, data sharing and the definition of harmonized data models.
This last aspect is crucial, proof of which is that the API has been adopted as the first open license API standard, intended to provide the basic artifact for portability and interoperability in smart cities. The AI and ML platforms discussed in this paper provide a cloud infrastructure through which they offer a variety of services for AI/ML with algorithms that are already trained for certain functionalities within a proprietary solution. Therefore, this limits both their extensibility and their interoperability with other platforms to external providers.
On the other hand, the use of the infrastructure provided by these platforms implies a cost for the user that varies according to the usage, volume and versions of the different products/services offered. COSIBAS allows developers to add functionality aimed at providing cognitive capabilities without losing the main features of modularity, flexibility, extensibility, interoperability, standardization and free open source, making this IoT platform one of the leading ones in the market.

Author Contributions

Conceptualization, D.G.M. and A.G.-B.; Formal analysis, D.G.M. and A.G.-B.; Funding acquisition, D.G.M.; Investigation, D.G.M., A.G.-B., J.M.C. and S.L.F.; Methodology, D.G.M., A.G.-B., J.M.C. and S.L.F.; Project administration, J.M.C.; Software, D.G.M.; Visualization, D.G.M.; Writing—original draft, D.G.M., A.G.-B. and S.L.F. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the project “XAI, Sistemas Inteligentes Auto Explicativos creados con Módulos de Mezcla de Expertos”, ID SA082P20, financed by Junta Castilla y León, Consejería de Educación and FEDER funds. The IoTalentum Project within the Framework of Marie Skłodowska-Curie Actions Innovative Training Networks (ITN)-European Training Networks (ETN), which is funded by the European Union Horizon 2020 Research and Innovation Program under Grant 953442.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Acknowledgments

This work was supported by the project “XAI, Sistemas Inteligentes Auto Explicativos creados con Módulos de Mezcla de Expertos”, ID SA082P20, financed by Junta Castilla y León, Consejería de Educación and FEDER funds. This work was supported by the IoTalentum Project within the Framework of Marie Skłodowska-Curie Actions Innovative Training Networks (ITN)-European Training Networks (ETN), which is funded by the European Union Horizon 2020 Research and Innovation Program under Grant 953442.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Studer, R.; Benjamins, V.R.; Fensel, D. Knowledge engineering: Principles and methods. Data Knowl. Eng. 1998, 25, 161–197. [Google Scholar] [CrossRef] [Green Version]
  2. Rhayem, A.; Mhiri, M.B.A.; Gargouri, F. Semantic Web Technologies for the Internet of Things: Systematic Literature Review. Internet Things 2020, 11, 100206. [Google Scholar] [CrossRef]
  3. Barnaghi, P.; Wang, W.; Henson, C.; Taylor, K. Semantics for the Internet of Things: Early progress and back to the future. Int. J. Semant. Web Inf. Syst. (IJSWIS) 2012, 8, 1–21. [Google Scholar] [CrossRef] [Green Version]
  4. Ruta, M.; Scioscia, F.; Di Sciascio, E.; Rotondi, D. Ubiquitous Knowledge Bases for the Semantic Web of Things. First Internet of Things International Forum. 2011. Available online: https://sisinflab.poliba.it/publications/ubiquitous-knowledge-bases-for-the-semantic-web-of-things/ (accessed on 8 December 2020).
  5. Jara, A.J.; Olivieri, A.C.; Bocchi, Y.; Jung, M.; Kastner, W.; Skarmeta, A.F. Semantic web of things: An analysis of the application semantics for the iot moving towards the iot convergence. Int. J. Web Grid Serv. 2014, 10, 244–272. [Google Scholar] [CrossRef]
  6. Garcia-de Prado, A.; Ortiz, G.; Boubeta-Puig, J. COLLECT: COLLaborativE ConText-aware service oriented architecture for intelligent decision-making in the Internet of Things. Expert Syst. Appl. 2017, 85, 231–248. [Google Scholar] [CrossRef] [Green Version]
  7. Jabbar, S.; Ullah, F.; Khalid, S.; Khan, M.; Han, K. Semantic interoperability in heterogeneous IoT infrastructure for healthcare. Wirel. Commun. Mob. Comput. 2017, 2017, 9731806. [Google Scholar] [CrossRef] [Green Version]
  8. Ullah, F.; Habib, M.A.; Farhan, M.; Khalid, S.; Durrani, M.Y.; Jabbar, S. Semantic interoperability for big-data in heterogeneous IoT infrastructure for healthcare. Sustain. Cities Soc. 2017, 34, 90–96. [Google Scholar] [CrossRef]
  9. Xiao, G.; Guo, J.; Da Xu, L.; Gong, Z. User interoperability with heterogeneous IoT devices through transformation. IEEE Trans. Ind. Inform. 2014, 10, 1486–1496. [Google Scholar] [CrossRef]
  10. Perera, C.; Zaslavsky, A.; Christen, P.; Georgakopoulos, D. Context aware computing for the internet of things: A survey. IEEE Commun. Surv. Tutor. 2013, 16, 414–454. [Google Scholar] [CrossRef] [Green Version]
  11. Wu, J.; Chen, H.; Orlandi, F.; Lee, Y.H.; O’Sullivan, D.; Dev, S. Automated climate analyses using knowledge graph. In Proceedings of the 2021 IEEE USNC-URSI Radio Science Meeting (Joint with AP-S Symposium), Singapore, 4–10 December 2021; pp. 106–107. [Google Scholar]
  12. Wu, J.; Orlandi, F.; Pathan, M.S.; O’Sullivan, D.; Dev, S. Augmenting weather sensor data with remote knowledge graphs. In Proceedings of the IGARSS 2022—2022 IEEE International Geoscience and Remote Sensing Symposium, Kuala Lumpur, Malaysia, 17–22 July 2022; pp. 1264–1267. [Google Scholar]
  13. Salatino, A.A.; Thanapalasingam, T.; Mannocci, A.; Osborne, F.; Motta, E. The computer science ontology: A large-scale taxonomy of research areas. In International Semantic Web Conference; Springer: Cham, Switzerland, 2018; pp. 187–205. [Google Scholar]
  14. Wu, J.; Orlandi, F.; Gollini, I.; Pisoni, E.; Dev, S. Uplifting air quality data using knowledge graph. In Proceedings of the 2021 Photonics & Electromagnetics Research Symposium (PIERS), Hangzhou, China, 21–25 November 2021; pp. 2347–2350. [Google Scholar]
  15. Wu, J.; Orlandi, F.; O’Sullivan, D.; Dev, S. LinkClimate: An interoperable knowledge graph platform for climate data. Comput. Geosci. 2022, 169, 105215. [Google Scholar] [CrossRef]
  16. Szilagyi, I.; Wira, P. Ontologies and Semantic Web for the Internet of Things—A survey. In Proceedings of the IECON 2016—42nd Annual Conference of the IEEE Industrial Electronics Society, Florence, Italy, 23–26 October 2016; pp. 6949–6954. [Google Scholar]
  17. Compton, M.; Barnaghi, P.; Bermudez, L.; Garcia-Castro, R.; Corcho, O.; Cox, S.; Graybeal, J.; Hauswirth, M.; Henson, C.; Herzog, A.; et al. The SSN ontology of the W3C semantic sensor network incubator group. J. Web Semant. 2012, 17, 25–32. [Google Scholar] [CrossRef]
  18. Kotis, K.; Katasonov, A. An Iot-Ontology for the Representation of Interconnected, Clustered and Aligned Smart Entities; Technical Report; VTT Technical Research Center of Finland: Espoo, Finland, 2012. [Google Scholar]
  19. Seydoux, N.; Drira, K.; Hernandez, N.; Monteil, T. IoT-O, a core-domain IoT ontology to represent connected devices networks. In European Knowledge Acquisition Workshop; Springer: Cham, Switzerland, 2016; pp. 561–576. [Google Scholar]
  20. Muppavarapu, V.; Ramesh, G.; Gyrard, A.; Noura, M. Knowledge extraction using semantic similarity of concepts from Web of Things knowledge bases. Data Knowl. Eng. 2021, 135, 101923. [Google Scholar] [CrossRef]
  21. Daniele, L.; Hartog, F.d.; Roes, J. Created in close interaction with the industry: The smart appliances reference (SAREF) ontology. In International Workshop Formal Ontologies Meet Industries; Springer: Cham, Switzerland, 2015; pp. 100–112. [Google Scholar]
  22. Gyrard, A. Designing Cross-Domain Semantic Web of Things Applications. Ph.D. Thesis, Télécom ParisTech, Palaiseau, France, 2015. [Google Scholar]
  23. Pfisterer, D.; Romer, K.; Bimschas, D.; Kleine, O.; Mietz, R.; Truong, C.; Hasemann, H.; Kröller, A.; Pagel, M.; Hauswirth, M.; et al. SPITFIRE: Toward a semantic web of things. IEEE Commun. Mag. 2011, 49, 40–48. [Google Scholar] [CrossRef]
  24. Mehta, S.; Tiwari, S.; Siarry, P.; Jabbar, M. Tools, Languages, Methodologies for Representing Semantics on the Web of Things; John Wiley & Sons: Hoboken, NJ, USA, 2022. [Google Scholar]
  25. Afzaal, R.; Shoaib, M. Data recoverability and estimation for perception layer in semantic web of things. PLoS ONE 2021, 16, e0245847. [Google Scholar] [CrossRef] [PubMed]
  26. Loseto, G.; Patton, E.W.; Seneviratne, O.; Van Woensel, W.; Scioscia, F.; Kagal, L. Mobile App Development for the Semantic Web of Things with Punya. In Proceedings of the ISWC (Posters/Demos/Industry), Virtual Conference, 24–28 October 2021. [Google Scholar]
  27. Obaid, A.J.; Chatterjee, T.; Bhattacharya, A. Semantic Web and Web Page Clustering Algorithms: A Landscape View. EAI Endorsed Trans. Energy Web 2021, 8, e7. [Google Scholar] [CrossRef]
  28. Mishra, S.; Jain, S.; Rai, C.; Gandhi, N. Security challenges in semantic web of things. In International Conference on Innovations in Bio-Inspired Computing and Applications; Springer: Cham, Switzerland, 2018; pp. 162–169. [Google Scholar]
  29. FIWARE. FIWARE Context Broker. 2020. Available online: https://www.fiware.org/catalogue/ (accessed on 28 December 2020).
  30. PATEL, C. Wind Turbine Power Analysis. 2020. Available online: https://www.kaggle.com/code/chittalpatel/wind-turbine-power-analysis/notebook (accessed on 28 December 2020).
  31. Ganthia, B.P.; Mohanty, M.; Maherchandani, J.K. Power analysis using various types of wind turbines. In Modeling and Control of Static Converters for Hybrid Storage Systems; IGI Global: Hershey, PA, USA, 2022; pp. 271–286. [Google Scholar]
  32. OVERFITTED. WSolar Power Generation. 2020. Available online: https://www.kaggle.com/code/chittalpatel/wind-turbine-power-analysis/notebook (accessed on 3 November 2022).
  33. Gül, Ö.M. Blockchain-Enabled Internet of Things (IoTs) Platforms for Vehicle Sensing and Transportation Monitoring. Available online: https://www.researchgate.net/publication/353903283_Blockchain-enabled_Internet_of_Things_IoTs_platforms_for_vehicle_sensing_and_transportation_monitoring (accessed on 3 November 2022).
  34. Wongthongtham, P.; Marrable, D.; Abu-Salih, B.; Liu, X.; Morrison, G. Blockchain-enabled Peer-to-Peer energy trading. Comput. Electr. Eng. 2021, 94, 107299. [Google Scholar] [CrossRef]
Figure 1. Architectural overview.
Figure 1. Architectural overview.
Sensors 23 00982 g001
Figure 2. Distribution of column values.
Figure 2. Distribution of column values.
Sensors 23 00982 g002
Figure 3. Comparison of wind speed and direction.
Figure 3. Comparison of wind speed and direction.
Sensors 23 00982 g003
Figure 4. Scoring algorithms ML wind.
Figure 4. Scoring algorithms ML wind.
Sensors 23 00982 g004
Figure 5. Relationship between columns of the dataset.
Figure 5. Relationship between columns of the dataset.
Sensors 23 00982 g005
Figure 6. Scoring algorithms ml solar.
Figure 6. Scoring algorithms ml solar.
Sensors 23 00982 g006
Table 1. Pycaret pre-study.
Table 1. Pycaret pre-study.
ModelMAEMSERMSER2RMSLETT
(s)
Light Gradient
Boosting
152.6337141,232.3644375.2870.9181.5080.127
Gradient Boosting155.4339141,346.4811375.40990.91791.65320.94
CatBoost154.6182143,318.3611378.08070.91681.61282.963
Extreme Gradient
Boosting
157.3401148,772.8508385.16050.91361.59591.129
Random Forest160.9863152,788.12 10390.44440.91131.37072.217
Extra Trees166.4859158,063.3209397.12470.90821.37461.07
K Neighbors
Regressor
171.5040165,489.9156406.32380.90391.39910.024
Ada Boost309.1532246,932.7357496.59820.85662.04640.088
Decision Tree199.8973277,651.8974526.62560.83871.85140.049
Linear Regression385.0205283,773.3672532.50630.83522.63160.425
Bayesian Ridge385.0236283,773.3669532.50630.83522.63160.007
Ridge385.0258283,773.3562532.50630.83522.63150.006
Least Angle385.0206283,773.3667532.50630.83522.63160.008
Lasso385.1961283,776.5953532.51010.83522.63120.007
Orthogonal
Matching Pursuit
385.9314284,452.3678533.14590.83482.64040.007
Huber Regressor378.314 1295,961.1937543.75950.82812.71250.032
Passive Agg
ressive
378.0183303,116.3767550.28410.82392.7680.014
Lasso LeastAngle429.8264316,211.4787562.22030.81632.55640.016
Elastic Net547.8478444,773.0906666.86260.74152.82250.007
Table 2. Initial study of pycaret.
Table 2. Initial study of pycaret.
ModelMAEMSERMSER2RMSLEMAPE
CatBoost1383.538,258,035.8972842.33980.923.3681.4268
Light Gradient
Boosting Machine
1425.908,645,953.3062917.00070.91673.19481.444
Gradient Boosting1525.339,042,987.792973.32970.91293.48371.9477
Random Forest1387.559,132,938.7012988.83080.91221.43691.3502
Extreme Gradient
Boosting
1528.089,132,115.592989.79540.9123.51361.9225
Extra Trees1371.1649,370,078.3453032.710.90911.42071.2388
K Neighbors1995.0114,418,032.693783.20750.85931.87953.2709
AdaBoost2658.0916,246,782.774011.68810.84274.51313.6487
Decision Tree1823.1218,487,851.694231.69820.82311.73561.2967
Linear3320.2221,609,347.744633.59790.79025.04836.1362
Lasso3321.0521,609,322.514633.59420.79025.04996.1158
Bayesian Ridge3328.4421,619,397.044634.70180.79015.06016.103
Ridge Regression3330.8821,622,794.724635.08310.795.06226.0973
Lasso Least Angle3341.4021,757,851.64649.91180.78885.05065.7934
Random
Sample Consensus
3260.6321,838,823.484657.60090.78785.00066.0694
TheilSen Regressor3436.7122,350,259.854713.58830.78255.11326.0852
Huber Regressor3054.0623,610,757.44837.12280.77064.6154.3961
Passive Aggressive3018.5626,104,737.575088.19920.7474.12183.0214
Elastic Net4701.3537,866,615.256143.67630.63595.22768.0117
Orthogonal
Matching Pursuit
4881.5638,453,549.956193.59560.62995.35375.5916
Least Angle
Regression
5456.2663,265,660.217134.07620.40375.427510.456
Support Vector
Machine
6928.34147,606,069.712,099.8444-0.39854.50041.4865
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.

Share and Cite

MDPI and ACS Style

Martín, D.G.; Florez, S.L.; González-Briones, A.; Corchado, J.M. COSIBAS Platform—Cognitive Services for IoT-Based Scenarios: Application in P2P Networks for Energy Exchange. Sensors 2023, 23, 982. https://doi.org/10.3390/s23020982

AMA Style

Martín DG, Florez SL, González-Briones A, Corchado JM. COSIBAS Platform—Cognitive Services for IoT-Based Scenarios: Application in P2P Networks for Energy Exchange. Sensors. 2023; 23(2):982. https://doi.org/10.3390/s23020982

Chicago/Turabian Style

Martín, Diego Gutiérrez, Sebastian Lopez Florez, Alfonso González-Briones, and Juan M. Corchado. 2023. "COSIBAS Platform—Cognitive Services for IoT-Based Scenarios: Application in P2P Networks for Energy Exchange" Sensors 23, no. 2: 982. https://doi.org/10.3390/s23020982

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