{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,3,3]],"date-time":"2026-03-03T16:43:57Z","timestamp":1772556237626,"version":"3.50.1"},"reference-count":49,"publisher":"MDPI AG","issue":"21","license":[{"start":{"date-parts":[[2021,10,26]],"date-time":"2021-10-26T00:00:00Z","timestamp":1635206400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"name":"Your Open DAta (YODA) Project, CEF Telecom","award":["2019-ES-IA-0121"],"award-info":[{"award-number":["2019-ES-IA-0121"]}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Sensors"],"abstract":"<jats:p>In recent years, many proposals of context-aware systems applied to IoT-based smart environments have been presented in the literature. Most previous works provide a generic high-level structure of how a context-aware system can be operationalized, but do not offer clues on how to implement it. On the other hand, there are many implementations of context-aware systems applied to specific IoT-based smart environments that are context-specific: it is not clear how they can be extended to other use cases. In this article, we aim to provide an open-source reference implementation for providing context-aware data analytics capabilities to IoT-based smart environments. We rely on the building blocks of the FIWARE ecosystem and the NGSI data standard, providing an agnostic end-to-end solution that considers the complete data lifecycle, covering from data acquisition and modeling, to data reasoning and dissemination. In other words, our reference implementation can be readily operationalized in any IoT-based smart environment regardless of its field of application, providing a context-aware solution that is not context-specific. Furthermore, we provide two example use cases that showcase how our reference implementation can be used in a variety of fields.<\/jats:p>","DOI":"10.3390\/s21217095","type":"journal-article","created":{"date-parts":[[2021,10,26]],"date-time":"2021-10-26T23:54:33Z","timestamp":1635292473000},"page":"7095","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":20,"title":["Enabling Context-Aware Data Analytics in Smart Environments: An Open Source Reference Implementation"],"prefix":"10.3390","volume":"21","author":[{"ORCID":"https:\/\/orcid.org\/0000-0003-1554-437X","authenticated-orcid":false,"given":"Andres","family":"Munoz-Arcentales","sequence":"first","affiliation":[{"name":"Departamento de Ingenier\u00eda de Sistemas Telem\u00e1ticos, ETSI Telecomunicaci\u00f3n, Universidad Polit\u00e9cnica de Madrid, 28040 Madrid, Spain"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-9621-1392","authenticated-orcid":false,"given":"Sonsoles","family":"L\u00f3pez-Pernas","sequence":"additional","affiliation":[{"name":"Departamento de Sistemas Inform\u00e1ticos, ETSI Sistemas Inform\u00e1ticos, Universidad Polit\u00e9cnica de Madrid, 28031 Madrid, Spain"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-5304-0626","authenticated-orcid":false,"given":"Javier","family":"Conde","sequence":"additional","affiliation":[{"name":"Departamento de Ingenier\u00eda de Sistemas Telem\u00e1ticos, ETSI Telecomunicaci\u00f3n, Universidad Polit\u00e9cnica de Madrid, 28040 Madrid, Spain"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-8456-8351","authenticated-orcid":false,"given":"\u00c1lvaro","family":"Alonso","sequence":"additional","affiliation":[{"name":"Departamento de Ingenier\u00eda de Sistemas Telem\u00e1ticos, ETSI Telecomunicaci\u00f3n, Universidad Polit\u00e9cnica de Madrid, 28040 Madrid, Spain"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-7269-8079","authenticated-orcid":false,"given":"Joaqu\u00edn","family":"Salvach\u00faa","sequence":"additional","affiliation":[{"name":"Departamento de Ingenier\u00eda de Sistemas Telem\u00e1ticos, ETSI Telecomunicaci\u00f3n, Universidad Polit\u00e9cnica de Madrid, 28040 Madrid, Spain"}]},{"given":"Juan Jos\u00e9","family":"Hierro","sequence":"additional","affiliation":[{"name":"FIWARE Foundation, 10587 Berlin, Germany"}]}],"member":"1968","published-online":{"date-parts":[[2021,10,26]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","unstructured":"Abowd, G.D., Dey, A.K., Brown, P.J., Davies, N., Smith, M., and Steggles, P. (1999). Towards a Better Understanding of Context and Context-Awareness, Springer.","DOI":"10.1007\/3-540-48157-5_29"},{"key":"ref_2","doi-asserted-by":"crossref","first-page":"55","DOI":"10.1016\/j.jss.2016.02.010","article-title":"Engineering context-aware systems and applications: A survey","volume":"117","author":"Alegre","year":"2016","journal-title":"J. Syst. Softw."},{"key":"ref_3","doi-asserted-by":"crossref","first-page":"8509","DOI":"10.1016\/j.eswa.2008.10.071","article-title":"Context-aware systems: A literature review and classification","volume":"36","author":"Hong","year":"2009","journal-title":"Expert Syst. Appl."},{"key":"ref_4","doi-asserted-by":"crossref","first-page":"165748","DOI":"10.1109\/ACCESS.2019.2950656","article-title":"Platforms for Smart Environments and Future Internet Design: A Survey","volume":"7","author":"Alberti","year":"2019","journal-title":"IEEE Access"},{"key":"ref_5","doi-asserted-by":"crossref","first-page":"10","DOI":"10.1109\/MWC.2016.7721736","article-title":"Internet-of-things-based smart environments: State of the art, taxonomy, and open research challenges","volume":"23","author":"Ahmed","year":"2016","journal-title":"IEEE Wirel. Commun."},{"key":"ref_6","doi-asserted-by":"crossref","first-page":"196","DOI":"10.1109\/MNET.2019.1800083","article-title":"Edge computing for smart health: Context-aware approaches, opportunities, and challenges","volume":"33","author":"Abdellatif","year":"2019","journal-title":"IEEE Netw."},{"key":"ref_7","doi-asserted-by":"crossref","first-page":"414","DOI":"10.1109\/SURV.2013.042313.00197","article-title":"Context aware computing for the internet of things: A survey","volume":"16","author":"Perera","year":"2013","journal-title":"IEEE Commun. Surv. Tutorials"},{"key":"ref_8","doi-asserted-by":"crossref","first-page":"262","DOI":"10.1016\/j.future.2016.12.038","article-title":"Adaptive and context-aware service composition for IoT-based smart cities","volume":"76","author":"Urbieta","year":"2017","journal-title":"Future Gener. Comput. Syst."},{"key":"ref_9","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1109\/JIOT.2017.2773600","article-title":"Context-aware computing, learning, and big data in internet of things: A survey","volume":"5","author":"Sezer","year":"2017","journal-title":"IEEE Internet Things J."},{"key":"ref_10","doi-asserted-by":"crossref","first-page":"101","DOI":"10.1016\/j.adhoc.2017.05.001","article-title":"Energy efficient context aware traffic scheduling for IoT applications","volume":"62","author":"Afzal","year":"2017","journal-title":"Ad Hoc Netw."},{"key":"ref_11","doi-asserted-by":"crossref","first-page":"263","DOI":"10.1504\/IJAHUC.2007.014070","article-title":"A survey on context-aware systems","volume":"2","author":"Baldauf","year":"2007","journal-title":"Int. J. Ad Hoc Ubiquitous Comput."},{"key":"ref_12","doi-asserted-by":"crossref","unstructured":"Symeonaki, E., Arvanitis, K., and Piromalis, D. (2020). A context-aware middleware cloud approach for integrating precision farming facilities into the IoT toward agriculture 4.0. Appl. Sci., 10.","DOI":"10.3390\/app10030813"},{"key":"ref_13","doi-asserted-by":"crossref","unstructured":"Phithakkitnukoon, S., Veloso, M., Bento, C., Biderman, A., and Ratti, C. (2010). Taxi-aware map: Identifying and predicting vacant taxis in the city. International Joint Conference on Ambient Intelligence, Springer.","DOI":"10.1007\/978-3-642-16917-5_9"},{"key":"ref_14","doi-asserted-by":"crossref","first-page":"267","DOI":"10.1016\/j.future.2013.07.014","article-title":"Intelligent services for big data science","volume":"37","author":"Dobre","year":"2014","journal-title":"Future Gener. Comput. Syst."},{"key":"ref_15","unstructured":"Liu, H., Tong, Y., Han, J., Zhang, P., Lu, X., and Xiong, H. (2020). Incorporating multi-source urban data for personalized and context-aware multi-modal transportation recommendation. IEEE Trans. Knowl. Data Eng."},{"key":"ref_16","doi-asserted-by":"crossref","unstructured":"Najem, N., Haddou, D.B., Abid, M.R., Darhmaoui, H., Krami, N., and Zytoune, O. (2017, January 29\u201331). Context-aware wireless sensors for IoT-centeric energy-efficient campuses. Proceedings of the 2017 IEEE International Conference on Smart Computing (SMARTCOMP), Hong Kong, China.","DOI":"10.1109\/SMARTCOMP.2017.7946995"},{"key":"ref_17","doi-asserted-by":"crossref","unstructured":"Hangli, G., Hamada, T., Sumitomo, T., and Koshizuka, N. (2021, January 9\u201312). Precaelevator: Towards zero-waiting time on calling elevator by utilizing context aware platform in smart building. Proceedings of the 2018 IEEE 7th Global Conference on Consumer Electronics (GCCE), Nara, Japan.","DOI":"10.1109\/GCCE.2018.8574706"},{"key":"ref_18","doi-asserted-by":"crossref","first-page":"91","DOI":"10.1016\/j.compag.2019.03.005","article-title":"Context-aware control and monitoring system with IoT and cloud support","volume":"160","author":"Dobrescu","year":"2019","journal-title":"Comput. Electron. Agric."},{"key":"ref_19","doi-asserted-by":"crossref","unstructured":"G\u00f3mez-Chabla, R., Real-Avil\u00e9s, K., Mor\u00e1n, C., Grijalva, P., and Recalde, T. (2019, January 22\u201325). IoT applications in agriculture: A systematic literature review. Proceedings of the 2nd International Conference on ICTs in Agronomy and Environment, Guayaquil, Ecuador.","DOI":"10.1007\/978-3-030-10728-4_8"},{"key":"ref_20","doi-asserted-by":"crossref","first-page":"218","DOI":"10.1016\/j.compag.2018.12.039","article-title":"Evolution of Internet of Things (IoT) and its significant impact in the field of Precision Agriculture","volume":"157","author":"Khanna","year":"2019","journal-title":"Comput. Electron. Agric."},{"key":"ref_21","first-page":"181","article-title":"Current trends and challenges in the deployment of IoT technologies for climate smart facility agriculture","volume":"5","author":"Symeonaki","year":"2019","journal-title":"Int. J. Sustain. Agric. Manag. Inform."},{"key":"ref_22","doi-asserted-by":"crossref","unstructured":"Madushanki, R., Wirasagoda, H., and Halgamuge, M. (2019). Adoption of the Internet of Things (IoT) in Agriculture and Smart Farming towards Urban Greening: A Review, Science and Information Organization.","DOI":"10.14569\/IJACSA.2019.0100402"},{"key":"ref_23","doi-asserted-by":"crossref","unstructured":"Martinez, R., Pastor, J.A., Alvarez, B., and Iborra, A. (2016). A Testbed to Evaluate the FIWARE-Based IoT Platform in the Domain of Precision Agriculture. Sensors, 16.","DOI":"10.3390\/s16111979"},{"key":"ref_24","doi-asserted-by":"crossref","unstructured":"Alonso, \u00c1., Pozo, A., Cantera, J.M., la Vega, F., and Hierro, J.J. (2018). Industrial Data Space Architecture Implementation Using FIWARE. Sensors, 18.","DOI":"10.3390\/s18072226"},{"key":"ref_25","doi-asserted-by":"crossref","unstructured":"Kamienski, C., Soininen, J.P., Taumberger, M., Dantas, R., Toscano, A., Salmon Cinotti, T., Filev Maia, R., and Torre Neto, A. (2019). Smart Water Management Platform: IoT-Based Precision Irrigation for Agriculture. Sensors, 19.","DOI":"10.3390\/s19020276"},{"key":"ref_26","doi-asserted-by":"crossref","unstructured":"Zyrianoff, I., Heideker, A., Silva, D., Kleinschmidt, J., Soininen, J.P., Salmon Cinotti, T., and Kamienski, C. (2020). Architecting and Deploying IoT Smart Applications: A Performance\u2013Oriented Approach. Sensors, 20.","DOI":"10.3390\/s20010084"},{"key":"ref_27","doi-asserted-by":"crossref","unstructured":"Mu\u00f1oz, M., Gil, J.D., Roca, L., Rodr\u00edguez, F., and Berenguel, M. (2020). An IoT Architecture for Water Resource Management in Agroindustrial Environments: A Case Study in Almer\u00eda (Spain). Sensors, 20.","DOI":"10.3390\/s20030596"},{"key":"ref_28","doi-asserted-by":"crossref","unstructured":"L\u00f3pez-Morales, J.A., Mart\u00ednez, J.A., and Skarmeta, A.F. (2020). Digital Transformation of Agriculture through the Use of an Interoperable Platform. Sensors, 20.","DOI":"10.3390\/s20041153"},{"key":"ref_29","doi-asserted-by":"crossref","first-page":"183","DOI":"10.1016\/j.scs.2017.02.016","article-title":"Smart sustainable cities of the future: An extensive interdisciplinary literature review","volume":"31","author":"Bibri","year":"2017","journal-title":"Sustain. Cities Soc."},{"key":"ref_30","doi-asserted-by":"crossref","first-page":"33","DOI":"10.1016\/j.bdr.2017.10.002","article-title":"Big data for context aware computing\u2013perspectives and challenges","volume":"10","author":"Subbu","year":"2017","journal-title":"Big Data Res."},{"key":"ref_31","doi-asserted-by":"crossref","unstructured":"Sholla, S., Naaz, R., and Chishti, M.A. (2018, January 29\u201331). Semantic smart city: Context aware application architecture. Proceedings of the 2018 Second International Conference on Electronics, Communication and Aerospace Technology (ICECA), Coimbatore, India.","DOI":"10.1109\/ICECA.2018.8474777"},{"key":"ref_32","doi-asserted-by":"crossref","first-page":"4646","DOI":"10.1109\/ACCESS.2017.2679338","article-title":"CARED-SOA: A context-aware event-driven service-oriented Architecture","volume":"5","author":"Ortiz","year":"2017","journal-title":"IEEE Access"},{"key":"ref_33","unstructured":"Al-Shdifat, A., and Emmanouilidis, C. (2015, January 3\u20134). Development of a Context-aware framework for the Integration of Internet of Things and Cloud Computing for Remote Monitoring Services. Proceedings of the 7th International Conference on Through-life Engineering Services, Cranfield, UK."},{"key":"ref_34","doi-asserted-by":"crossref","first-page":"20570","DOI":"10.3390\/s150820570","article-title":"Context aware middleware architectures: Survey and challenges","volume":"15","author":"Li","year":"2015","journal-title":"Sensors"},{"key":"ref_35","unstructured":"(2019, June 03). eXtensible Access Control Markup Language (XACML) Version 3.0. Available online: https:\/\/www.oasis-open.org\/committees\/tc_home.php."},{"key":"ref_36","doi-asserted-by":"crossref","first-page":"38","DOI":"10.1109\/2.485845","article-title":"Role-based access control models","volume":"29","author":"Sandhu","year":"1996","journal-title":"Computer"},{"key":"ref_37","doi-asserted-by":"crossref","unstructured":"Yuan, E., and Tong, J. (2005, January 11\u201315). Attributed based access control (ABAC) for web services. Proceedings of the IEEE International Conference on Web Services (ICWS\u201905), Orlando, FL, USA.","DOI":"10.1109\/ICWS.2005.25"},{"key":"ref_38","doi-asserted-by":"crossref","first-page":"601","DOI":"10.1109\/TSC.2014.2363474","article-title":"From RBAC to ABAC: Constructing Flexible Data Access Control for Cloud Storage Services","volume":"8","author":"Zhu","year":"2015","journal-title":"IEEE Trans. Serv. Comput."},{"key":"ref_39","doi-asserted-by":"crossref","unstructured":"Hardt, D. (2012). ; The OAuth 2.0 Authorization Framework, Internet Engineering Task Force (IETF).","DOI":"10.17487\/rfc6749"},{"key":"ref_40","unstructured":"Digital CEF (2019, September 03). Context Broker, Make Data-Driven Decisions in Real Time, at the Right Time. Available online: https:\/\/ec.europa.eu\/cefdigital\/wiki\/display\/CEFDIGITAL\/Context+Broker."},{"key":"ref_41","unstructured":"Alliance, O.M. (2012). NGSI Context Management, Open Mobile Alliance. Technical Report."},{"key":"ref_42","doi-asserted-by":"crossref","unstructured":"Alonso, \u00c1., Fern\u00e1ndez, F., Marco, L., and Salvach\u00faa, J. (2017). IAACaaS: IoT Application-Scoped Access Control as a Service. Futur. Internet, 9.","DOI":"10.3390\/fi9040064"},{"key":"ref_43","doi-asserted-by":"crossref","unstructured":"Fern\u00e1ndez, F., Alonso, \u00c1., Marco, L., and Salvach\u00faa, J. (2017, January 7\u20139). A model to enable application-scoped access control as a service for IoT using OAuth 2.0. Proceedings of the 20th Conference on Innovations in Clouds, Internet and Networks (ICIN), Paris, France.","DOI":"10.1109\/ICIN.2017.7899433"},{"key":"ref_44","unstructured":"Vaglica, G., Bono, F., and Renaldi, G. (2020). A JRC FIWARE Testbed for SMART Building and Infrastructures, Publications Office of the European Union."},{"key":"ref_45","first-page":"18","article-title":"Classification and regression by randomForest","volume":"2","author":"Liaw","year":"2002","journal-title":"R News"},{"key":"ref_46","first-page":"1","article-title":"Modeling Digital Twin Data and Architecture: A Building Guide with FIWARE as Enabling Technology","volume":"25","author":"Conde","year":"2021","journal-title":"IEEE Internet Comput."},{"key":"ref_47","doi-asserted-by":"crossref","unstructured":"Munoz-Arcentales, A., L\u00f3pez-Pernas, S., Pozo, A., Alonso, \u00c1., Salvach\u00faa, J., and Huecas, G. (2020). Data Usage and Access Control in Industrial Data Spaces: Implementation Using FIWARE. Sustainability, 12.","DOI":"10.3390\/su12093885"},{"key":"ref_48","unstructured":"Munoz-Arcentales, A., L\u00f3pez-Pernas, S., Pozo, A., Alonso, \u00c1., Salvach\u00faa, J., and Huecas, G. (2019, January 4\u20137). An Architecture for Providing Data Usage and Access Control in Data Sharing Ecosystems. Proceedings of the 6th International Symposium on Emerging Information, Communication and Networks (EICN 2019), Coimbra, Portugal."},{"key":"ref_49","doi-asserted-by":"crossref","unstructured":"Alonso, \u00c1., Pozo, A., Gordillo, A., L\u00f3pez-Pernas, S., Munoz-Arcentales, A., Marco, L., and Barra, E. (2020). Enhancing University Services by Extending the eIDAS European Specification with Academic Attributes. Sustainability, 12.","DOI":"10.3390\/su12030770"}],"container-title":["Sensors"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/1424-8220\/21\/21\/7095\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,11]],"date-time":"2025-10-11T07:24:03Z","timestamp":1760167443000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/1424-8220\/21\/21\/7095"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2021,10,26]]},"references-count":49,"journal-issue":{"issue":"21","published-online":{"date-parts":[[2021,11]]}},"alternative-id":["s21217095"],"URL":"https:\/\/doi.org\/10.3390\/s21217095","relation":{},"ISSN":["1424-8220"],"issn-type":[{"value":"1424-8220","type":"electronic"}],"subject":[],"published":{"date-parts":[[2021,10,26]]}}}