1 Introduction

During 2001–2016, more than seven thousands people have lost their lives to stampedes [1]. Given the state of art of modern technology and management, it is depressing to note these causalities are more than those in the entire twentieth century. Hajj [2,3,4,5] accounts for more than four thousand stampede related deaths in the last twenty-five years [6]. Kumbh Mela [3], to be referred as Kumbh, has also witnessed hundreds of stampede related death in recent times. Surely, these people did not deserve to die in that way.

In this article we shall analyse different kinds of crowds and technologies which could be useful for better crowd management and prevention of disasters. We have chosen two cases, namely Hajj and Kumbh, for our study of large crowded events. In particular we shall look at the crowding nature of these events. In the process, we shall examine merits of various technologies and tools which are either being already used or could be considered for use. We shall also analyse factors for reducing risks of stampedes and other disasters in our chosen cases.

Crowds which we witness time to time differ in many ways. Some crowded events can be classified as regular while others as irregular. Regular crowded events like those of Hajj, Kumbh, Arbaeen [6], Badrinath Yatra [7] are predictable in nature and behaviour, and crowding in them can normally be contained. Irregular events usually occur once or are spontaneous in nature like those of a funeral procession, protest or celebration March, election rally, sporting event or musical concerts. Estimation of the crowd size of an irregular event is very difficult and often impossible. Let us look at some of the irregular gatherings. The funeral of the Iranian leader Ayatollah Khomeini, in Tehran in 1989 was attended by about eleven million people [8]. About four million people gathered for the funeral of the Egyptian singer Umm Kulthum in 1975 [9]. The funeral of Princess Diana [10] in September 1997 had attracted about one million people. More than six million people participated in the Concluding Eucharistic Celebration [11] in Manila by the Pope Francis in January 2015. Three million people marched in February 2003 in the streets of Rome [12] to oppose the invasion of Iraq led by the United States of America. Stanley Cup parade attracted two million people in Philadelphia, USA in 1974 [13].

Management of irregular events can be a daunting task because of the unpredictable size and nature. However, moving events like parades and processions are relatively easy to manage because of their stretch over a large area. Occurrence of stampedes is normally attributed to overcrowding and mismanagement. Our study of the past stampedes of hajj and Kumbh revealed that the hotspots were cramped places assembly and walkway intersections. A stampede may also quite likely occur due to a sudden or unplanned stoppage of a section of the moving crowd. One may think that the management of regular events is easier. But the statistics [6] point to quite an opposite conclusion as most of the deaths have occurred in the stampedes of the Hajj and Kumbh.

From the historical accounts and statistics, we find that the number of participants in many of recurring and non-recurring events is not controlled to manageable limits, and hence catastrophes occur. For an event to be managed properly, crowds must be limited to acceptable international standard, which unfortunately we do not have. Mismanagement is another major factor for reoccurrence of disasters in large gatherings, as is evident from large number of causalities which we find in the annals of history. An example of gross mismanagement was a stampede which occurred on 13 October 2013, during the Hindu festival of Navratri, on a bridge in Datia district, Madhya Pradesh, India, killing 115 people and injuring more than 110 [14]. Religious nature of some events like Kumbh, the Hajj, Badrinath yatra and similar events prevents many reforms that the management would like to do in order to minimize the chances of stampedes. Political parties refrain from bringing reforms in religiously sensitive issues, which in turn prevent to contain build-up of crowds beyond limits. Participation of unauthorized people in certain events like the Hajj is a destabilizing factor to management. Due to these and some other regional factors, the crowds can swell to limits from very management is rendered ineffective. For example, controlling the number of pilgrims to Kumbh is increasing difficult as there is no requirement of granting permissions to the participants. Also there are no, for taking part in the Kumbh, there are no restrictions on the number of pilgrims. In this situation, only the past can give some estimate of the number of future events. In political rallies, sporting events, concerts, funerals, weddings and many other similar non-recurring events, it is not possible estimate the number of participants. In some situations, these crowds can be violent creating chaos and loss of property and lives. Another example is that of the Hajj in 2012, for which only about two million permits were issued. Apparently, participation by more than one and half million illegal pilgrims was a result of local population living in the Hajj precinct. To minimise the chances of stampedes, drowning, fires, and spread of diseases and, the size of crowds must be restricted to manageable limits. This can only be done by political will and by having a binding international standard for gatherings of people. Organisation of crowded events like Kumbh, Hajj and many other religious and social gatherings around the globe would become relatively easier to manage if political consensus was evolved for by international community to implement a commonly agreed standard for holding crowded events. Fortunately, we technology has advanced tremendously and now it much easier to track crowds and identify individuals and spot hot spots. Let us look at some of the technological tools which can be very useful in managing large crowds.

