PLoS ONE
image
Impact of natural disasters on consumer behavior: Case of the 2017 El Niño phenomenon in Peru
DOI: 10.1371/journal.pone.0244409, Volume: 16, Issue: 1
Article Type: research-article, Article History
Abstract

El Niño is an extreme weather event featuring unusual warming of surface waters in the eastern equatorial Pacific Ocean. This phenomenon is characterized by heavy rains and floods that negatively affect the economic activities of the impacted areas. Understanding how this phenomenon influences consumption behavior at different granularity levels is essential for recommending strategies to normalize the situation. With this aim, we performed a multi-scale analysis of data associated with bank transactions involving credit and debit cards. Our findings can be summarized into two main results: Coarse-grained analysis reveals the presence of the El Niño phenomenon and the recovery time in a given territory, while fine-grained analysis demonstrates a change in individuals’ purchasing patterns and in merchant relevance as a consequence of the climatic event. The results also indicate that society successfully withstood the natural disaster owing to the economic structure built over time. In this study, we present a new method that may be useful for better characterizing future extreme events.

Alatrista-Salas, Gauthier, Nunez-del-Prado, Becker, and Riascos: Impact of natural disasters on consumer behavior: Case of the 2017 El Niño phenomenon in Peru

Introduction

El Niño–Southern Oscillation (ENSO) is a climatic phenomenon consisting of a temperature increase in the equatorial Pacific area. ENSO has a 2-7 years fluctuation period, with a warm phase known as El Niño and a cold phase known as La Niña. A crucial indicator of the presence of El Niño is the variation of the sea surface temperature, which causes changes in the worldwide climate. At the end of 2016 and in early 2017, ENSO had an abrupt change that caused heavy rains and floods. This atypical phenomenon is called El Niño costero. According to United Nations Office for the Coordination of Humanitarian Affairs (OCHA) [1], the first three months of 2017 witnessed the highest amount of human and material loss in Lima and in the northern regions of Peru caused by the coastal ENSO phenomenon. In this paper, we focus on two main events that occurred in February and March 2017 (see Fig in [2]).

In February 2017, strong rainfall accumulation led to 39 fatalities, 14 injured individuals, 8,299 affected individuals, 19 destroyed bridges, 29 affected bridges, 11.92 km of damaged roads, 140.39 km of affected roads, 191.5 ha of destroyed crops, 1,472 ha of affected crops. In addition, the northwest region of Peru and the southern Arequipa region were both in a state of emergency. The second event in March 2017 inflicted more damages on the country, leading to 98 deaths, over 1 million affected individuals, 639 affected bridges, 1,722 affected schools, 351 injured individuals, 20 missing individuals, 605 affected hospitals, 8,481 km of affected roads, 230,317 damaged houses, and 5,244 ha of deteriorated crops, as illustrated in Fig in [3].

In this work, the goal is not to estimate the macroeconomic impact of extreme climatic events such as in [4, 5], but to better understand how resilience leads a population to organize itself after a shock through the prism of the population purchasing behavior. In recent years, in Peru, the El Niño phenomenon has harmed the economy of Peru due to the damage it caused to the country’s infrastructures. However, it has also directly impacted the economic life of Peruvian citizens. For instance, the last event of El Niño costero in 2017, led to rising food prices of lemon and garlic, which are two basic foodstuff in the Peruvian diet. The availability of food supplies was generally due to the degradation of the road network. The degradation of the infrastructure also made it difficult to supply, water, vegetables, and meat to major cities. The unavailability of food items triggered panic buying of the missing items throughout retail stores in impacted and non-impacted areas. It remains unclear how these reported events impacted the consumption behavior of people. In addition, the dynamics of individual purchases during a time of crisis remain poorly studied, which gives us further motivations to study purchase behavior from a time perspective during the transient period of the El Niño event of 2017.

In this study, we aimed to determine the resilience of retail structures by measuring the collective response of consumers living in Lima’s greater area. In particular, we developed our analysis to better understand the consumer habit changes during a period of climatic stress. To achieve this goal, we performed a multi-scale analysis of the consumption patterns based on a credit and debit card transaction dataset of roughly 6 million Peruvian citizens gathered over a 2-year period from 2016 to 2017. In this study, we focused exclusively on the city of Lima for two reasons. First, it is both the political and economic capital of Peru, containing roughly 1/3 of the country’s population. Second, despite the fact that the data are available for the entire country, data from the other regions are sparse due to the lack of bank coverage in certain areas of the country, which makes it difficult to have even coverage of the country.

We first focus on techniques to measure the dynamics of consumer behavior at the macroscopic level to evaluate our central hypothesis that consumer behavior shifted in the aftermath of the 2017 ENSO events. This phenomenon impacted the city of Lima twice: once in mid-February and once at the end of March. We demonstrate that other shocks did not impact consumer behavior as much as these two events.

At the regional level, we examined people’s consumption patterns through individual mobility models. We observed that purchase behavior patterns changed as a consequence of the ENSO, but in a non-homogeneous way. We also examined how specific merchants responded during the events. Our main finding was that despite the fact that the overall economic activity slowed in response to the events, businesses responded differently during the events and in their aftermath. In this paper, we aim to improve preventative measures that can mitigate climatic events and improve the effectiveness of recovery efforts. Our contributions are summarized as follows:

    • We captured anomalous events using the Kullback-Leibler divergence (KLD). The main purpose was to recognize a significant change in the purchase distribution of the population over time as an indicator of an anomalous event.
    • We measured the changes in people’s behavior using the mobility Markov chain (MMC) model. The basic principle was to quantify changes in both individual purchase categories and frequent locations.
    • We quantified how individual merchants reacted during an event by studying the evolution of the PageRank of each merchant in the transaction graph. Here, using the PageRank enables us to characterize how the attractiveness of a merchant compares to others.
    • We measured the evolution of the core/periphery structure of the transaction graph during the events.

