Journal of Cloud Computing

Advances, Systems and Applications

Journal of Cloud Computing Cover Image
Open Access

A framework for cloud-based context-aware information services for citizens in smart cities

Journal of Cloud ComputingAdvances, Systems and Applications20143:14

DOI: 10.1186/s13677-014-0014-4

Received: 1 December 2013

Accepted: 1 September 2014

Published: 11 October 2014



In the context of smart cities, public participation and citizen science are key ingredients for informed and intelligent planning decisions and policy-making. However, citizens face a practical challenge in formulating coherent information sets from the large volumes of data available to them. These large data volumes materialise due to the increased utilisation of information and communication technologies in urban settings and local authorities’ reliance on such technologies to govern urban settlements efficiently. To encourage effective public participation in urban governance of smart cities, the public needs to be facilitated with the right contextual information about the characteristics and processes of their urban surroundings in order to contribute to the aspects of urban governance that affect them such as socio-economic activities, quality of life, citizens well-being etc. The cities on the other hand face challenges in terms of crowd sourcing with quality data collection and standardisation, services inter-operability, provisioning of computational and data storage infrastructure.


In this paper, we highlight the issues that give rise to these multi-faceted challenges for citizens and public administrations of smart cities, identify the artefacts and stakeholders involved at both ends of the spectrum (data/service producers and consumers) and propose a conceptual framework to address these challenges. Based upon this conceptual framework, we present a Cloud-based architecture for context-aware citizen services for smart cities and discuss the components of the architecture through a common smart city scenario. A proof of concept implementation of the proposed architecture is also presented and evaluated. The results show the effectiveness of the cloud-based infrastructure for the development of a contextual service for citizens.


Smart cities Citizen services Context-awareness Cloud computing Public awareness Decision-making


A smart city [1]-[4] attempts to make the best use of innovative ICT solutions to manage urban issues related to mobility, people, economy, security, public health, environment and resource management, etc. With continuous increase in urban population, the need to plan and implement smart city solutions for better urban governance is becoming more evident. These solutions are driven, on the one hand, by innovations in ICT and, on the other hand, to increase the capability and capacity of cities to mitigate environmental, social inclusion, economic growth and sustainable development challenges. In this respect, citizens’ science or public participation provides a key input for informed and intelligent planning decision and policy-making. However, the challenge here is to facilitate public in acquiring the right contextual information in order to be more productive, innovative and be able to make appropriate decisions which impact on their well being, in particular, and economic and environmental sustainability in general. Meeting such a challenge requires contemporary ICT solutions, such as using Cloud computing. Use of elastic Cloud resources enable these solutions to store and process significant amount of data and produce intelligent contextual information with high quality of service. However, processing, utilising and visualising contextual information in a Cloud environment require tailored mechanisms for user profiling and contextual segregation of data that could be used in different applications of a smart city.

Smart cities include several applications where socio-technical interaction between citizens and pervasive devices a.k.a. Internet of Things (IoT) is often needed [5]-[7]. A continuous monitoring of these interactions can provide: i) evidence based urban planning, policy-making and collaborative decision making support, and ii) raise situational and environmental awareness that can eventually result in behavioural change based on the information of citizens daily life usage of these interconnected devices. Furthermore, these IoT can also facilitate environmental data gathering in order to mitigate environmental challenges. For instance, environmental sensors can pervasively collect data from the environment e.g. noise and air quality. Similarly, citizens can participate in environmental data collection and dissemination using smart phones or through social networking sites, resulting in promoting the concept of citizen science. Other crowd sourcing applications can be highly useful in emergency response (e.g. flood, accident), traffic management (e.g. gridlock on a busy motorway), quality of life surveys etc. However, such monitoring, citizen’s engagement, information processing, visualisation and decision making require sufficient computing infrastructures and attached resources for data storage and real-time processing.

The need for such resources becomes more evident when a city is considered as a single unit dealing collectively with challenges related to environment, socio-economic, security, health and well-being of citizens, education and public services. These multi-spectrum challenges necessitate cross-thematic data harmonisation, integration and coordination between various departmental boundaries in order to monitor and model future smart cities. For instance, cities face challenges of urbanisation, and it is expected that by 2020 up to 80% of population will be living in cities [8], that puts enormous pressure on the limited municipal resources. It also becomes challenging for ICT to manage such monitoring, support smart planning and facilitate better governance for socio-economic growth and sustainable urban development. Such a system requires large storage and processing power in order to capture, store, process and generate required necessary real-time information to end users. Cloud computing [9] has the potential to manage this monitoring challenge and can provide the necessary storage and computing facilities at comparable costs [10]. For example, Komninos et al. [11] review technologies for smart cities by introducing a short to long-term roadmap towards smart cities. In addition to Cloud computing, other complementary technologies include future internet, analysis and visualisation tools, sensors, RFIDs, semantic web, linked data and ontologies for smart cities [11].

Figure 1 illustrates an information perspective within smart cities. It highlights the dependencies between citizens, data, ICT tools, utilisation and provisioning of municipal services, and effectively supporting participatory governance. Figure 2 illustrates a number of pertinent smart cities issues that affect sustainable development of the city. With respect to public participation, citizens can perform two roles: i) act as information recipients for better awareness of their surroundings, and ii) data collectors. As information recipients, context-aware information availability can help citizens to make informed decisions in their daily life. For example, knowing the air quality at a specific location can be useful for taking necessary precautions for citizens with respiratory issues. As data collectors, participatory sensing can help in collecting environmental or other data (e.g. quality of surroundings such as offices and parks) that otherwise is either difficult or expensive to collect and manage. Citizens may not need to collect the data all the time and at different locations (e.g. when travelling) and only need to receive information that is more related to their profile and situational needs. Such a requirement, on the one hand, reduces the amount of data to be captured and processed. On the other hand, new filtering and computational services need to be developed in order to fulfil this requirement. In this regard, smart city based context-aware services [12] for citizens can help them to better use their environment by getting awareness about their surroundings and available services. However, using Clouds and developing context-aware user services for participatory monitoring to support better decision making is not straightforward and raises several research, development, deployment and adoption related challenges such as user profiling and security, data and information segregation, processing and storage.
Figure 1