2 Cases of Hajj and Kumbh

Let us look into some aspects of the Hajj and Kumbh for the purpose of application of technologies and improvement of their management.

2.1 The Hajj

Hajj is world’s largest annual gathering of its kind. It is a gathering of millions of pilgrims in the plains of Arafat involving intense and simultaneous rituals is unique and has no parallel in the world. Many of the hajj rituals are very complex and intense in nature. Data of millions of pilgrims from many countries is collected well before the event takes place and can be organised and mined at any point of time. Hajj rituals are concluded within 5 days but the hajj journey for overseas pilgrims spans over four to 6 weeks. All pilgrims gather in Mina, a tent city close to Mecca, a day before the main ritual of the Hajj. On the day of the main ritual, all pilgrims must travel; using surface transport, to Arafat valley located about 20 km from Mina. Standing and praying in the designated area of Arafat valley during the daylight is the main ritual of Hajj. Official account of the past gatherings in Arafat ranges from two to just under four million people. There have always been thousands of unauthorised pilgrims in the past events. All pilgrims must leave the valley at the sunset and travel to a mountainous place known as Muzdalifah, located between Arafat and Mina. To and fro Arafat journey of all must be completed on the same day. Next day all of these pilgrims must return to Mina and then walk to Jamarat Bridge for first stoning ritual. It was this walk in 2015 which at an intersection in Mina caused the worst stampede of all times killing more than two thousand people [6]. After the stoning, the other rituals which follow include a journey from Mina to Mecca and back, usually on the same day. There are further two stoning rituals during the next 2 days. In the past, these rituals have caused a number of stampedes killing hundreds of pilgrims [6]. More in depth analysis and description of the Hajj and its rituals can be found in [2,3,4].

Intense, frequent and simultaneous movements of millions of people and performing rituals within very tight deadlines make the hajj a very complex and unique event in the world. To make it successful, the government of Saudi Arabia through the governorate of Mecca and its various ministries has provided state of art infrastructure and facilities to perform the Hajj. However, despite excellent organization, the hajj management, to a large extent, remains manual. With the ongoing technological advances and changing environment, the hajj management should make use of the latest technologies. There are several steps which need to be taken if the hajj management is to take full advantage of these technologies. In particular, the hajj management would need an efficient Enterprise Resource Planning (ERP) linking the key functions such as pilgrim checking, tracking, identification, travel, accommodation, health management, crowd movement and so on.

Given hectic and crowded movements of millions of pilgrims, health and hospital management for pilgrims is a very critical functional. Providing emergency and health services for these people for several weeks is an extremely difficult task. Hajj is a journey that many people like to take on again and again. Despite several check posts, thousands of unaccounted people find their way to hajj. Before the grant of hajj permission, all pilgrims are required to furnish health certificates. However, bogus health certificates from certain countries cannot be ruled out. Quite possibly, some pilgrims with inaccurate health certificates may bring and spread contagious viruses like that of HIV Aids. Monitoring and managing unregistered pilgrims and those with misleading health condition are very difficult tasks.

2.2 Kumbh

Kumbh (to be referred as Kumbh) is organised once in 3 years and its venue rotates among four different Indian cities namely, Allahabad, Haridwar, Ujjan and Nasik [7]. Kumbh attracts tens of million participants, making it as an event of largest number of people. However, many pilgrims in this (six to eight weeklong) event usually participate in for only a week or so. As all of the Kumbh venues are situated on banks of rivers, crowd can spread out, making it slightly easier to manage. However, the crowd on the day of Mauni Amavasya [15] has in the past caused stampedes. During 2013, about thirty million pilgrims had a dip at the junction of Ganga, Yamuna and Sarasvati in Allahabad.