In facing extreme climatic events, resilience has emerged as a key concept for understanding how communities and systems are able to absorb and adapt to stress and shocks [6, 7]. Recently, the National Academies of Sciences, Engineering, and Medicine released a study [8] on strengthening supply chain resilience in the aftermath of hurricanes. Four keys domains were identified that must be maintained to foster the resilience of society: power and communications networks, food and water supply, fuel supply, and medical and pharmaceutic supply. Resilience is generally studied with respect to the ecosystem, and few works [913] have explored and analyzed the resilience of social systems facing extreme climatic events. Wang et al . [9] and Guan et al . [11] studied Hurricane Sandy through the lens of human mobility perturbation. Bagrow et al . [14] explored the societal response to external disturbances, such as bomb attacks and earthquakes, by studying mobile phone communication patterns. Niles et al . [12] and Eyre et al . [15] studied social media usage during a climatic event. In particular, they found differences in tweet volume for keywords depending on the disaster type, with people using Twitter more frequently in preparation for hurricanes and for real-time recovery information on tornado and flooding events. With the same goal, in [13], the authors analyzed emotion-exchange patterns that arise from Twitter messages sent during emergency events. Additionally, in a joint work by Banco Bilbao Vizcaya Argentaria (BBVA Data & Analytics: https://www.bbvadata.com/) and UN Global Pulse (UN Global Pulse: https://www.unglobalpulse.org/), Martinez et al . [10] analyzed bank debit and credit card payments and ATM cash withdrawals to map and quantify how individuals were impacted by and recovered from hurricane Odile.

The following works [1619] analyzed customer behavior by studying the sequence of purchases through credit and debit cards. For instance, in [16], the authors used the Sequitur algorithm [20] to classify user spending behavior and characterize people’s lifestyles according to their temporal purchase sequences. In addition, Leo et al . [17, 18] used a detection algorithm to characterize people purchase sequences characterized by the merchant category code (MCC) [21]. Finally, another model based on retail customer data [19] identified temporal regularities in buying behavior. The authors grouped weekly customer buying patterns using a k-means clustering algorithm to extract groups of behaviors Gu per user.

Instead of using debit and credit card data to characterize user spending behavior, in [22, 23], the authors attempted to characterize cities based on the economic activity of their residents. Youn et al . [22] created a model to predict how individual business types systematically change as the city size increases, shedding light on the processes of innovation and economic differentiation. To build the model, the authors used the National Establishment Time Series dataset. The authors used approximately 50 million shopping transactions of 91,000 customers between January 1, 2007 and June 1, 2015 in Leghorn province, Italy. In [23], the authors demonstrated that urban socioeconomic quantities and individual spending activity scaled superlinearly with city size. The approach was assessed through bank card transactions of both debit and credit cards of Spanish clients of Banco Bilbao Vizcaya Argentaria (BBVA) with a dataset containing 178 million transactions made by 4.5 million clients in 2011.

To the best of our knowledge, no research thus far has been conducted to capture the fine-grained impact of extreme climatic events on the spending behavior of individuals and small businesses. In this study, we aim to provide a deeper understanding of retail distribution in the aftermath of a natural disaster.

Results

Kullback-Leibler Divergence (KLD) analysis of the bank transaction distribution

To investigate how the ENSO events in February and March 2017 impacted consumption patterns in Lima, we examined how the relative frequency of merchant categories evolved in time using the KLD. In addition, we demonstrate in Fig 1(a) that customers’ indeed slowed significantly both in number and volume during the first event of February 2017. Furthermore, a smaller number of transactions was observed during the second event in March, but the magnitude was less than that of the February event. The same behavior was observed for cash withdrawal (see Fig 1(b)).

Bank transaction time series and distribution.
Fig 1
a) Transaction volume (red) and frequency (blue) in time. b) Transaction frequency Sk by type, where the transaction type is defined by the merchant category code (MCC) of a merchant (only the 50 most frequent MCC codes are displayed). c) Full distribution of the MCC distribution.Bank transaction time series and distribution.

As a reference, Fig 1c illustrates the distribution of the share of spending in each category of purchases (VISA Merchant Category Classification MCC) in our dataset. The figure displays only the 50 most consumed categories throughout the country averaged throughout our dataset. It can be observed that the distribution of the frequency of each category of purchases follows a Zipf-like distribution with dominant purchases in for food-related stores (i.e., grocery stores and supermarkets), as expected.

To further explore the evolution of the consumption pattern in response to events, we used two different divergence measures D(1) and D(2) to quantify the deviation of the purchase behavior at a given time from the normal purchase behavior. To compute the purchase distribution we classified each purchase record with its MCC information into 15 different categories based on the Classification of Individual Consumption According to Purpose (CIOCOP), as displayed in Table 2. With the divergence measure D(1) (see Fig 2(a)) defined in (2), we measured the divergence of the distribution of the purchase behavior Si(t) (made in district i of the greater Lima area during the interval [t, t + w]) from the average consumption behavior of the entire country in each purchase category S. With the divergence D(2) (see Fig 2(b)) defined in (3) we used a slightly different approach by computing the average KLD between Si(t), the purchase behavior in district i at time t and the purchase behavior at a reference date.

Divergence D(1) and D(2) of various districts of Lima.
Fig 2
The average divergence over all districts of Lima as well as the 25th, 50th, and 75th quantiles are plotted in different shades of brown. a ) sliding window of 7 cumulative rainfalls over Lima city (in green) and the water catchment area of Lima’s rivers (in blue); the right y-axis represents 7 days cumulative rainfall over the water catchment area of Lima’s rivers (blue) and the left y-axis represents the 7 days cumulative rainfall over the area of Lima (green); the data were obtained from the Center for Hydrometeorology and Remote Sensing (CHRS) Data Portal [24]. b) Divergence D(1). c) Divergence D(2).Divergence D(1) and D(2) of various districts of Lima.

The metric D(1) displays a smoothed evolution of the KLD highlighting the macroevolution, while metric D(2) displays a more detailed the evolution of the KLD, including characteristic weekly behavior with relatively stable behavior weekdays and different behavior during weekends.

In Fig 2(b) and 2(C), we present the average divergence of all districts of Lima. We can observe that with both divergence measures D(1) and D(2) the ENSO events in mid-February and mid-March appear very distinctly. This suggests that purchases made in certain categories temporarily shifted toward other categories in response to the ENSO events. In Fig 2(a) we show the 7-day cumulative rainfall over Lima city and the water catchment area of Lima rivers. The February event was the result of a long period of continuous rainfall both over Lima city and the water catchment area of Lima’s rivers that has tipped around the mid-February and has induced flooding and damages. The March event was characterized by a short period of intense rainfall over Lima and its water catchment. In S2 Fig in the S1 File, we present the evolution of the KLD at the district level and observe that not all districts responded evenly to the events.

Causality analysis of the ENSO over the individual purchasing behaviors

To determine whether all district of Lima were affected by the event uniformly, we performed a causal impact analysis [25] on the purchase patterns in each district of Lima after the first event in February. We discovered three modes: districts that were negatively impacted, districts that continued to function as usual, and districts that experienced an increase in purchases. Fig 3 presents the causal impact analysis for 42 districts of Lima, using the Callao series as s control. As a result, three different effects of El Niño can be observed. Fig 3(a) is an example of a decreasing trend in the post-intervention time, displaying a negative impact after the appearance of El Niño. These districts include Lima, Cieneguilla, San Martin de Porres, Ate, San Juan de Lurigancho, Pucusana, Lurigancho, Los Olivos, Ancon, Chorrillos, Santa Rosa, San Bartolo, Jesus Maria, Surquillo, Santa Maria del Mar, Villa el Salvador, Punta Hermosa, Lince, Lurin, and La Victoria . In contrast, the increasing trend in Fig 3(b) reveals a positive impact of El Niño in Pachacamac, Carabayllo, San Isidro, San Borja, Santa Anita, El Agustino, Rimac, Santiago de Surco, Pueblo Libre, Breña, and Punta Negra districts. In addition, Fig 3(c) displays a neutral effect in the post-intervention, which signifies that El Niño did not significantly affect the remaining districts. To summarize the results Fig 3(d) illustrates the results of the decreasing, increasing, and stable trends in green, yellow and red, respectively. We note that the affected districts are close to the Huaycoloro, Chillón, Lurín, and Rímac rivers causing floods.

Causal impact at the districts level for February 2017.
Fig 3
a) List of districts that were negatively impacted. b) List of districts that were positively impacted. c) List of districts that experienced a neutral impact. d) Map of Lima showing the districts with a negative (red), positive (green) and neutral (yellow) impact.Causal impact at the districts level for February 2017.

To better understand the causal effects, we query to an official report issued by Instituto Nacional de Defensa Civil (INDECI), the Peruvian organism in charge of Disaster Risk Management, on February and March 2017, heavy rainfalls were recorded in several Lima districts, including San Juan de Lurigancho, Lurigancho-Chosica, Chaclacayo, Pachacamac, and Comas. These rains caused numerous floods due to the overflow of rivers Huaicoloro, Lurín, Rimac, and Chillón. The INDECI report also mentions that many businesses were closed during the period, and the inhabitants of these areas were forced to make their purchases in other districts to buy food and other needs. So, these districts show a negative impact. We also hypothesize that the districts with a positive impact have received an influx of purchases from the most impacted districts.

Individual purchasing behavior