Smart cities - Information perspective. The dependencies between citizens, data, ICT tools, utilisation and provisioning of municipal services in order to support participatory governance.

Figure 2

Smart cities related issues and challenge areas. A number of pertinent smart city issues that affect sustainable development of the city.

In this paper, we discuss related issues of data and computation infrastructure and context-awareness and present related work in the `Context-awareness, data and computational infrastructure requirements’ section. Thereafter in the section `Conceptual framework for cloud-based context-aware services’, we propose a conceptual framework that provides a roadmap establishing the basis for the development of an integrated Cloud-based architecture for context-aware user services, which is then elaborated further in the section titled `Proposed architecture’. Furthermore, we showcase a hypothetical example using Bristol Open Data [13] in order to walkthrough the proposed Cloud based architecture for smart cities in the section `Use case and discussion’. In `Proof of the concept’, we present a proof of concept implementation of the proposed architecture along with evaluation and discussion. Finally, we conclude in the `Conclusion and future work’ section.

Context-awareness, data and computational infrastructure requirements

As discussed earlier, communication and information services provided by ICT bring smart aspect to the management of cities by transforming data into useful knowledge and actionable information. The challenge in realisation of smart cities through ICT lies in the integration of data from disparate sources and processing into useful information delivered through services, consumed by citizens and public administrations. This challenge has different dimensions including the collection of huge amounts of data, the aggregation of data in various formats, relevance of such data to practical problems and scenarios, analysis of the data to deduce useful information and visualisation, and management of the historic and ever-increasing sets of such data. Addressing these challenges require a multipronged approach involving standardisation of data formats, data harmonisation mechanisms, computational processing and storage infrastructure and mechanisms to ascertain contextual relevance of the data with its consumers.

As discussed earlier, communication and information services provided by ICT bring smart aspect to the management of cities by transforming data into useful knowledge and actionable information. The challenge in realisation of smart cities through ICT lies in the integration of data from disparate sources and processing into useful information delivered through services, consumed by citizens and public administrations. This challenge has different dimensions including the collection of huge amounts of data, the aggregation of data in various formats, relevance of such data to practical problems and scenarios, analysis of the data to deduce useful information and visualisation, and management of the historic and ever-increasing sets of such data. Addressing these challenges require a multipronged approach involving standardisation of data formats, data harmonisation mechanisms, computational processing and storage infrastructure and mechanisms to ascertain contextual relevance of the data with its consumers.

The sources of data related to urban environments continue to increase, ranging from data gathering services and sensing platforms deployed by administrative authorities to data gathered by/from the citizens through participatory and opportunistic sensing mechanisms. However, the absence of a common and standardised platform for collection, storage and utilisation of such data for collection, analysis and dissemination of such data severely curtails the prospects of information and services that can be developed and benefit the smart city themed infrastructures. Hence the foremost requirement for realising holistic smart city related information services by and for wide-spectrum entities (citizens, governments, private enterprises) is to agree and utilise common, standard and inter-operable data formats.

An important qualitative provisioning of ICT for smart cities is the inclusive governance by informed citizens through participation i.e. an aspect of citizen science that allows their participation in information collection as well as information utilisation. Citizens are likely to be better informed and engaged if the services they consume relate to their social and environmental context. Context-awareness, which is an established discipline in the computer science and human-computer interaction domains, is thus pertinent to the employment of ICT in smart cities. However, integration of such contextual information is not straightforward due to a number of factors. These include the availability of relevant contextual information, heterogeneity of information that is available, inter-linking different types of context from possibly different sources, aggregating independently sourced contextual information to infer higher-order context about citizens and environments.

The provisioning of context-aware services also depends on the seamless integration of data collection, processing and dissemination systems whose challenges we have discussed in the earlier sections. Such technology integration to develop comprehensive smart city platforms is one of the primary objectives of the European Innovation Partnership that is endeavouring to catalyse progress in this area [14]. Situation and contextual association of data to their pertinent environmental and human artefacts exists and not only in the raw state of the data (e.g. when it is collected by a sensor node), but also continues to associate as data are aggregated and synthesised into higher level information sets (e.g. by combining multiple data values and inferring higher complex informational concepts about the environment). Therefore, any data formats, data collection mechanisms and information processing steps should continue to retain and extend contextual characteristics of aggregated data as it moves vertically from raw state towards its manifestation as complex, serviceable information.

The requirements of data collection, aggregation, representation formats and contextual annotation hint towards another requirement of a resourceful and scalable computational infrastructure. Cloud computing – based on the concepts of converged infrastructure and shared services – can be utilised to address some of the challenges in this domain, primarily those related to the collection, storage and processing of the urban domain data. Cloud computing is ideally placed to provide infrastructural support for meeting the smart city domain challenge through its key characteristics of reliability, scalability, performance and cost effectiveness. Most importantly, utilising a cloud computing infrastructure for smart city related data collection, processing and service delivery can remove the burden of computational infrastructure management and administration from a single entity (e.g. a city government). It also reduces the risk of increasing heterogeneity, which is likely to set in when different stakeholders utilise their own computation infrastructure for data collection and processing related activities. There is an industry-wide push towards providing Cloud-based smart city solutions [15] and we are beginning to see prototype implementations at various early adopter cities [16].

Recently there has been considerable interest in context-awareness in clouds. Hyun and Soo have proposed a framework for enabling context-aware mobile services [17]. The framework enables providing better services to users that fit their current context. Saad et al. [18] have investigated caching strategies in context-aware clouds. Their solution takes advantage of the inherent temporal dimension in context data to improve the accuracy of context-based systems. Other endeavours attempt to investigate energy conservation in context-aware clouds [19]. In a cloud-based setting data is vulnerable to cyber attacks. As more and more users are storing sensitive data online, privacy becomes a legitimate concern in these settings. Hamza et al. investigate privacy concerns in cloud-based user data by utilising their sharing context [20]. Paelke et al. have proposed a solution that gathers geo-referenced contextual information from public sources such as Wikipedia [21]. This information is rendered as a tag-cloud and presented to users to increase their awareness about their spatial context. In short, utilising context in cloud-based systems is an active research area with many interested parties.