3 An overview of tools and technologies for crowd controlling

Modern technologies can be very helpful in crowd and disaster management. Some of the recurring events like Kumbh and the Hajj often involve rituals which take place on a particular day and time. Any ritual which calls for participation of all of its participants at a designated time and day is prone to disasters such as stampedes, fires, drowning and other catastrophes. Pilgrims as well as the event managers in such complex and intense crowds would find themselves in a position to helplessness. Intense crowding is also responsible in spreading contagious bacteria, viruses, and diseases. In such situations, tracking, accessibility and identification of pilgrims is critically important.

3.1 Using of RFID

Technological developments of 21st century have produced many tools and gadgets which can be used to improve the event and disaster management. For example, Radio Frequency Identification (RFID) as shown in Fig. 1, also see [16], can be used for controlling, monitoring and managing the movement of crowds, and hence to prevent the occurrence of many disasters. For example, movement of thousands of fuel laden trucks of the Saudi Arabian Company Aramco, the largest oil company of the world, is using various already in use by many businesses involving tracking and tracking devices to locate and manage the movement of their goods. Keeping track of participants in an event, tools tracking (specially the surgical tools), library books tracking, laundry management of thousands of uniforms, tracking the movements of individuals like husbands and wives, passport, credit cards, guns control, car thefts, mobile phones, preventing theft of articles from shopping malls, and many other usage in sports, fashion, robbery proof chips.

Fig. 1
figure 1

RFID tags and bands

3.2 Using fog and cloud computing

Fog is a model for computing, introduced by CISCO in 2012 to reduce or eliminate some limitations of Cloud computing. Fog can be defined as an extension of Cloud to the edge of a network with smaller memory and processing power—it can be any device with an ability to do some computing and storage. Therefore, unlike Clouds, Fog is close to the end user and supports distributed computing model instead of only the central one. More information about Fog can be found from [17]. Here we provide properties of the Fog which differ from Cloud.

  1. 1.

    Fog can be any device has ability to compute and cache data in addition to network. However, Cloud is a set of servers.

  2. 2.

    Support the applications that are sensitive time response and latency as healthy apps, where using Fog makes the latency very low in addition to increasing the response speed and decrease the traffic on the links, while in the Cloud there is big latency.

  3. 3.

    Since the Fog node is near to end user which makes it suitable for performing filtering and processing on data before sending it to the Cloud, that means the overhead on the Cloud will be decreased, and the traffic on the link and network also. So that, it is very useful for big data applications. Ex. Fog can process images and detect features then send these features instead of images to the Cloud. While the Cloud is good for analysing historical or big data.

  4. 4.

    Fog can do some policy on data also before sending it to Cloud and that increases the security, especially for IoT objects not having enough memory and processing power to perform same these tasks.

  5. 5.

    Fog support the mobility apps as smart traffic and manage crowd more than Cloud.

  6. 6.

    Fog increases the availability service comparing to cloud and that very benefit for crowds.

  7. 7.

    Fog nodes can be spread intensity to cover any area fully as Hajj place, so it supports the distributed computing not only central as Cloud.

  8. 8.

    There is limitation in resources of Fog node which these resources unlimited in the Cloud, so Fog computing cannot be instead of Cloud but it can integrate with it.

  9. 9.

    Fog supports awareness location and that not achieved in the Cloud.

  10. 10.

    User can have full control on Fog, while there are three main levels in Cloud (SaaS, Paas, and IaaS).

For a hierarchical or fog architecture (user, object, fog nodes, core fogs, cloud), see Figs. 1 and 2.

Fig. 2
figure 2

Layers of general fog architecture

4 Application of technologies for crowd management

Regular events like Hajj and Kumbh can be effectively managed with the help of mobile and wireless technologies. A description of wireless and mobile technologies can be found in [18]. Let us look the detailed usage of these technologies, as shown in Fig 3, in the cases of Hajj and Kumbh.

Fig. 3
figure 3

Fog architecture

4.1 Case for using technology in Hajj management