In this subsection, we focus on the impact of the El Niño phenomenon on people through individual MMC as a proxy for whether an individual was affected. The official Peruvian definition refers to a person, animal, territory, or infrastructure suffering disturbance in its environment due to the effects of a phenomenon. Immediate support may be required to reduce the effects of the disorder by continuing regular activity [26]. Under normal conditions, people tend to buy items from the same categories, such as “Food and non-alcoholic beverages”, “Clothing and footwear”, and “Transportation”. However, in the presence of a disruptive phenomenon, frequent purchase categories can change. Thus, the stationary vector of the MMC model represents the probability of buying from a given merchant and therefore from the category. It should be noted that merchants belonging to the same purchase category are merged, and their respective probabilities are added. Finally, the categories are sorted according to their weights.

With respect to the variation in purchase categories for an individual i over time, we used four weeks of individual historical consumption data to compute the stationary vector πt. Thus, we built a set of consumption stationary vectors csvi = {πt, πt+1, …, πt+n} shifted by one week for individual i . Accordingly, we used the normalized discounted cumulative gain metric (see Fig 4) to measure the variability between two consecutive consumption patterns πt and πt+1 belonging to individual i. Finally, we averaged the variations for all individuals living in different districts of Lima.

Time series clustering.
Fig 4
Time series clustering.

Fig 5 reveals a change in purchase patterns in all districts on approximately February 15th. First, the buying categories changed noticeably in residential areas compared to vacation property districts, such as Cieneguilla, Santa Rosa, San Bartolo, and Pucusana. Second, in residential districts, people could either not reach gas stations, or gas stations suffered a fuel shortage due to infrastructure degradation. Therefore, individuals tended to use more public transportation services, or ridesourcing services such as Uber, and Cabify. There was also an increase in purchases in the insurance, home furniture, and health categories. Finally, vacation property districts demonstrated an increase in the health and technology categories, while the clothing category decreased.

Average variation of purchase category composition.
Fig 5
Stationary vectors of the mobility Markov chain models were used as input and were built from four weeks of consumption by a week for the normalized discounted cumulative gain (NDCG) gain for all individuals living in a given district.Average variation of purchase category composition.

Merchant network resilience

It is well known that the distribution of the purchases is a highly skewed distribution (Zipf-like distribution) toward certain purchase categories [16, 27], where food-related categories are the the dominant categories (see Fig 1). With such a highly skewed distribution, it may not always be easy to detect variations in the empirical distribution due to the fact that certain categories are hidden in the tail of the distribution. Even if the divergence metric displays a clear sign of a shift in the distribution, to avoid these pitfalls, we used a different approach and analyzed the microscopic dynamic of each merchant during the ENSO events. Specifically, we analyzed the merchant dynamics during the ENSO events, studying the ranking evolution of individual merchants through the analysis of the discrete evolution of their PageRank in the transaction graph. Additional information on the preprocessing of the transaction graph is provided in the PageRank section. The transaction graph (see Fig 6) is an aggregation of the transaction records into a weighted and directed graph. Based on the transaction graph, we computed the PageRank of the nodes in the resulting directed and weighted graph.

Transactions graph.
Fig 6
a) Purchase sequences b) Users purchase sequence represented as directed graph. c) Users purchase sequence represented as directed Weight graph, where the weights represent the number of transactions made during a given time slice between two merchants.Transactions graph.

To analyze the ranking evolution of each merchant, we split the transaction graph into time slices G=[Gt0,Gt1,Gt2,]. Computation of the PageRank for each time slice enabled us to create a time series ri(t) that represents the temporal evolution of the ranking of each merchant i . In Fig 7, we provide several examples of the PageRank evolution for different merchant categories. Finally, we clustered the time series ri(t ) using the kmeans algorithm once we transform each the time series using a symbolization technique for time series (1d-SAX). Additional information on the clustering method is provided in the Method section. As a result, six distinct profile patterns (see Fig 4) emerged that highlighted different response profiles as a function of the merchant category and area during the ENSO events.

Example of the normalized rank evolution of merchants in Lima, Peru, during the interval of January 2017 to April 2017.
Fig 7
a) Starbucks coffee shop. b) Fast food restaurant. c) Supermarket. d) Restaurant.Example of the normalized rank evolution of merchants in Lima, Peru, during the interval of January 2017 to April 2017.

In Fig 8(a), we illustrate the distribution of the merchant categories in each cluster. Our main findings are summarized in Fig 9. First, The cluster #5 is a cluster of merchants that experienced a drop in their ranking during the ENSO events in February. Here, we observed an overrepresentation of gas stations and food-related merchants. In contrast, for cluster #2, where merchants experienced a surge in their ranking during the ENSO events in February, we observed an overrepresentation of health related merchants and gas stations. These results can be explained as follows: some gas stations experienced shortages, and there was a surge in the demand for health-related products.

Proportion of merchant categories/area inside different clusters.
Fig 8
a) Proportion of merchants per cluster as a function of their Classification of Individual Consumption According to Purpose (COICOP), b) Proportion of merchants per cluster as a function of their district area. The top of each figure indicates the relative differences between the proportion of a given category inside a cluster and the proportion of that category in our dataset.Proportion of merchant categories/area inside different clusters.
Summary of most important merchant categories found in each cluster.
Fig 9
Summary of most important merchant categories found in each cluster.

In Fig 8, two additional phenomena can be observed: first, an increase in insurance purchases after the first event in February (cluster 3), and second, an increase in purchases of technology related items during the first event (cluster 2). We observe a surge in the purchased of new insurance policies after the first event. It should be noted that Peru is an underinsured country (only approximately three in hundred houses are insured), and in the aftermath of the event it appears that people decided to purchase new insurance policies. With respect to technology-related items, a query to the database at our disposal revealed that no transaction were made in that category from February 15 to 19, 2017. We observed a shift in purchases after February 19. This behavior appears to be due to the purchase of prepaid cell phone plans.

We note that people’s responses to the crisis were very heterogeneous in time, space and behavior. We believe that the microscopic approach developed in this study is a key methodological innovation that was helpful for fully understanding the extent of a crisis and the societal outcome of an event.

Resilience transaction graph

The presence of a core/periphery structure in networks is an indication that the overall network structure is resilient to the random removal of some nodes [28, 29]. By exploring the transaction graph, we observed that a very small core of merchants (constituted of less than 1% of merchants) was almost fully connected and surrounded by a vast periphery that was connected to the core in a tree-like manner. The merchants belonging to the core structure were often large supermarkets that provide a vast array of goods including basic necessities. To monitor the size of the core network structure over time, we computed the temporal evolution of the size of the core structure of the transaction graph at each time slice G=[Gt0,Gt1,Gt2,]. To derive the size of the core structure, we used the method developed by Ma et al . [30] (see Materials and methods section for more detailed information), a method designed to detect the core/periphery structure in a directed and weighted graph. In the S1 File, we also provide the results that exploit a different approach with the k-core decomposition algorithm. Our main findings are summarized in S4a Fig in S1 File we explore the dynamics of the transaction graph. In S4b Fig in S1 File we see that the node that belongs to higher core concentrates a higher proportion of transactions than nodes in lower cores.

As previously demonstrated, ENSO events impacted the buying people’s buying patterns; however, in Fig 10 we also demonstrate that these events significantly impacted the size of the core structure |Vc(t)| of the transaction graph. Our main finding is that the core size distribution is similar to the normal distribution. We calculated the Kolmogorov-Smirnov (KS) distance between the core size distribution |Vc(t)| and normal distribution N(68,17), and the KS-test produced D=0.09 and p- value = 0.19. Nonetheless, despite the relative accordance with the normal distribution, the core size distribution shows in Fig 10b demonstrates extreme values at both tails that deviate from the normal distribution. In Table 1, we display the list of noticeable events with their standard scores. Our results reveal that for both ENSO events in mid-Feb and mid-March, the core size significantly decreased from the usual behavior compared to Mothers’ Day, or Easter (two particularly popular holidays in the Peruvian culture) where the core size significantly increased. In Fig 10(d) we see the changes in the category distribution of merchants present in the core during both events (the February event and the March event). During these events only a subset of the merchant’s categories remain present in the core. Health and food related merchants are the main remaining categories.