The issues and requirements discussed above are spread across a range of areas and addressing these holistically requires a bottom up approach that considers the individual artefacts affected by these issues. These artefacts, e.g. data/process models, context models, services, infrastructure, and their subcomponents may have different objectives, roles, stakeholder association and utility. In order to develop a computational architecture for enabling citizen participation in smart cities and delivering contextual information services, we need to categorise and understand these artefacts, their characteristics and inter-relationships. We describe a conceptual framework in the following section to elaborate this point further.

Conceptual framework for cloud-based context-aware services

The motivation behind introducing the framework is to develop a roadmap for the development of cloud-based context aware services for citizens of smart cities. The framework attempts to establish the what, why, how and who characteristics of the relevant artefacts and associated components or procedures. The artefacts are the main building blocks for the development of cloud-based context aware services architecture (discussed later). The artefacts include process models, data models, contextual models, citizen participation, application thematic models, cyberspace infrastructure, management aspects and service federation. The description (i.e. what), goals and objectives (i.e. why) of these artefacts briefly explain their purpose. In addition, various standards and technologies are identified to exemplify how these artefacts can be operationalised and who can be the potential stakeholders. The framework, explained in Table 1, also briefly describes the usefulness of the artefacts.
Table 1

Context-aware citizen services framework for smart cities

Components orProcedures

Description (e.g. What?)

Goals/Objectives (e.g. Why?)

Operationalisation (e.g. How?)

Stakeholders (e.g. Who?)


Process Models

Data Processes

Processes related to datacollection & acquisition,cleansing and filtering,harmonisation and integration

To ensure high quality raw datais collected and transformedinto application specific targetdata model

Apache Solr, AppacheCassandra, (Geo-)SPARQL andRDF query languages, ISO19100 series of standards, OGCPUCK protocol, OpenGISSimple Feature Implementation specs (CORBA, OLE/COM)

Data custodians e.g. cityadministrations, local agenciesincluding security, environment, energy, transport, andeconomic development, officeof national statistics, Eurostat,etc. Business organisations e.g. insurance companies,utility services etc. GeneralPublic e.g. citizens, NGOs

Refinement of data andusability for variety ofapplications to getcross-disciplinaryinformation intelligence

Service Processes

Process related to thematicservice discovery, servicechaining and/or workflowcomposition

To discover and connect withrequired utility services

UDDI, (CSW-)ebRIM, OGC OWSstandards - WCS (metadatadiscovery), CSW (discovery),WMS (view), WFS (download),GeoAPI

Service consumers e.g. business organisations, public administrations, general public, etc. Service producers e.g. IT research industry, SMEs, statistical and IT experts etc

Service oriented approachsupports process agility byusing service plug-n-playfeature

Analytical Processes

Analysis algorithms, statisticalmodels, reasoning

To identify and use existingand new algorithms (machinelearning, data mining etc) andmodels to analyse applicationspecific data and generaterequired output

Hadoop MapReduce,RapidMiner, R, OGC WPS


Knowledge generation cansupport decision making

Security Processes

Authorisation, Anonymity,Encryption

To ensure that properinformation securitymeasures are applied

ISO/IEC 10181-4:1997 - Security Framework for Open System, GeoXACML

Cyber security providers e.g.SMEs. Beneficiers e.g. generalpublic.

Provides increased privacy andestabilishes trust on the system

User InteractionProcesses

Visualisation, Simulation,Interactivity

To facilitate end users byproviding intuitive GUI tointeract with applications

Lynx Browser, OGC OpenLS,OGC Web 3D Service, WMS,OpenGIS SLD, OGC WMTS

Social scientists, e.g. expertsin socio-technical aspects.SMEs e.g. IT developers, etc..End users e.g. general public,etc.

Increases application usabilityand intuitiveness

Resource managementProcesses

Resource utilisation,virtualisation, performanceand reliability

To ensure that systemresources are utilised to theirmaximum potential

Public, private and hybridcloud infrastructure e.g. IBMSmart City Control Centre

IT Administrators

Results in efficient resourceutilisation that can contributetowards green computing

Organisational Processes

Business organisation andinstitutional processes

Aligning theinformation processing with businessprocesses


Organisations e.g. MetOffice, Disaster managementauthority, Tourismdevelopment, Publictransport authority, Energydistributor, etc.

Ability to adopt organisationalprocesses can result wideradoption

Data Models

Data Management

Standards and management of data and metadata

Structured (SQL/NoSQL based)and non-structured datamanagement, Relational,Object-oriented, Cube, Spatialdata models, Adoption of dataand metadata standards suchas ISO 19000, Dublin Core etc

OpenGIS specification basedMySQL, NuoDB, Oracle, MS SQLServer, PostgreSQL - PostGIS,Apache Cassandra, CouchDB,MongoDB, SimpleDB,DynamoDB

Data modellers andadministrators e.g. IT experts

Ability to store, retrieve, updateand manage data

Metadata and Datastructure


Dublin Core, DBLP, OSImetadata standards - 19115,JSON, OGC NetCDF, EOmetadata profile, CityGML,OGC TJS

Data providers andcustodians e.g. cityadministrations, environmentalagencies, office of nationalstatistics, Eurostat, etc. GeneralPublic e.g. citizens.

Increases understanding andpromotes reusability of datamodels

Contextual Models

Structuring andProfiling

User profiles and preferences

To structure contextinformation that can bereused for specific users andenvironments

ContextML, OGC Context standard, KML standard, OWL, RDF, OGC Web Map Context Document, Context casting

Social scientists. IT experts. End users e.g. general public, etc.

Personalisation of informationenhances usability