To make hajj successful, Saudi hajj ministry and the hajj managers provide many facilities costing hundreds of millions of dollars each year. Despite dedicated organisation and hard work and a huge investment of human and capital resources, many of the hajj operations and management still remain largely manual. Technological advances and changing requirements warrant hajj management to take the advantage of latest technologies. Indeed there are several steps which need to be initiated to take full advantage of the latest technologies. In particular, the hajj management needs an efficient Management Information System (MIS) to manage its key functions such as pilgrim checking, tracking and identification, pilgrim travel, pilgrim health management, crowd management and so on. Health and hospital management during hajj is an extremely difficult but very important function of the hajj management. It is well known that pressure on health services can become unmanageable during hajj period. Moreover, the lack of information about the pilgrims’ state of health makes it very difficult to administer desirable treatment. Communicable diseases like EBOLA have in recent years created havoc in many countries especially in the West African region. Recent outbreak of Middle Eastern Respiratory Syndrome (MERS) in different parts of world has shattered the myth that the virus is confined to the Middle East only. This has forced many countries, including India, to take preventive measures against the virus finding a home in their countries. Undoubtedly, lack in preventive measures and poor management of these deadly viruses can be devastating. These viruses can easily spread in dense and poorly managed crowds. Every year we have many crowded events take place, most of which happen to be in developing and economically poor counties. For details, see [19,20,21,22,23,24]. We certainly need the technologies and expertise to safeguard the participants against all kinds of threats and disasters. An aim of this article is to propose a framework improve the hajj management for wellbeing of the pilgrims. Our framework advocates the use of latest technologies such as RFID, Mobile Apps, IoT, and Digital Streets. The framework resulting from this project can also be utilized during the Omrah season, especially during the month Ramadan, when the crowding also becomes very intense.

4.2 Case for using technology in Kumbh management

Unlike Hajj, which is an annual event with a fixed venue, Kumbh is organised once in 3 years and its venue rotates amongst four different cities. Kumbh pilgrimage doesn’t require prior permission; therefore the data of the pilgrims is not collected. From management point of view, it is increasing difficult to keep track of the people entering the venue of the event from all sides and by all possible means of transport, millions of them making it to on foot. Nevertheless, mobile and wireless technologies can still play a significant part in improving the management of Kumbh.

4.3 Other cases regular crowd cases for using technology

Arba’een is one the largest peaceful gatherings in history, in which in 2013, about twenty million pilgrims from forty countries travelled the fifty-five miles journey on foot from Basra to the city of Karbala in Iraq [6]. The journey involves about 2 weeks of walking culminating in a gathering in Karbala to commemorate 40 days mourning of the death of Imaam Husain, a grandson of prophet Muhammed. This event has been subject to stampedes and terror attacks. A car bomb targeting worshippers returning from Karbala killed at least 20 pilgrims in January 2013.

Badrinath Yatra [7] is a journey to a shrine in Badrinath located in the sub Himalayan region of Uttrakhand, India, at a height of more than three thousand meters. Up to a million people, mostly Indians, undertake this journey. This activity needs to be managed as it involves occasional attacks from some groups.

Organisation and management of both of these and other similar events can also benefit from the wireless and mobile technologies.

4.4 Case for using technology in irregular events

There are many significant and important large gatherings, most of which occur as and when are required. Like the regular gathering, they too have complex management issues of overcrowding, stampedes, fires, terror attacks and spread of disasters. In most of these gatherings, number of participants and their behaviours can be unpredictable. These gatherings can be religious, social, political, mourning processions and deliberations. Often poor anticipation and organisation of these kinds of events often leads to stampedes and other disasters. Indeed modern technologies can help better organisation of these kinds of crowds.

4.5 Case for using technology to minimise health risks