Evolution of the core structure of the transaction graph over time.
Fig 10
a) Temporal evolution of the size of the core structure of the transaction graph. b) Boxplot of the core size distribution. c) Core size distribution approximated by kernel density estimation. d) Fraction of merchants that belong to the core nodes split by categories, the diamond represents the category split during the first ENSO event of February, whenever the square represents the second event of end of March.Evolution of the core structure of the transaction graph over time.
Table 1
Standard score of core size |Vc(t)| at various event times.
date|Vc(t)|z-scoreevent type
2017/02/2027-2.44ENSO event mid-Feb
2017/03/2438-1.79ENSO event end of March
2017/04/0741-1.61ENSO event beginning of April
2017/04/11971.67Easter vacation
2017/05/171545.02Mother’s day

Discussion and conclusion

In this study, we explored the impact of the ENSO events of 2017 on retail sales through the lens of a massive transaction dataset from the greater area of Lima, Peru to understand how the population handled the aftermath of the climatic events. At the macroscopic level, despite a clear slowdown of economic activity triggered by the two main ENSO events occurring in February and March, we demonstrated that the overall economic activity recovered swiftly from the events (see Fig 1). The second event appears to have had less impact on the economic activities than the first event, although its intensity was not smaller. A more detailed analysis of the events indicated that regions that registered more damages induced by the events also suffered from a long-term deficit of consumption compared with other areas (see Fig 3). We quantified how individual purchase categories and frequent locations changed during the events (see Fig 5), demonstrating that there was a transient period during which people changed their purchase sequences to accommodate new necessities or constraints. By tracking the ranking evolution of each small business in the transaction graph, we revealed that small businesses were impacted very differently based on their category. A subset of merchants, such as pharmacies, hospitals, gas stations, and grocery stores exhibited a surge of activity during the events. In contrast, merchants that sold non-necessities experienced a drop in their ranking during the events. In addition, by studying the core network structure of the transaction graph, we observed a clear reduction in the size of the core network structure during both events, which contrasts with other types of events, such as Easter or Mother’s Day, where the core structure increased in size.

We analyzed different small subsets of merchants in various districts to evaluate alternative explanations for the slowdown of sales, such as failure of point-of-sale systems and problems in payment architectures. However, none of the analyzed merchants experienced these problems. Nevertheless, almost all merchants encountered severe problems with the water supply during the events. We also asked merchants about the decrease in the number of clients during the two events of the El Niño phenomenon in 2017. The responses were the same: the number of customers did not decrease, and the usual number of employees attended. We believe that this was due to the fact that the vital infrastructure in inner Lima did not suffer significantly during the event.

Despite the strength of the event, Peruvian society continued its activities due to the economic structure and the manner in which the population faced the event. One explanation is that Peruvian society is used to periodic climatic events that occur on a 2–4 year basis, although the 2017 event was stronger in intensity.

We believe that beyond the case of the ENSO phenomenon, the methodological tools designed and developed in this study can help further understand the microscopic dynamics that underpin the societal outcome of climatic events. We believe that our approach based on the microscopic analysis of consumption patterns can help build information systems to aid the population during the relief effort period of a climatic event or other type of societal shock. However, this microscopic approach may raise privacy leaks [31] that need to be further addressed by applying privacy techniques such as in [32, 33], while minimizing the impact of privacy techniques on the relevance of our study. Moreover, lots remain to be learned on how we react as a human and as a society during a crisis, such as an extreme climatic event, this field remains open for further inquiry. We think, for instance, that it would be interesting to separately estimate the impacts for cohorts with different social-economic factors; or if a person is impacted differently based on his/her gender or age.

Materials and methods

Transaction dataset

This dataset was gathered from June 2016 to May 2017, containing approximately 1.5 million clients, 55,000 distinct merchants, and 116.8 million transactions from both credit and debit cards in Peru. These data are associated with customer consumption registered by credit and debit cards in stores located in Peru.

The dataset is composed of the following features:

    • Features describing the clients such as anonymous ID, age, gender, and country in which the card was issued.
    • Features describing the transaction, such as the timestamp, amount spent in Peruvian currency, and the number of transactions.
    • Features associated with the bank agency, namely the region, province, and district, in which the agency of the client was located.
    • Features characterizing the merchants, such as merchant ID, merchant name, merchant address, the MCC [21] and the Lambert coordinates of the merchants.

In this study, we merged the MCC categories into a more meaningful categorization, often used in microeconomics [34], namely, Classification of Individual Consumption According to Purpose COICOP [35]. The COICOP aims to divide individual consumption expenditures into 15 categories, as depicted in Table 2.

Table 2
Classification of Individual Consumption According to Purpose (COICOP).
CodeName
01Food and non-alcoholic beverages
02Alcoholic beverages, tobacco and narcotics
03Clothing and footwear
04Housing, water, electricity, gas and other fuels
05Furnishings, household equipment and routine household maintenance
06Health
07Transport
08Information and communication
09Recreation, sport and culture
10Education services
11Restaurants and accommodation services
12Insurance and financial services
13Personal care, social protection and miscellaneous goods and services
14Individual consumption expenditure of non-profit institutions serving households
15Individual consumption expenditure of general government

Kullback–Leibler Divergence (KLD)

To analyze buying patterns, we used the KLD defined in (1) to compute the two different divergence measures D(1) and D(2). The KLD is a general measure of dissimilarity between two probability distributions. In (2), we define D(1) as the KLD between the probability distribution of the share of purchases Si(t)(k), where Si(t)(k) is the share of total expenditures allocated to expenditure category k ∈ [1, 2, …, K] and K is the total number of COICOP expenditure categories, in region i at time t. Thus, Si(t)(k)=(si1,si2,sik) denotes the vector of the expenditures shares in each category made by individuals living in district area i, during the time interval [t, t + w]. We compared it with the average share of purchases in each COICOP category for all transactions in our dataset S(k), which represents the average behavior of a consumer throughout the country. Finally, if a substantial divergence suddenly appeared in our dataset, we considered it a change in the consumption pattern of an individual living in the particular area. In this study, we limited the geographic area to the 42 districts of Lima. In (3), we define the divergence measure D(2) as the average KLD between Si(j) the distribution of the share of purchases at time j in district j and Si(k) the distribution of share of purchases at time k in district j over w days.

KLD(PQ)=kKP(k)log2[P(k)Q(k)]
D(i,w)(1)(j)=KLD(Si(j)S¯)
D(w,i)(2)(j)=1wd=1wKLD(Si(j)Si(k+d))

Causal impact

Causal impact captures causality by measuring the difference between two different time series: one series under treatment, and another series not under treatment. Therefore, the causal inference algorithm takes three parameters: 1) the observed o time series To,i(t)(k)), where k ∈ [1, 2, …, K] is the total number of COICOP expenditure categories, in region i within period t; 2) a control time series c Tc,i(t)(k)): and 3) an intervention date d, which is February 15, 2017, the start date of the El Niño phenomenon. The first step is to train a statistical or machine learning model, using parts of the time series before the intervention date (i.e., pre-period) to learn how to explain the studied time series To,i(t)(k) as a function of the control time series Tc,i(t)(k). Then, the learned model is used to predict the behavior of the studied time series after the intervention date (i.e., post-period), which provides the contrafactual estimate. Finally, the algorithm measures the difference between the predicted and real-time series to capture causal impact. It is worth noting that the model used in this study is the Bayesian structural time-series model [25].

Individual stationary purchasing behavior