Context Exchange

Understandable contextdescription for reusabilitypurposes

To enable exchange contextinformation between variousservices and components


Exchanging context betweenvarious services helps toimprove context-awareinformation processing andprovision

Context Management

Context entity and relationshipmodel

To manage context data modeland associated actions forspecific circumstances andenvironments


Structured management ofcontext models enhancesreusability and improvesapplication performance

Citizen Participation

Information provision

Awareness raising, Informationprovision, communication

To provide contextually related information to citizens and enable them to participate in decision making processes

Web 2.0/3.0, WS-Notification

End users e.g. general public, local business organisations, etc.

Contextual information forbetter decisions

Data collection

Crowd sourcing, Citizenscience, Public participationand engagement




Supporting participatorysensing and bottom-updemocracy

Behavioural Changemodels

Behavioural changes ofindividuals or evolvingbusiness processes

To identify changes inbehaviour of users due toenvironmental awareness

Interventions, policies, StudyProtocol


Healthy and environmentfriendly behaviour change andbetter work productivity

Application Thematic Models

Thematic Applications

Environment, Energy, Mobility,Security, Urban etc

To use collected data forspecific application thematicdomains


Application domain experts e.g. energy, transport,planning, health etc.

Application specific as well ascross-disciplinary integratedknowledge generation forbetter environmental andurban planning

Cyber-space Infrastructure

Hardware and software

Cloud infrastructure, Sensors,RFIDs, Storage, Processing H/W,IoTs, software frameworks

To apply related hardware andsoftware technologies

OpenStack, Apache Cassandra

IT experts and developers.SMEs e.g. sensors web,wireless ad-hoc networks,cloud infrastructure, serviceprovision etc.

Use of contemporarytechnology for informationmanagement

Management Aspects

System Management

Flow of Info, auditing andpricing, security

To ensure that all componentsare well integrated andsupport flow of informationand an appropriate cost modelis developed

WebMethods, Oracle BPMSuite, OpenText

IT Administrators

Enabling sustainable businessmodel

Service Federation

System of systems

Application integration

Applying standards and developing wrappers/adaptors to enable flow of information between multiple applications and systems

Corba, Web Services

IT experts and developers. SMEs. Research and Academia, Application domain experts

Enabling inter-cloudinformation and resourceexchange


Standards, service wrappers


W3C web standards, OASISRM-ODP, OGC services


The framework is generic in a sense that various artefacts, components, standards and technologies can be applied (as platform-as-a-service or software-as-a-service model) depending on the need of different applications. Also, it is flexible to accommodate new artefacts and procedures and include new technologies and standards for various stakeholders. For example, the contextual models artefact consists of three components structuring and profiling, context exchange and context management. These components contribute in developing user preference profiles, structuring and managing contextual information and associated actions to provide necessary information to end users. In the next section, we attempt to operationalise the above framework by developing a layered architecture using different framework artefacts.

Proposed architecture