Recently, we have witnessed an unprecedented spread of EBOLA in most of the West African countries. Also, recent spread of MERS in South Korea was something that has surprised many. Indeed these viruses and bacteria are contagious and can spread very quickly if not checked. Spread of these diseases have affected many educated people and consequently they have refrained from participating in crowded events or have taken due precautions. But the number of participants in regular events like the Hajj and Kumbh hasn’t come down. On the contrary, the number has gone up. It is well known that the participants in crowded events of three or more days duration causes the spread of common flu and other diseases due to unhygienic conditions. Another serious health risk arises from the inability of preventing infected illegal pilgrims from entering events. Due to intense crowding and lack of infrastructure, many a times, it is not feasible to check and process all pilgrims within realistic timeframe. In some crowded events such as the Hajj, there is a mandatory requirement of to be medically fit and hence all pilgrims are required to undergo certain vaccinations and produce certificate of fitness. As for the pilgrims to the Kumbh, there is a requirement of vaccinations but many pilgrims can sneak into the Kumbh without having to undergo medical examination. In most of the non-recurring events, vaccination and medical examination of all the participants is in current situations is impossible. The biometric scans at all the major air and sea ports of Saudi Arabia are capable of identifying people with forged documents. The problem however still remains to check the local pilgrims from Makkah region and prevent unauthorised ones from performing the Hajj. But in case of Kumbh, it is difficult to ensure filter the pilgrims with dangerous viruses into the event as there is no system in place of providing permitted on the basis of full health check-up. Equally difficult is to ensure that the health examinations carried out by health centres are not compromised. Thus there are real possibilities of some pilgrims carrying contagious viruses and diseases into the Hajj and Kumbh. More study of health related issues can be found in [25, 26].

4.6 Case for using technology to manage infected pilgrims

People on their death bed often want to perform religious acts. Very often they want to perform a pilgrimage. Thus, it is almost impossible to prevent such people from doing pilgrimage. In regular events like the Hajj, where prior permissions are granted on the basis of medical and security check-ups, administration may succeed to deny the entry to the infected people. But in non-regular events like rallies and processions, it is not feasible to scrutinise participants. Thus, the event managers must have a framework to deal with sick and infected people to safeguard the health of the participants. On the other hand, in some instances, medical reports can be compromised and infected people may succeed to secure a false certificate of health. These are calls for the organisers of recurring events like Kumbh and the Hajj should seriously revise their policies on sick people and progressively consider allowing them to perform the pilgrimage. For it to be accomplished, the organisers must make special arrangements to segregate the sick, infected and terminally ill people for performing their pilgrimages. In doing so, the sick and infected people will come forward to avail the special facilities instead of hiding in the crowds, as the case presently. One of the key elements for a successful organisations and management of crowded events is to know the kind of participants, and accordingly have definite plans for their management. Having basic knowledge about the health of all pilgrims is essential for a successful management of crowded events. Spread of a communicable disease in a crowded event may have devastating results. However, all of these considerations and concessions shouldn’t apply in cases of diseases like EBOLA which are difficult to contain, until a satisfactory way of preventing their spread is discovered. However, people infected with HIV and Hepatitis viruses are capable of being managed and hence could be allowed under supervision. The management shouldn’t neglect disabled and elderly pilgrims and should make adequate arrangements for their wellbeing during their participation in the event.

5 A framework for managing crowded events

Limiting the number of participants in large events, especially the irregular ones, has so far been unsuccessful. If the future events are also going to attract crowds beyond manageable limits, we should expect more disasters. Technology can improve management but is not a cure for overcrowding. So, for a successful management of events, the number of participants must be limited in accordance with a commonly agreed standard for gatherings. We need a standard for crowding, which does not yet exit but is very desirable. Having a crowding standard, organises would be empowered to prevent out of bound crowds and hence prevent many disasters which would otherwise occur. The managers of events need a framework to manage the crowds. A management framework to deal with recurring events like the Kmubh and the Hajj is shown in Fig. 4. For a framework for managing crowds, we need to have basic data about the participants in the event, and have a set of routines to follow. As we know, currently, it is probable that some participants of events might carry HIV, SARS, MARS and other bacteria or virus with them, without the knowledge of the managers. Such participants would be living and moving with other participants. These people would be source of spreading infections and viruses to other pilgrims. To detect and manage such pilgrims, event organisers should use workflow architecture like the pilgrim workflow architecture as shown in Fig. 4, see [34]. Event organisers must also have adequate and easy access to health facilities on the sites of the event. If any of these people become ill, they should be isolated and treated promptly. If such patients were not identified in time and not treated accordingly, the bacteria might spread into a large number of participants. The Hajj is a highly organised event but still needs to refine and articulate its operations. The Kumbh is not a highly organised event because of the huge number of participants with open borders to the rest of country. Also in the Kumbh, an overwhelming number of participants come from within India. There are no visa requirements which would otherwise provide an automatic capture and storing data like in the case of the Hajj. It is recommended that the organisers of the Kumbh introduce a permit system based on health and security. Here are some guidelines which the event mangers would find beneficial, if followed.

  1. (a)

    Collect basic data about the participants, prior to the event if possible.

  2. (b)

    Introduce the system of Identity Card and an entry permit to the event.

  3. (c)

    Advertise well in advance that sick people are welcome to participate.

  4. (d)

    Make health check-up mandatory by nominated health centres a pre-condition.

  5. (e)

    Manage and control health check-up centres at the entry points.

  6. (f)

    Introduce RFID enabled wrist or waist bands, as shown in Fig. 1, to be worn by all participants. Capture all personal and health data into the pilgrim tag.

  7. (g)

    Use all available technological resources including biometric technology, display screens, pressure pads, mobile communication tools.

  8. (h)

    Make adequate arrangements for isolation of pilgrims found to be carrying communicable diseases.

  9. (i)

    Introduce mandatory health awareness training in some countries of the subcontinent and African countries with the help of local authorities to be sponsored by tour operators of the event.

  10. (j)

    Punish tour operators for noncompliance of health procedures.