To capture individual purchasing behavior, we use a MMC. A MMC [36] models the mobility behavior of an individual as a discrete stochastic process in which the probability of moving to a state (i.e., point-of-interest (POI)) depends only on the previously visited state and the probability distribution of the transitions between states. In our case, POIs represent the merchants visited by clients (see Fig 11(a)). More precisely, a MMC is composed of a set of states {M1, M2, ⋯, MN} where N is the total number of merchants, in which a transaction takes place. Transitions, such as TMi,Mj(u)(t), represent the probability of a user u moving from state Mi to state Mj during the interval t of 7 days (see Fig 11(b)). Finally, we computed the steady state probability vector π(u)(t) where each πi(u)(t) represents the probability of purchase of a product in merchant i from the user u during the t period (see Fig 11(c)).

ΠK(u)(t)=iKπi(u)(t)
Rel(u)(t)={ΠK(u)(t)|K[1,,13],withK>K,ΠK(u)(t)ΠK(u)(t)}
In our context, since we are more interested by the type of goods purchased than by the specific merchant, we aggregated in (4) the steady state vector ΠK(t) that represents the probability of completing a purchase in a given COICOP category K (e.g., health, or clothing and footwear categories). In (5) we created a relevance metric set Rel(u)(t ) sorted in a descending order (see Fig 11(d)). Therefore we used the relevance metric to compute the discounted cumulative gain (DCG) in (6) to measure the consumption variation over time for individuals. The principle behind this metric is that COICOP categories K with higher probability ΠK are more relevant. In (7) we capture the purchasing variation between consecutive periods for the same individual u . Finally, in (8) to capture the purchase variation for all individuals the mean of all individuals’ nDGC is computed for each period t.
DGC(u)(t)=i=1|K|2Reli(u)(t)1log2(i+1)
nDCG(u)(t)=DGC(u)(t)DGC(u)(t1)
nDCG¯(t)=1|u|unDGC(u)(t)

Individual stationary purchasing behavior process.
Fig 11
Individual stationary purchasing behavior process.

Transaction graph

Based on the transaction dataset, we can define the transaction graph G as a list of temporal snapshots G=[Gt0,,Gtk] where Gt(V, E(t), W(t)) is a weighted directed graph in which nodes V represent the merchant. An edge eij(t) exists if there is at least one credit or debit card holder that completed a purchase with merchant i and then merchant j during the interval [t − 4, t + 4] (in days). The weights represent wij(t), the number of co-transactions made by different credit card holders during the interval interval [t − 4, t + 4] between merchant i and merchant j. The orientation of the edge represents the temporal order of the purchase sequence. For instance, given the following purchase pattern of user l during the interval [t0 − 4, t0 + 4]: {Pu(l)(t01),Pv(l)(t0+1),Pw(l)(t0+3)}, the directed edges, (u, v) and (v, w) would be present in graph in the snapshot Gt0.

PageRank

PageRank quantifies the importance of nodes (centrality) in a network by computing the dominant eigenvector of the PageRank matrix (or Google matrix [37]). Using the PageRank algorithm we computed the ranking ci(t ) (9) of all merchants i in our dataset at each given instant t, where W(t) is the weighted adjacency matrix of the snapshot Gt of transaction graph G.

C(t)=αS(t)1W(t)T+(1α)1N11T
Here sii(t)=j=1Nwij(t), 1 = [1, …, 1]T and α = 0.85. We derived the evolution of the ranking of each merchant ri(t) by computing the PageRank of each snapshot G(t0), …, G(tk) of our dataset. Finally, we computed the normalized ranking ri(t ) ∈ [0, 1] (10) of each merchant i at time t as follows:
ri(t)=1ci(t)1maxici(t)
In Fig 7, we can observe several examples of the PageRank evolution in time for distinct merchants.

Time series clustering

To cluster the time series of the ranking evolution of each merchant, we used 1d-SAX [38] a method for representing a time series as a sequence of symbols containing information about the average and trend of the series on a segment. Symbolic aggregate approximation (SAX) is one of the main symbolization techniques for time series. Our goal was to cluster the merchant ranking evolution according to the merchants’ behavior, especially during the main ENSO event of Feb. 2017. To do so, we used the 1d-SAX algorithm to help extract the main trends in each time series. The 1d-SAX algorithm is based on three main steps:

    • Divide the time series into segments of length L.
    • Compute the linear regression of the time series on each segment.
    • Quantize these regressions into a symbol from an alphabet of size N.

After the 1d-SAX transformation (see Fig 12 for different steps of the transformation of the time series), we clustered the time series using the standard K-mean algorithm using the Euclidean distance as the distance metric. In Fig 13 we depict the silhouette score of our clustering method across different parameters range of cluster numbers and segment lengths. Based on sensitivity analysis we determined that six clusters and a segment length L = 15 led to an effective trade-off for clustering our time series with an alphabet size of N = 8.

Example of preprocessing step used to prepare the time series before the clustering step using the tslearn tool chain [39].
Fig 12
a) Row time series ri(t) of the rank of merchant i over time. b) The time series ri(t) was standardized by subtracting the mean and dividing by the variance. c) The 1d-SAX transformation was applied to the standardized time series ri(t) with an alphabet size of N = 8.Example of preprocessing step used to prepare the time series before the clustering step using the tslearn tool chain [39].
Silhouette score.
Fig 13
Silhouette score.

Tracking the evolution of the core/periphery structure of the transaction graph

Many networks exhibit a core/periphery structure [40, 41], in which a set of nodes forms a densely connected group that governs the overall behavior of the network. This structure is recognized as a key mesoscale structure in complex networks that influences the functionality of a network, as demonstrated in the delivery of information in the Internet [42].

To partition nodes into two classes, core Vc and periphery Vp, we used the method developed by Ma et al . [30]. The proposed method ranks the nodes by degree in descending order. For a given node, it divides its links into two groups: those with nodes of a higher rank and those of a lower rank. More formally, a node of rank r has degree kr the number of links it shares with nodes of a higher rank is kr+, and the number of links with nodes of a lower rank is krkr+. To distinguish the core’s node from the remaining nodes, we examined the nodes starting from the node of the highest rank toward the node of the lowest rank and stopped when we identified node r* where kr+ reached its maximum as depicted in Fig 14. Because the definition of a rich core can be extended to weighted directed networks, we used the method proposed in [30] to extract the core/periphery structure of all graph snapshots Gt (weighted and directed) of the full transaction graph G(V,E). Finally, we computed the size of the core |Vc(t)| over time where Vc(t) ⊆ V.

Example of core/periphery detection for the weighted directed network.
Fig 14
Here the core/periphery of a slice of the transaction graph of May 2, 2017 is displayed. The core size is |Vcore(t)| = 82 for a graph with |V| = 11, 179 vertices.Example of core/periphery detection for the weighted directed network.

Acknowledgements

This work was conducted at the Energy4Climate Interdisciplinary Center (E4C) of IP Paris and Ecole des Ponts ParisTech. The authors thank the computing resource platform of Telecom SudParis and M. Christian Bac for his help. The authors thank M. Latapy for many useful discussions.

References

Peru: Rainy season—Situation Report No. 12 (as of 27 June 2017)—Peru | ReliefWeb; 2017. Available from: https://reliefweb.int/report/peru/peru-rainy-season-situation-report-no-12-27-june-2017.

(ERCC) ERCC. 20/03/2017 Peru—Severe weather; 2017. Available from: https://erccportal.jrc.ec.europa.eu/getdailymap/docId/1999.

(ERCC) ERCC. 31/03/2017 Peru—Severe weather; 2017. Available from: https://erccportal.jrc.ec.europa.eu/ERCMaps/20170331_Peru_SW_v1.pdf.

HallegatteS, HourcadeJC, DumasP. Why economic dynamics matter in assessing climate change damages: Illustration on extreme events. Ecological Economics. 2007 , doi: 10.1016/j.ecolecon.2006.06.006