Khan et al. [10] presented the capabilities required in a Cloud environment to acquire integrated intelligence for urban management systems. These capabilities provide a sound foundation to respond to smart cities requirements by developing a context-aware component in a Cloud environment. Here we apply the proposed framework and adopt the Cloud-based layered architecture proposed in [10]. The layered architecture is extended by introducing context-aware capabilities to respond to requirements of access to contextual information by citizens as well as data provision on demand basis, as depicted in Figure 3. The proposed architecture can be used to build either a platform-as-a-service or a software-as-a-service solution. For example, when it is used to build modelling service, then it becomes a platform-as-a-service solution on top of which other services can be built. When it is used to build a service that interacts directly with users, for example through visualisation, then it becomes a software-as-a-service solution. In `Proof of the concept' section we present it as a software-as-a-service model.
Figure 3

Proposed architecture. Computation architecture for context-aware citizen services smart cities.

The architecture depicted in Figure 3 consists primarily of five horizontal and two vertical layers. In our bottom up approach, the Platform Integration, Thematic and Data Acquisition and Analysis layers output generic data, which can be tailored to specific smart cities related application needs in the top three layers. One of the design principles here is to introduce context-aware components at different layers of the architecture in order to continually coordinate the vertical flow of data and retain or associate contextual information. Below we walkthrough the above architecture with the objective that how each layer contributes towards providing contextual information to end users for various purposes.
  1. 1.

    The Platform Integration layer constitutes a collection of hardware and software components providing the necessary computational infrastructure e.g. a hybrid public and private cloud instances that ensures cross-platform accessibility of data. In addition to the physical computational hardware and virtual Cloud resources, this layer also provides the integration of hardware and software sensors that form the data sources in this architecture. OGC’s Sensor Observation Service [22], which provides the standardised APIs for managing deployed sensors and retrieving observation data is a suitable candidate for this role. The standard also includes provisions for specifying sensor metadata, both for existing and new sensors and can thus provide the necessary building blocks for acquiring contextual information about the sensors.

  2. 2.

    The Data Acquisition and Analysis layer allows collection of environmental data from various sources including remote database repositories, sensor nets, and citizens’ observations, e.g. using smart phones, in the Cloud environment. This layer also ensures the quality of data acquired and identifies the need for necessary data cleansing. A context-aware component is introduced here to filter out unrelated data and to perform quality check and harmonisation only to contextually related data. With respect to the sensed data format, Open GIS Sensor Modelling Language [22] is an established standard that caters for simple, aggregated and derived data concepts and supports multiple encodings (text, XML) as well. Other features that enable harvesting of contextual data from sensed observations include ability to encompass measurements about composite physical and non-physical processes, phenomena, temporal concepts and metadata information.

  3. 3.

    The Thematic layer classifies the acquired data into application specific thematic categories and performs data harmonisation and updates the data/service catalogues for further use of the data. The thematic categorisation of data, that is already contextually annotated, can help in its efficient and appropriate utilisation by services and applications in the higher layers of the proposed architecture.

  4. 4.

    The Service Composition layer is required to design and specify service workflows, identify data sources, and link necessary processing components to enact the workflows that can constitute context-aware, citizen-specific services. Furthermore, necessary analytical analysis of the workflow outputs can be performed in this layer. This layer also ensures that the provenance of data and specific processes is maintained that can be utilised for analysis by different expert systems in the application layer. The context-aware component in this layer helps to utilise contextually related services for workflow composition and information generation.

  5. 5.

    The Application Service layer uses the outcomes from the service composition layer in application domain specific tools such as simulations, smart phone apps and visual maps to perform contextual analysis for decision-making. Further, this layer enables stakeholders to use existing tools and develop new application domain specific components and services (at SaaS level) to satisfy contextual information needs of end users. User context can be modelled in a simple, extensible and machine readable context representation formats e.g. a civil address context snippet related to a person is shown in ContextML [23] format in Figure 4. This layer also supports participatory sensing applications for collection of new data from end users. For example, reporting of micro-criminalities in a neighbourhood using smart phone application.

Figure 4

ContextML. ContextML encoded data for a person's civil address.

  1. 6.

    The Management and Integration layer is used to automate the flow of filtered data and information between the horizontal layers. It ensures that processed outputs from one layer to another are contextually related and syntactically correct. It also aims to handle change management that occurs at different layers and to reduce the extent to which the layered architecture requires management overhead.

  2. 7.

    The Security layer ensures the necessary authentication, authorisation and auditing for the use of data and services by legitimate users. Further, it ensures secure personalisation of end users services based on pre-defined preferences for processing and retrieval of contextual information from a Cloud environment.


Use case and discussion

The following discussion showcases a smart city scenario that can benefit from the architecture we have presented in the preceding section. Our premise rests on the importance of smart city solutions for urban governance that involves citizens’ participation for their general wellbeing, city planning and decision-making. We consider citizens not as mere consumers of services offered in smart cities but highlight their inclusive role by acting as collectors of data that informs the development and utilisation of such services. The issue in any such scenario is that the amount of data resulting from the efforts of public agencies that collect such data and contributions from citizens will overwhelm a conventional computing system due to initial and continually increasing storage and processing requirements and compromise quality of service. A Cloud computing based infrastructure that is designed with smart city themed services is well placed to address such issues.

Consider a local city government that maintains a collection of various parameters that reflect the quality of life in the region. These parameters may include general census information and population statistics, labour market profile, crime statistics, traffic, energy and water quality statistics, etc. Occurrence of crime is a critical indicator of the quality of life in a neighbourhood and affects the socio-economic outlook of the region significantly. Research has shown that in addition to the actual occurrence of crime, the perceived fear of crime is also a significant element that affects the quality of life measurement of a region [24],[25]. Coupled with the fact that a proportion of crimes (or micro-crimes) go unreported [26], and hence are not reflected in the regional quality of life records. We can present the use case where citizens, through our proposed architecture, can supplement the authoritative data by collection/submission of regional micro-crime statistics. This data then can be used to deliver informative services to the citizen for various purposes e.g. prototype scenario in next section.
  1. 1.

    Data sources and Platform Integration Layer

  2. (a)

    One of the major sources of data is through Open Data Initiative e.g. UK Open Data [27]. Many city councils and public agencies have started to publish data in both raw and processed, visual format. For example, crime and safety data profile of a local authority e.g. Bristol city council (Bristol Open Data initiative [13]) is a collection of related statistical indicators and can be downloaded as well as viewed in an online visual atlas. Such data is useful for various stakeholders in making decisions such as buying a house in a specific area. However, the aggregated data here is covered at ward scale and hence makes it difficult to associate individual aspects of crimes and safety to a specific spatial coordinates such as smaller streets. The following option (b) complements data collection by associating different events and citizens’ perception to specific locations. The data storage and processing in performed in a cloud-based infrastructure to dynamically scale resource provisioning for citizens queries.

  3. (b)

    User reported micro (and/or macro) security events or crimes e.g. through a desktop based visual interactive map or smartphone based application using GPS coordinates.

  4. 2.

    Data Acquisition and Analysis Layer

  5. (a)

    The local authority collected data is imported into data repositories. The import process can be automated if data is in a standardised format e.g. compliant to Open Geospatial Consortium (OGC) OWS [28] and ISO 19000 Series on geospatial data standards [29]. Otherwise manual extraction, transformation and loading (ETL) process and conversion to standardised formats needs to be carried out.

  6. (b)

    Citizen submitted data, through smartphone or desktop-based applications is also imported at this layer. A significant difference from local authority data is that this submission can benefit from collection of user context at the time of submission e.g. location, time of submission, proximity to reported crime, relevance to supported crime (observer, witness) etc. This context awareness augmentation can be built into the data submission tools used by the citizens. However, this approach may require additional data quality checks to improve accuracy and precision of the spatial data captured by citizens. Also, privacy concerns must be dealt by security layer.

  7. 3.

    Thematic Layer: The available data is harmonised and classified into specific thematic areas e.g. Crime & Safety class, `Bristol’ locality, temporal validity of 2001-2012 are examples of expected classification parameters. The INSPIRE data specificationsa play a major role in harmonising spatial data and reusing at various spatial scales.

  8. 4.

    Service Composition Layer

  9. (a)

    The collection, classification and harmonisation of the aggregated data at the lower layers provide a platform for utilising the data into workflow definitions for service composition. For example, administrators can specify the data fields which can serve as querying parameters for analysis or trigger points that can be used for generating notifications. For the use case being discussed here, these fields can be correlated with user context (through a user profile maintained in the `Management’ layer) such that applications can compare user preferences and specified parameters e.g. crimes and offensives related to dog attacks, during the evenings, within the past year.

  10. (b)

    Similarly, further data aggregation and analysis that can be carried out by using other data sources stored in the lower layers to generate datasets of higher complexity and granularity e.g. aggregating a crime profile with a `Child wellbeing- profile [2] to link crimes or offences that can affect children including road accidents, dog attacks, fights, etc.

  11. 5.

    Application Service Layer: The services and applications at this layer build upon the data collected and aggregated with user context information in the lower layers. Exemplar application include dissemination of the collected data to users in novel, interactive formats including visualisations, analysis services, periodic reports and automated triggers/notifications based on user context e.g. a user who frequents evening walks on a particular track may receive notifications of past and/or recent crimes in the vicinity of the track.


Proof of the concept

As a proof of concept we simulate a cloud-based implementation of selected components of the proposed framework. The purpose is to demonstrate the effectiveness of cloud-based infrastructures to meet Quality-of-Service (QoS) requirements in an urban environment. Based on the above use case, consider the scenario where a user is passing through an area in Bristol. The user would like to buy a flat in this area or start a small business. Such a user would be interested in information about the quality of life situation in that area (e.g. crime and safety, dog attacks, anti-social behaviour etc.). For this purpose, he opens up UrbanAwareness, a smart phone app provided by the City Council for just such purposes. The user selects Crime and Safety from the list of choices available and the app sends a query to the Council's servers along with contextual information; more specifically the coordinates of the user along with the data type preference. Moreover, the user also chooses to restrict the geographical radius about which information is presented to him. This radial preference is also sent by the app as part of the contextual information. For this simulation, we have chosen to focus on the Broadmead area of Bristol City Centre.

The contextual query

The query is encoded in ContextML [23] and sent to the contextual service where it is processed and the results returned to the user. A sample contextual query is shown in Listing ??.

In addition to the location and the radius preference of the user, it also contains a timestamp and an expiry limit for the information. This ensures that the location information is considered invalid after a reasonable amount of time as the user may be moving around.

Processing the queries

Processing the query involves retrieving all data pertaining to the city centre from the database. The data consists of reported incidents along with their description, location and date of occurrence. The incidents are filtered according to the user's preferences. In this case the Vincenty distance [30] from the user’s location to the location of each reported incident is calculated. All incidents that occurred outside of the user's preferred radius are filtered. The remaining incidents are sent back to the mobile app, where they are visualised on a map and presented to the user.

Calculating the Vincenty distance between two points is a compute-intensive task. From the contextual service provider's point-of-view, there may be many users issuing similar queries at the same time. For example, in a medium-sized city of 400,000 to 1 million inhabitants, it is not unreasonable to expect that 20,000 or more people may be using the UrbanAwareness app at any given time. Such a high volume of concurrent queries can easily overload any desktop system, degrading the QoS. This is evidenced by the results shown in Figure 5. This figure depicts high execution times of such queries on a single compute node. In order to maintain an acceptable QoS, it may be desirable for the local council to process the queries concurrently on a cloud infrastructure. This prototype explores the efficacy of using such an infrastructure. The methodology adopted involves measuring the net execution time when multiple concurrent queries are issued and processed for an urban environment. A mapping between various stages in the prototype application to specific layers in the proposed architecture is shown in Table 2. The prototype, therefore, comprises a cloud-based software-as-a-service.
Figure 5

Experimental setup. Simulating the QoS for different scenarios.

Table 2

Mapping the prototype to the proposed architecture

Prototype stage

Architecture layer

User interface

Application service layer

Crime statistics retrieval

Data acquisition and analysis layer

Data filtering

Service composition layer

Simulated cloud infrastructure

Platform integration later

Experimental setup

The experimental setup is shown Figure 6. The mobile application sends a query to the cloud infrastructure via the internet. The infrastructure consists of a single master node that also acts as the scheduler. This node is responsible for receiving queries from the mobile applications and dispatching them to the worker nodes. It is also responsible for receiving the results and communicating them back to the mobile applications. For these experiments actual crime data from the UK Police websiteb ( was used; in particular, data about all reported incidents within 1 mile of the Broadmead area. To simulate the cloud infrastructure, the SimGrid toolkit was used [31]. It allows users to simulate execution of various kinds of jobs on distributed cloud infrastructures. The infrastructure itself is described in terms of its topology, network connectivity and computing power. To accurately simulate execution, a job is described using its computing and data requirements. The unit for computing power in SimGrid is Floating-Point Operations (FLOPS) and for data size is bytes. The parameters shown in Table 3 were used for the cloud infrastructure configuration.
Figure 6

Increasing number of queries and execution time in a two node cluster.

Table 3

Configuration parameters for simulated cloud infrastructure




Computing power


Approximately equivalent to a


per machine

Quad-core 2.5 GHz Sandy Bridge



Internet connectivity

1 Gbps

Arbitrarily chosen value

between machines




Represents typical cluster




Network latency

50 ms

Arbitrarily chosen value

To estimate the FLOPS required by a typical query of the previously-discussed nature, a sample query was implemented. This query took the user context, queried a database for reported criminal incidents and filtered the results based on the radial distance preference specified by the user. The FLOPS required by the application were then calculated using the following formula:
F = R × F × C × ? where F = FLOPS required by query R = Runtime of query F = CPU frequency in GHz C = No of CPU cores ? = CPU FLOPS per cycle per core

The prototype query was executed on a quad-core 2.2 GHz processor using the Sandy Bridge architecture [32]. To simplify the calculation, the query process was bound to a single CPU core. To the best of our knowledge, a CPU with the Sandy Bridge technology can perform 8 FLOPS per cycle per core. Based on this and the observed runtime of the query, it was calculated that each query requires approximately 11 GFLOPS to be executed when the user radius preference was set to 0.5 miles and approximately 13 GFLOPS for a radius preference of 1 mile. The numbers of required GFLOPS will significantly increase with larger sample area.


Using the aforementioned experimental setup, two sets of experiments were conducted. For both sets a simple Round-Robin scheduler was implemented [33]. In one set, the number of queries being executed on the cloud infrastructure were varied and the results are shown in Figures 7 and 8. For this set of experiments, a virtual cluster of 20 nodes was used. As can be seen, there is a significant increase in execution time as the number of queries increases. Such a delay in getting results significantly deteriorates the QoS for users who may consider it unacceptable. In the other set the number of queries remained constant (20000) while the number of nodes in the infrastructure were varied. The results for this are shown in Figures 9 and 10. In this case a sharp decline in execution time is observable at first as the number of nodes is doubled. However, the rate of decline decreases as computing power increases. This is due to the fact that as the number of nodes increases in the cluster, the cost of scheduling the queries for execution also increases. At a critical point (approximately at about 150 nodes), the time taken by the scheduler to schedule the first round of queries becomes greater than the time taken to execute a query. Therefore, at this point increasing worker nodes becomes meaningless since most of them sit idle for most of the time. Compared to these results, the relationship between total execution time and number of queries in the first set of experiments is linear because the number of nodes does not change. Thus, the scheduling time for the cluster remains constant, eliminating its influence.
Figure 7

Query execution time for fixed number of cluster nodes and 0.5 mile radius area.

Figure 8

Execution time for several queries using fixed cluster nodes and 1 mile radius area.

Figure 9

Scaling cluster nodes for fixed number of queries and 0.5 mile radius area.

Figure 10

Query execution time in scaling cluster nodes for fixed number of queries.

Based on the aforementioned results, it can be argued that a utility-based computing model is well-suited for such applications in which demand ebbs and flows with time. Such a model is used in clouds, where resources are provisioned as they are needed and utilised elsewhere when they are not. This way resources are utilised efficiently. Moreover, it is also possible to dynamically decommission and recommission resources as required, saving both energy and money. Clouds have the added benefit that they are invisible to the user. Given all these benefits, clouds are an attractive option for organisations wishing to employ distributed processing resources for similar urban applications.

Conclusion and future work

In this paper we have briefly presented a smart cities perspective and argued that it necessitates myriad of complex interactions between its different applications to generate intelligent information for smart urban governance. Further, we have proposed that Cloud computing can provide a suitable computing infrastructure for data storage and processing needs of smart cities applications. We also emphasise that, on one hand, end users e.g. citizens can collect data from their environment and, on the other hand, should be able to access contextual information from a smart cities based integrated information system with reasonable quality of service. The contextual information presents necessary information to end users based on their predefined preferences but it requires additional processing for contextual data preparation and information visualisation. In this regard, we have proposed a cloud based context-aware service framework and architecture. The context-aware components enable data processing in a specific application context and facilitate application layer to correlate information based on end users preferences.

The use case indicates that citizens’ participation for quality of life and in particular crimes and safety related data collection can provide precise location information but is subject to data quality checks for accuracy tolerance. This capability of the proposed system can be utilised to raise awareness about crime and safety situation of specific places but can also help in collecting data from citizens using smart phones and/or web-based interfaces. However, much concentration would be required to ensure data security and digital citizens’ privacy issues and QoS. Our proof-of-concept implementation of the proposed architecture indicates the effectiveness of cloud-based infrastructure for context-aware citizen services in smart cities. The prototype results show that in order to meet increasing number of user queries cloud-based dynamic resource provisioning can satisfy required QoS requirement. This is true especially when more citizens participate and/or area of interest for querying is enlarged (e.g. 1 to 10 miles). Our future work aims to develop a participatory application for data collection using sensors and smart phones and information provisioning using an open cloud-based infrastructure.


a INSPIRE Themes - Annexes:

b Contains public sector information licensed under the Open Government Licence v2.0. (

Authors’ contributions

ZK and SLK carried out the research in identifying the scope of this research. ZK developed the case for smart cities and citizen participation and SLK integrated context-based information development. ZK introduced the generic contextual framework and SLK applied it to the proposed architecture. Both applied the proposed architecture on a smart city use case. KS and ZK derived a scenario for prototype application. KS designed, described, implemented and evaluated the proof-of-concept implementation. He also presented and analysed the results of the evaluation. All authors read and approved the final manuscript.


Authors’ Affiliations

Centre for Complex Cooperative Systems, Faculty of Environment And Technology, University of the West of England
Department of Computer Science and Creative Technologies, Faculty of Environment And Technology, University of the West of England


  1. Khan Z, Kiani SL: A cloud-based architecture for citizen services in smart cities. In Proceedings of the 2012 IEEE/ACM fifth international conference on utility and cloud computing. IEEE Computer Society, Washington, DC; 2012:315–320. 10.1109/UCC.2012.43View ArticleGoogle Scholar
  2. Ludlow D, Khan Z (2012) Participatory democracy and the governance of smart cities In: Proceedings of the 26th annual AESOP congress, Ankara, Turkey.Google Scholar
  3. Suciu G, Vulpe A, Halunga S, Fratu O, Todoran G, Suciu V (2013) Smart cities built on resilient cloud computing and secure internet of things In: Control Systems and Computer Science (CSCS), 2013 19th international conference on, 513-518. IEEE. []Google Scholar
  4. Naphade M, Banavar G, Harrison C, Paraszczak J, Morris R: Smarter cities and their innovation challenges. Computer 2011, 44(6):32–39. 10.1109/MC.2011.187View ArticleGoogle Scholar
  5. Mitton N, Papavassiliou S, Puliafito A, Trivedi KS: Combining cloud and sensors in a smart city environment. EURASIP J Wireless Commun Netw 2012, 1: 1–10. 10.5923/j.jwnc.20110101.01View ArticleGoogle Scholar
  6. Gubbi J, Buyya R, Marusic S, Palaniswami M: Internet of things (iot): a vision, architectural elements, and future directions. Future Generat Comput Syst 2013, 29(7):1645–1660. Elsevier Science Publishers B. V. Amsterdam, The Netherlands Elsevier Science Publishers B. V. Amsterdam, The Netherlands 10.1016/j.future.2013.01.010View ArticleGoogle Scholar
  7. Bandyopadhyay D, Sen J: Internet of things: applications and challenges in technology and standardization. Wireless Pers Comm 2011, 58(1):49–69. 10.1007/s11277-011-0288-5View ArticleGoogle Scholar
  8. European Environment Agency (2006) Urban sprawl in Europe, the ignored challenge. Technical report, ISBN: 92-9167-887-2, EEA and OPOCE. European Commission. []Google Scholar
  9. Furht B, Escalante A: Handbook of cloud computing. Springer, New York; 2010.View ArticleMATHGoogle Scholar
  10. Khan Z, Ludlow D, McClatchey R, Anjum A: An architecture for integrated intelligence in urban management using cloud computing. J Cloud Comput 2012, 1(1):1–14. 10.1186/2192-113X-1-1View ArticleGoogle Scholar
  11. Komninos N, Schaffers H, Pallot M (2011) Developing a policy roadmap for smart cities and the future internet In: eChallenges E-2011 conference proceedings, Paul Cunningham and Miriam Cunningham (Eds). IIMC International Information Management Corporation Ltd 2011. []Google Scholar
  12. Meier R, Lee D (2011) Context-aware pervasive services for smart cities. Ubiquitous developments in ambient computing and intelligence: human-centered applications. IGI Global, pp 1-6. []View ArticleGoogle Scholar
  13. Bristol City Council GIS Support team (2014) Bristol data profiles. Accessed 06 Sept 2014., []Google Scholar
  14. European Innovation Partnership (2012) Communication from the commission - smart cities and communities. Technical Report C (2012). 4701 final, European Commission. []Google Scholar
  15. Naccarati F, Hobson S (2011) IBM Smarter City Solutions on Cloud. Accessed 06 Sept 2014., []Google Scholar
  16. IBM (2012) IBM Intelligent Operations Center for Smarter Cities. Accessed 06 Sept 2014., []Google Scholar
  17. La HJ, Kim SD (2010) A conceptual framework for provisioning context-aware mobile cloud services In: Cloud Computing (CLOUD), 2010 IEEE 3rd international conference on, 466-473. IEEE. []Google Scholar
  18. Kiani S, Anjum A, Antonopoulos N, Munir K, McClatchey R: Context caches in the clouds. J Cloud Comput Adv Syst Appl 2012, 1(1):7. 10.1186/2192-113X-1-7View ArticleGoogle Scholar
  19. Kiani S, Anjum A, Antonopoulos N, Knappmeyer M: Context-aware service utilisation in the clouds and energy conservation. J Ambient Intell Humanized Comput 2014, 5(1):111–131. 10.1007/s12652-012-0131-1View ArticleGoogle Scholar
  20. Harkous H, Rahman R, Aberer K: C3P: Context-Aware Crowdsourced Cloud Privacy. In 14th Privacy Enhancing Technologies Symposium (PETS 2014). Springer International Publishing, Switzerland; 2014.Google Scholar
  21. Paelke V, Dahinden T, Eggert D, Mondzech J: Location based context awareness through tag-cloud visualizations. Adv Geo-Spatial Inf Sci 2012, 10: 265.Google Scholar
  22. Botts M, Percivall G, Reed C, Davidson J: OGC*; sensor web enablement: overview and high level architecture. In GeoSensor Networks. Springer, New York; 2008:175–190. 10.1007/978-3-540-79996-2_10View ArticleGoogle Scholar
  23. Knappmeyer M, Kiani SL, Moltchanov B, Baker N: ContextML: a light-weight context representation and context management schema. In Wireless Pervasive Computing (ISWPC), 2010 5th IEEE International Symposium On. IEEE, Modena, Italy; 2010:367–372. 10.1109/ISWPC.2010.5483753Google Scholar
  24. Van Dijk J, Manchin R, van Kesteren J, Nevala S, Hideg G (2005) The burden of crime in the EU, A Comparative Analysis of the European Survey of Crime and Safety, EUICS Report. Gallup Europe: 126., []Google Scholar
  25. Keller W, Weinrich M (2004) Insecurities in European cities: crime-related fears within the context of new anxieties and community-based crime prevention. Final report HPSE-CT-2001-00052. DG Research, European Commission, 152. Office for Official Publications of the European Communities, Luxembourg. []Google Scholar
  26. Nyiri Z: Crime and security in European capitals. European Union International Crime Survey (EU ICS) Consortium. Research papers, Gallup Europe; 2005.Google Scholar
  27. Shadbolt N, O'Hara K, Berners-Lee T, Gibbins N, Glasser H, Hall W, Schraefel MC: Linked open government data: lessons from data. gov. uk. IEEE Intell Syst 2012, 27(3):16–24. 10.1109/MIS.2012.23View ArticleGoogle Scholar
  28. Open Geospatial Consortium Inc. (2014) OGC Web Services Common Standard. Accessed 06 Sept 2014., []Google Scholar
  29. Zarazaga-Soria FJ, Muro-Medrano PR: Geographic information metadata for spatial data infrastructures: resources, interoperability and information retrieval. Springer, New York; 2005.Google Scholar
  30. Vincenty T: Direct and inverse solutions of geodesics on the ellipsoid with application of nested equations. Surv Rev 1975, 23(176):88–93. 10.1179/sre.1975.23.176.88View ArticleGoogle Scholar
  31. Casanova H (2001) SimGrid: a toolkit for the simulation of application scheduling In: cluster computing and the grid, 2001. Proceedings. First IEEE/ACM international symposium on, 430-437. IEEE. []Google Scholar
  32. Yuffe M, Knoll E, Mehalel M, Shor J, Kurts T (2011) A fully integrated multi-cpu, gpu and memory controller 32nm processor In: Solid-State Circuits Conference digest of technical papers (ISSCC) 2011, 264-266. IEEE. []View ArticleGoogle Scholar
  33. Rasmussen RV, Trick MA: Round robin scheduling - a survey. Eur J Oper Res 2008, 188(3):617–636. 10.1016/j.ejor.2007.05.046View ArticleMathSciNetMATHGoogle Scholar


© Khan et al.; licensee Springer. 2014

This article is published under license to BioMed Central Ltd. This is an Open Access article distributed under the terms of the Creative Commons Attribution License (, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly credited.