5.1 The system

In order to make any safety plan successful, cooperation and education amongst all stakeholders is highly desirable. In particular, users must obey the signals and commands otherwise the system would not may not attain desired goals. Another factor critical to a stampede or another disaster aversion from their occurrence is the response time. Here we propose a plan for controlling and managing crowds, our plan is divided into five phases.

5.1.1 Hieratical of processing and control

We divide areas and places of crowd build-ups into a number of cells and distribute crowd data from the sensor networks continuously to many computing nodes (Fog Nodes), enabling each Fog Node for speed processing and decision taking. Each set of Fog Nodes is connected to core of the Fogs to control the integration and cooperation between the nodes and to ensure data processing before relaying it to Cloud, where an extensive data analysis for detection of new knowledge is performed. The new knowledge will be very beneficial for prediction of future disasters and preparing advance solutions to deal with the aftermath of a disaster if it occurs. For details, refer to Fig. 4.

Fig. 4
figure 4

Architecture of crowd control and management system

5.1.2 Collecting/sensing data

Attach RFID-passive (low-cost) tags (cards/bracelets) to the bodies of the individuals (users) of the crowd for accessing whereabouts of them and the size of crowd in each cells as and when required. RFID tags are capable to provide information about the identity and location of each user in the selected cell. Tag Reader can be in the Fog node, or many of Readers can be distributed in the cell and the Host will be in the Fog. The Identity can be used to get more details and information about each user from the Cloud based central database. In situations where GPS and Cellular network do not work, airships may be used.

Deploy different purpose WSNs in each cell for sensing parameters, conditions and situation namely, Ex. Pollution Sensors, Temperature Sensors, and Pressure Sensors, which provide important information about environment of cell and play a vital role in alerting a potential danger of a disaster. Moreover, the data sensed by these them can be stored and analysed for future purposes.

  • Use mobile applications (Android & IOS), which should be installed on users smart phones to enable them to notify the management by a simple click about any eminent danger on the location and time of their being there. In this manner, each use will act as a sensor.

  • Collect information from the social media like Twitter, which is considered as one of the fast ports for news nowadays. However, the management would need to perform processing on data by using a Big-data system or environment to expedite the speed of information and notification as far possible as.

  • Use IP-cameras, which can take high-resolution images of the crowd in each cell and then the Fog process these images to detect the likelihood of any accident or some other disaster without latency or delay.

6 Conclusions

Our lives are precious. We do not want catastrophes and disasters. We do not want spread of life threatening bacteria, viruses and diseases. To a large extent, fortunately, most of the gatherings have so far not been the cause of dangerous diseases. But we have witnessed many stampedes, drowning, fires and other disasters killing thousands of people in many countries associated with bad management of crowded events. We need to seriously think as to what should be done to contain the occurrence of such events. In this paper we have outlined a number of measures. One of them is to have a binding international standard for crowding. The other measures which we have suggested are to have a framework for managing crowds. We have strongly advocated the use of all available technology in our system to manage crowds. Lets us hope that the organisers of crowdd events would start making use of the available technology and improve the management of these events.