AhmedSA, DiffenbaughNS, HertelTW. Climate volatility deepens poverty vulnerability in developing countries. Environmental Research Letters. 2009 , doi: 10.1088/1748-9326/4/3/034004

CarletonTA, HsiangSM. Social and economic impacts of climate. Science. 2016;353 (6304). , doi: 10.1126/science.aad9837

AdgerWN, HughesTP, FolkeC, CarpenterSR, RockströmJ. Social-ecological resilience to coastal disasters. Science (New York, NY). 2005;309(5737):10369. , doi: 10.1126/science.1112122

Strengthening Post-Hurricane Supply Chain Resilience. National Academies Press; 2020. Available from: https://www.nap.edu/catalog/25490.

WangQ, TaylorJE. Quantifying Human Mobility Perturbation and Resilience in Hurricane Sandy. PLoS ONE. 2014;9(11):e112608 , doi: 10.1371/journal.pone.0112608

10 

Martinez EA, Rubio MH, Martinez RM, Arias JM, Patane D, Zerbe A, et al. Measuring Economic Resilience to Natural Disasters with Big Economic Transaction Data. In: the Data For Good Exchange; 2016. Available from: http://arxiv.org/abs/1609.09340.

11 

GuanX, ChenC, WorkD. Tracking the Evolution of Infrastructure Systems and Mass Responses Using Publically Available Data. PLOS ONE. 2016;11(12):117. , doi: 10.1371/journal.pone.0167267

12 

NilesMT, EmeryBF, ReaganAJ, DoddsPS, DanforthCM. Social media usage patterns during natural hazards. PLOS ONE. 2019;14(2):116. , doi: 10.1371/journal.pone.0210484

13 

KušenE, StrembeckM. An analysis of emotion-exchange motifs in multiplex networks during emergency events. Applied Network Science. 2019;4(1):8 , doi: 10.1007/s41109-019-0115-6

14 

BagrowJP, WangD, BarabásiAL. Collective response of human populations to large-scale emergencies. PLoS ONE. 2011;6(3). , doi: 10.1371/journal.pone.0017680

15 

EyreR, De LucaF, SiminiF. Social media usage reveals recovery of small businesses after natural hazard events. Nature Communications. 2020;11(1):1629 , doi: 10.1038/s41467-020-15405-7

16 

Di ClementeR, Luengo-OrozM, TravizanoM, XuS, VaitlaB, GonzálezMC. Sequences of purchases in credit card data reveal lifestyles in urban populations. Nature Communications. 2018;9(1):3330 , doi: 10.1038/s41467-018-05690-8

17 

LeoY, FleuryE, Alvarez-HamelinJI, SarrauteC, KarsaiM. Socioeconomic correlations and stratification in social-communication networks. Journal of The Royal Society Interface. 2016;13(125):20160598 , doi: 10.1098/rsif.2016.0598

18 

LeoY, KarsaiM, SarrauteC, FleuryE. Correlations and dynamics of consumption patterns in social-economic networks. Social Network Analysis and Mining. 2018;8(1):9 , doi: 10.1007/s13278-018-0486-1

19 

GuidottiR, GabrielliL, MonrealeA, PedreschiD, GiannottiF. Discovering temporal regularities in retail customers’ shopping behavior. EPJ Data Science. 2018;7(1):6 , doi: 10.1140/epjds/s13688-018-0133-0

20 

Nevill-ManningCG, WittenIH. Identifying Hierarchical Structure in Sequences: A Linear-time Algorithm. J Artif Int Res. 1997;7(1):6782.

21 

VISA Merchant Category Classification (MCC) codes directory;. https://www.dm.usda.gov/procurement/card/card_x/mcc.pdf.

22 

YounH, BettencourtLMA, LoboJ, StrumskyD, SamaniegoH, WestGB. Scaling and universality in urban economic diversification. Journal of The Royal Society Interface. 2016;13(114):20150937 , doi: 10.1098/rsif.2015.0937

23 

SobolevskyS, SitkoI, Tachet des CombesR, HawelkaB, Murillo AriasJ, RattiC. Cities through the Prism of Peoples Spending Behavior. PLOS ONE. 2016;11(2):119. , doi: 10.1371/journal.pone.0146291

24 

NguyenP, ShearerEJ, TranH, OmbadiM, HayatbiniN, PalaciosT, et al The CHRS Data Portal, an easily accessible public repository for PERSIANN global satellite precipitation data. Scientific Data. 2019;6(1):180296 , doi: 10.1038/sdata.2018.296

25 

BrodersenKH, GallusserF, KoehlerJ, RemyN, ScottSL, et al Inferring causal impact using Bayesian structural time-series models. The Annals of Applied Statistics. 2015;9(1):247274. , doi: 10.1214/14-AOAS788

26 

Torres D, Ortiz F, Solis T, Tapia W, Merino G, Pintado J, et al. Manual de Evaluación de daños y Análisis de Necesidades EDAN PERÚ. Sinco Industria Gráfica EIRL; 2018.

27 

PennacchioliD, CosciaM, RinzivilloS, GiannottiF, PedreschiD. The retail market as a complex system. EPJ Data Science. 2014;3(1):33 , doi: 10.1140/epjds/s13688-014-0033-x

28 

PeixotoTP, BornholdtS. Evolution of Robust Network Topologies: Emergence of Central Backbones. Physical Review Letters. 2012;109(11):118703 , doi: 10.1103/PhysRevLett.109.118703

29 

VermaT, RussmannF, AraújoNAM, NaglerJ, HerrmannHJ. Emergence of core–peripheries in networks. Nature Communications. 2016;7(1):10441 , doi: 10.1038/ncomms10441

30 

MaA, MondragónRJ. Rich-Cores in Networks. PLOS ONE. 2015;10(3):e0119678 , doi: 10.1371/journal.pone.0119678

31 

GambsS, KillijianMO, del Prado CortezMN. De-anonymization attack on geolocated data. Journal of Computer and System Sciences. 2014;80(8):15971614. , doi: 10.1016/j.jcss.2014.04.024

32 

Nunez-del PradoM, NinJ. Revisiting online anonymization algorithms to ensure location privacy. Journal of Ambient Intelligence and Humanized Computing. 2019; p. 112.

33 

XuC, RenJ, ZhangD, ZhangY, QinZ, RenK. GANobfuscator: Mitigating information leakage under GAN via differential privacy. IEEE Transactions on Information Forensics and Security. 2019;14(9):23582371. , doi: 10.1109/TIFS.2019.2897874

34 

Schanzenbach DW, Nunn R, Bauer L, Mumford M. Where does all the money go: Shifts in household spending over the past 30 years. Brookings Institution, The Hamilton Project. 2016.

35 

Classification of Individual Consumption According to Purpose;. https://en.wikipedia.org/wiki/Classification_of_Individual_Consumption_by_Purpose.

36 

Gambs S, Killijian MO, del Prado Cortez MNn. Show Me How You Move and I Will Tell You Who You Are. In: Proceedings of the 3rd ACM SIGSPATIAL International Workshop on Security and Privacy in GIS and LBS. SPRINGL’10; 2010. p. 34–41.

37 

LangvilleAN, MeyerCD. Google’s PageRank and beyond: the science of search engine rankings. Princeton University Press; 2012.

38 

MalinowskiS, GuyetT, QuiniouR, TavenardR. 1d-SAX: A Novel Symbolic Representation for Time Series In: TuckerA, HöppnerF, SiebesA, SwiftS, editors. Advances in Intelligent Data Analysis XII. Springer Berlin Heidelberg; 2013 p. 273284.

39 

Tavenard R, Faouzi J, Vandewiele G. tslearn: A machine learning toolkit dedicated to time-series data; 2017.

40 

BorgattiSP, EverettMG. Models of core/periphery structures. Social Networks. 2000;21(4):375395. , doi: 10.1016/S0378-8733(99)00019-2

41 

HolmeP. Core-periphery organization of complex networks. Physical Review E—Statistical, Nonlinear, and Soft Matter Physics. 2005;72(4). , doi: 10.1103/PhysRevE.72.046111

42 

CarmiS, HavlinS, KirkpatrickS, ShavittY, ShirE. A model of Internet topology using k-shell decomposition. Proceedings of the National Academy of Sciences of the United States of America. 2007;104(27):1115011154. , doi: 10.1073/pnas.0701175104

22 Oct 2020

PONE-D-20-22088

Impact of natural disasters on consumer behavior:  case of the 2017 El Niño phenomenon  in Peru

PLOS ONE

Dear Dr. Alatrista-Salas,

Thank you for submitting your manuscript to PLOS ONE. After careful consideration, we feel that it has merit but does not fully meet PLOS ONE’s publication criteria as it currently stands. Therefore, we invite you to submit a revised version of the manuscript that addresses the points raised during the review process.

Please submit your revised manuscript by Dec 06 2020 11:59PM. If you will need more time than this to complete your revisions, please reply to this message or contact the journal office at plosone@plos.org. When you're ready to submit your revision, log on to https://www.editorialmanager.com/pone/ and select the 'Submissions Needing Revision' folder to locate your manuscript file.

Please include the following items when submitting your revised manuscript:

  • A rebuttal letter that responds to each point raised by the academic editor and reviewer(s). You should upload this letter as a separate file labeled 'Response to Reviewers'.
  • A marked-up copy of your manuscript that highlights changes made to the original version. You should upload this as a separate file labeled 'Revised Manuscript with Track Changes'.
  • An unmarked version of your revised paper without tracked changes. You should upload this as a separate file labeled 'Manuscript'.

If you would like to make changes to your financial disclosure, please include your updated statement in your cover letter. Guidelines for resubmitting your figure files are available below the reviewer comments at the end of this letter.

If applicable, we recommend that you deposit your laboratory protocols in protocols.io to enhance the reproducibility of your results. Protocols.io assigns your protocol its own identifier (DOI) so that it can be cited independently in the future. For instructions see: http://journals.plos.org/plosone/s/submission-guidelines#loc-laboratory-protocols

We look forward to receiving your revised manuscript.

Kind regards,

Jose M. Riascos, Ph.D.

Academic Editor

PLOS ONE

Journal Requirements:

When submitting your revision, we need you to address these additional requirements.

1. Please ensure that your manuscript meets PLOS ONE's style requirements, including those for file naming. The PLOS ONE style templates can be found at

https://journals.plos.org/plosone/s/file?id=wjVg/PLOSOne_formatting_sample_main_body.pdf and

https://journals.plos.org/plosone/s/file?id=ba62/PLOSOne_formatting_sample_title_authors_affiliations.pdf

2. In your Data Availability statement, you have not specified where the minimal data set underlying the results described in your manuscript can be found. PLOS defines a study's minimal data set as the underlying data used to reach the conclusions drawn in the manuscript and any additional data required to replicate the reported study findings in their entirety. All PLOS journals require that the minimal data set be made fully available. For more information about our data policy, please see http://journals.plos.org/plosone/s/data-availability.

Upon re-submitting your revised manuscript, please upload your study’s minimal underlying data set as either Supporting Information files or to a stable, public repository and include the relevant URLs, DOIs, or accession numbers within your revised cover letter. For a list of acceptable repositories, please see http://journals.plos.org/plosone/s/data-availability#loc-recommended-repositories. Any potentially identifying patient information must be fully anonymized.

Important: If there are ethical or legal restrictions to sharing your data publicly, please explain these restrictions in detail. Please see our guidelines for more information on what we consider unacceptable restrictions to publicly sharing data: http://journals.plos.org/plosone/s/data-availability#loc-unacceptable-data-access-restrictions. Note that it is not acceptable for the authors to be the sole named individuals responsible for ensuring data access.

We will update your Data Availability statement to reflect the information you provide in your cover letter.

3. We note that Figures 1, 2, 5, S3 in your submission contain map images which may be copyrighted. All PLOS content is published under the Creative Commons Attribution License (CC BY 4.0), which means that the manuscript, images, and Supporting Information files will be freely available online, and any third party is permitted to access, download, copy, distribute, and use these materials in any way, even commercially, with proper attribution. For these reasons, we cannot publish previously copyrighted maps or satellite images created using proprietary data, such as Google software (Google Maps, Street View, and Earth). For more information, see our copyright guidelines: http://journals.plos.org/plosone/s/licenses-and-copyright.

We require you to either (1) present written permission from the copyright holder to publish these figures specifically under the CC BY 4.0 license, or (2) remove the figures from your submission:

3.1.    You may seek permission from the original copyright holder of Figures 1, 2, 5, S3 to publish the content specifically under the CC BY 4.0 license. 

We recommend that you contact the original copyright holder with the Content Permission Form (http://journals.plos.org/plosone/s/file?id=7c09/content-permission-form.pdf) and the following text:

“I request permission for the open-access journal PLOS ONE to publish XXX under the Creative Commons Attribution License (CCAL) CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). Please be aware that this license allows unrestricted use and distribution, even commercially, by third parties. Please reply and provide explicit written permission to publish XXX under a CC BY license and complete the attached form.”

Please upload the completed Content Permission Form or other proof of granted permissions as an "Other" file with your submission.

In the figure caption of the copyrighted figure, please include the following text: “Reprinted from [ref] under a CC BY license, with permission from [name of publisher], original copyright [original copyright year].”

3.2.    If you are unable to obtain permission from the original copyright holder to publish these figures under the CC BY 4.0 license or if the copyright holder’s requirements are incompatible with the CC BY 4.0 license, please either i) remove the figure or ii) supply a replacement figure that complies with the CC BY 4.0 license. Please check copyright information on all replacement figures and update the figure caption with source information. If applicable, please specify in the figure caption text when a figure is similar but not identical to the original image and is therefore for illustrative purposes only.

The following resources for replacing copyrighted map figures may be helpful:

USGS National Map Viewer (public domain): http://viewer.nationalmap.gov/viewer/

The Gateway to Astronaut Photography of Earth (public domain): http://eol.jsc.nasa.gov/sseop/clickmap/

Maps at the CIA (public domain): https://www.cia.gov/library/publications/the-world-factbook/index.html and https://www.cia.gov/library/publications/cia-maps-publications/index.html

NASA Earth Observatory (public domain): http://earthobservatory.nasa.gov/

Landsat: http://landsat.visibleearth.nasa.gov/

USGS EROS (Earth Resources Observatory and Science (EROS) Center) (public domain): http://eros.usgs.gov/#

Natural Earth (public domain): http://www.naturalearthdata.com/

[Note: HTML markup is below. Please do not edit.]

Reviewers' comments:

Reviewer's Responses to Questions

Comments to the Author

1. Is the manuscript technically sound, and do the data support the conclusions?

The manuscript must describe a technically sound piece of scientific research with data that supports the conclusions. Experiments must have been conducted rigorously, with appropriate controls, replication, and sample sizes. The conclusions must be drawn appropriately based on the data presented.

Reviewer #1: Yes

Reviewer #2: Yes

**********

2. Has the statistical analysis been performed appropriately and rigorously?

Reviewer #1: Yes

Reviewer #2: Yes

**********

3. Have the authors made all data underlying the findings in their manuscript fully available?

The PLOS Data policy requires authors to make all data underlying the findings described in their manuscript fully available without restriction, with rare exception (please refer to the Data Availability Statement in the manuscript PDF file). The data should be provided as part of the manuscript or its supporting information, or deposited to a public repository. For example, in addition to summary statistics, the data points behind means, medians and variance measures should be available. If there are restrictions on publicly sharing data—e.g. participant privacy or use of data from a third party—those must be specified.

Reviewer #1: Yes

Reviewer #2: Yes

**********

4. Is the manuscript presented in an intelligible fashion and written in standard English?

PLOS ONE does not copyedit accepted manuscripts, so the language in submitted articles must be clear, correct, and unambiguous. Any typographical or grammatical errors should be corrected at revision, so please note any specific errors here.

Reviewer #1: Yes

Reviewer #2: Yes

**********

5. Review Comments to the Author

Please use the space provided to explain your answers to the questions above. You may also include additional comments for the author, including concerns about dual publication, research ethics, or publication ethics. (Please upload your review as an attachment if it exceeds 20,000 characters)

Reviewer #1: It is a well-organized paper. It covers understudied areas of disaster resiliency. The findings are thoroughly discussed and conclusions were generated based on findings. Your paper is good to publish.

Reviewer #2: El Nino Southern Oscillation (ENSO) is a climatic phenomenon consisting of a temperature increase in the equatorial Pacific area. At the end of 2016 and in early 2017, ENSO had an abrupt change leading to heavy rains and floods. It is possible to see higher frequency of such atypical phenomenon due to climate change in the future. However, it remains unclear how these weather anomaly affects the consumption behavior of people as well as the resilience of retail structures.

This paper conduct a multi-scale analysis of the consumption patterns based on a credit and debit card transaction dataset of roughly million Peruvian citizens gathered over a 2-year period from 2016 to 2017. The authors find that, at the macro-level, there was a slowdown of economic activities triggered by ENSO events but the overall economic activities recovered swiftly from the events. At the micro-level, the consumption of necessities increased but the non-necessities decreased. In addition, the core network structure of the transaction graph observed a reduction in the size of the core network structure during ENSO events.

This paper contributes to the literature by documenting how consumption behaviors, from both macro and micro level, respond to the weather extreme events. The findings are useful to policy design that aims to mitigate the negative impacts of climatic events and improve the effectiveness of recovery efforts. Below are some comments and suggestions that I hope are useful to the authors.

First, this paper use the Kullback-Leibler divergence (KLD) method to capture an anomalous change in the purchase distribution of the population (Figure 3&4). It is not straightforward enough that these changes of consumption patterns are results of ENSO. Since the El Nino is characterized by heavy rains and floods, it is useful to replicate the current figures but replace the vertical axis with rainfall or floods. We expect to see similar patterns of rainfall as in consumption. In addition, it is also useful to replicate the analysis using data from years without El Nino costero. We expect to see no previous patterns as in years with El Nino costero. Also, it is not clear whether the seasonal pattern as well as time trends of consumption are adjusted.

Second, in the section of Causality Analysis of the ENSO, this paper discovered three modes: districts were negatively impacted, districts that continued to function as usual, and districts that experienced an increase in purchases. More discussions are needed to explain why the impacts in different regions can be postive impact, negative and netural? How are these findings connected with rainfall or floods due to the ENSO. Answering these questions help disentangle the impacts from the ENSO instead of other economic confounders.

Third, since the data contain information social-economic factors, it would be interesting to separately estimate the impacts for cohorts with different social-economic factors. For example, does the consumption behaviors respond differently to the weather events for the male and female? How does the weather extremes affects the younger and older cohorts differently?

**********

6. PLOS authors have the option to publish the peer review history of their article (what does this mean?). If published, this will include your full peer review and any attached files.

If you choose “no”, your identity will remain anonymous but your review may still be made public.

Do you want your identity to be public for this peer review? For information about this choice, including consent withdrawal, please see our Privacy Policy.

Reviewer #1: No

Reviewer #2: No

[NOTE: If reviewer comments were submitted as an attachment file, they will be attached to this email and accessible via the submission site. Please log into your account, locate the manuscript record, and check for the action link "View Attachments". If this link does not appear, there are no attachment files.]

While revising your submission, please upload your figure files to the Preflight Analysis and Conversion Engine (PACE) digital diagnostic tool, https://pacev2.apexcovantage.com/. PACE helps ensure that figures meet PLOS requirements. To use PACE, you must first register as a user. Registration is free. Then, login and navigate to the UPLOAD tab, where you will find detailed instructions on how to use the tool. If you encounter any issues or have any questions when using PACE, please email PLOS at figures@plos.org. Please note that Supporting Information files do not need this step.


7 Dec 2020

Please, find a reply to the specific reviewers' comments in the uploaded file "Response to reviewers.pdf."

Submitted filename: Response_to_Reviews.pdf

9 Dec 2020

Impact of natural disasters on consumer behavior:  case of the 2017 El Niño phenomenon  in Peru

PONE-D-20-22088R1

Dear Dr. Alatrista-Salas,

We’re pleased to inform you that your manuscript has been judged scientifically suitable for publication and will be formally accepted for publication once it meets all outstanding technical requirements.

Within one week, you’ll receive an e-mail detailing the required amendments. When these have been addressed, you’ll receive a formal acceptance letter and your manuscript will be scheduled for publication.

An invoice for payment will follow shortly after the formal acceptance. To ensure an efficient process, please log into Editorial Manager at http://www.editorialmanager.com/pone/, click the 'Update My Information' link at the top of the page, and double check that your user information is up-to-date. If you have any billing related questions, please contact our Author Billing department directly at authorbilling@plos.org.

If your institution or institutions have a press office, please notify them about your upcoming paper to help maximize its impact. If they’ll be preparing press materials, please inform our press team as soon as possible -- no later than 48 hours after receiving the formal acceptance. Your manuscript will remain under strict press embargo until 2 pm Eastern Time on the date of publication. For more information, please contact onepress@plos.org.

Kind regards,

Jose M. Riascos, Ph.D.

Academic Editor

PLOS ONE

Additional Editor Comments (optional):

Reviewers' comments:


17 Dec 2020

PONE-D-20-22088R1

Impact of natural disasters on consumer behavior:  case of the 2017 El Niño phenomenon  in Peru

Dear Dr. Alatrista-Salas:

I'm pleased to inform you that your manuscript has been deemed suitable for publication in PLOS ONE. Congratulations! Your manuscript is now with our production department.

If your institution or institutions have a press office, please let them know about your upcoming paper now to help maximize its impact. If they'll be preparing press materials, please inform our press team within the next 48 hours. Your manuscript will remain under strict press embargo until 2 pm Eastern Time on the date of publication. For more information please contact onepress@plos.org.

If we can help with anything else, please email us at plosone@plos.org.

Thank you for submitting your work to PLOS ONE and supporting open access.

Kind regards,

PLOS ONE Editorial Office Staff

on behalf of

Professor Jose M. Riascos

Academic Editor

PLOS ONE

Supplementary materials
  • pone.0244409.s001.pdf     save_alt  
  • pone.0244409.s002.pdf     save_alt  
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 author and source are credited.
https://www.researchpad.co/tools/openurl?pubtype=article&doi=10.1371/journal.pone.0244409&title=Impact of natural disasters on consumer behavior: Case of the 2017 El Niño phenomenon in Peru&author=&keyword=&subject=Research Article,Earth sciences,Atmospheric science,Climatology,El Niño-Southern Oscillation,Earth sciences,Marine and aquatic sciences,Oceanography,El Niño-Southern Oscillation,Physical Sciences,Mathematics,Applied Mathematics,Algorithms,Research and Analysis Methods,Simulation and Modeling,Algorithms,People and places,Geographical locations,South America,Peru,Computer and Information Sciences,Network Analysis,Network Resilience,Earth Sciences,Geography,Human Geography,Urban Geography,Cities,Social Sciences,Human Geography,Urban Geography,Cities,Physical Sciences,Mathematics,Probability Theory,Statistical Distributions,Earth Sciences,Hydrology,Surface Water,Earth Sciences,Hydrology,Flooding,