Manuscript Offprint
arXiv:2609.35417A citizen science behavioural dataset of an urban collective-risk dilemma on air pollution mitigation under resource inequality
Abstract
This article describes a behavioural dataset from a collective-risk dilemma public experiment carried out in Barcelona, Spain, within the citizen science xAire air quality project. Participants played a ten-round game in groups of six, each deciding every round how many monetary units to contribute from a private endowment toward a shared target; groups that fell short forfeited all remaining capital. Three endowment treatments held the group total fixed: an equal condition and two unequal conditions in which low-endowment participants formed either the minority or the majority of the group. Data were collected at two public outdoor venues using a tablet-based interface under lab-in-the-field protocols. Participants were recruited on-site from a demographically heterogeneous pool of individuals passing through the venues, mostly local residents. The dataset comprises 462 participants across 77 six-player games, 4620 contribution decisions in total. Each participant record links the full ten-round contribution trajectory to initial endowment, wealth treatment, venue, district of residence and its measured nitrogen-dioxide concentration, and socio-demographic and attitudinal survey items covering gender, age, education, economic and working status, air-quality perception, fairness norms, environmental-justice beliefs,
*Corresponding author.
Email address: josep.perello@ub.edu (Josep Perelló)
Present address: Eurecat, Centre Tecnològic de Catalunya, Barcelona, 08005, Spain.
residential mobility, and community participation. The release provides raw and cleaned participant tables, a variable codebook, the survey instrument, the district-pollution linkage, and the preprocessing code. The data can be reused to characterise cooperative behaviour under resource inequality, benchmark behavioural and computational models of collective action, examine associations between contribution decisions and socio-demographic or environmental covariates, and compare lab-in-the-field experimental designs with conventional human-behaviour laboratory settings.
Keywords: Citizen science, Collective-risk dilemma, Cooperation, Resource inequality, Urban sustainability, Air pollution
Value of the Data
-
The dataset records 4 620 individual contribution decisions from a controlled collective-risk dilemma (CRD) with three calibrated endowment treatments, placing it among one of the largest participant samples in the experimental CRD literature on climate mitigation [1–5].
-
Each participant’s complete ten-round contribution trajectory is linked to socio-demographic variables, attitudinal measures, and the measured concentration of their district of residence. Participants were recruited on-site from a demographically heterogeneous pool of individuals passing through the venues, mostly local residents and directly concerned with local air-pollution issues, providing a rare opportunity to study cooperative behaviour in a population personally affected by the environmental problem under investigation [6].
-
The two unequal treatments hold the aggregate group endowment, collective target, and high-to-low endowment ratio (2:1) fixed, while varying whether low-endowment players form the minority or the majority of the group. This enables reuse for examining how the composition of resource inequality shapes collective behaviour independently of the magnitude of the rich-to-poor endowment ratio.
-
The complete survey instrument, the district-level pollution linkage, and the deterministic preprocessing code are released alongside the data, so the analytical subset can be regenerated from the raw tables and the survey items reused as covariates or modelling features.
The data described here were generated to extend this line of research within the citizen science xAire air-quality monitoring campaign [17–19], using the Citizen Social Lab platform [20] and lab-in-the-field protocols for collective behavioural experiments in public settings [6, 12, 14]. The xAire air-quality measurement campaign produced high-resolution measurements of nitrogen dioxide ( ) concentrations across Barcelona with more than 2000 participants involved and attracted considerable media attention due to growing concerns about air pollution and its health impacts. These measurements enabled the identification of neighbourhoods, and more broadly districts, with different levels of exposure and informed the assignment of participants to positions associated with different resource endowments in the CRD experiment. By grounding the CRD in a locally relevant environmental problem, the experimental design transformed a widely recognized urban challenge into a collective decision-making scenario. Experimental sessions were conducted at two public venues in central Barcelona, Parc de la Ciutadella and the Centre de Cultura Contemporània (CCCB) - Pati de les Dones (Fig. 1). Recruitment followed lab-in-the-field and pop-up protocols aimed at engaging the general public rather than conventional laboratory subject pools [6, 12, 14]. By embedding the experiment within major public events (Sant Jordi festivity and Barcelona Science Festival), the study reached a diverse population in natural urban settings and facilitated participation by residents directly exposed to the environmental issues addressed by the xAire campaign. The public setting of the experiment further allowed participants to continue the broader societal discussion initiated by the xAire air-quality measurement campaign and to reflect on potential collective actions to address air pollution. In this way, resource inequality in the game was connected to a real-world environmental issue, creating an experimental framework in which the interplay between environmental inequality, cooperation, and collective action could be studied under controlled yet socially meaningful conditions.
The dataset is released to make participant-level contribution trajectories, survey responses, and contextual environmental information openly available for reuse, comparative analyses, and model benchmarking.
2. Data Description
The data are released in five groups: the behavioural core (per-round contributions), the socio-demographic block, the environmental linkage (district-level pollution), the survey instrument (pre-game, comprehension, and post-game items), and a set of derived round-level indicators. Table 1 lists the file inventory; Table 2 summarises the sample composition; Table 3 provides summary statistics by wealth treatment; Table 4 gives the district-level nitrogen dioxide ( ) linkage; Table 5 is the variable dictionary for the behavioural and socio-demographic variables; Table 6 documents the full survey instrument.
2.1. File inventory
The released files are listed in Table 1. The integrated participant file is the primary file for reuse: it carries one row per participant with the full behavioural trace, the socio-demographic block, the survey responses, and the assigned value.
2.2. Sample composition
The experiment comprised three wealth treatments: Equal (E), in which all six participants received 40 monetary units (MU); Unequal-L (L), in which two participants received 24 MU and four received 48 MU; and Unequal-H
Table 1: File inventory of the released dataset.
| File | Contents |
| raw/users_xaire.csv | Participant-level records as logged by the interface (direct identifiers removed; see Ethics Statement). |
| raw/games_xaire.csv | Game-level records as logged by the interface. |
| raw/translations_xAire.xlsx | Interface translation source, archived as received. |
| processed/participants.csv | Cleaned, integrated participant file (six-player games only): behavioural trace, socio-demographics, survey responses, . Primary file for reuse. |
| processed/games.csv | Cleaned game-level file (six-player games only). |
| derived/Observables_Data.csv | Round-level aggregate indicators by endowment level. |
| raw/pollution.csv | District-to- linkage table. |
| codebook/codebook.csv | Full variable dictionary for every file. |
| codebook/response_codes.csv | Code-to-label mapping (Catalan, Spanish, English) for every coded demographic and survey variable in the dataset. |
| scripts/preprocess.py | Deterministic transformation from raw/ to processed/. |
| scripts/codebook.py | Regenerates codebook.csv. |

(a)

(b)

(c)
(d)
(e)
(f)
Figure 1: Public outdoor settings of the xAire Collective Risk Dilemma experiment. (a) Experimental setup at the Centre de Cultura Contemporània de Barcelona (CCCB), in the Pati de les Dones, including the six participant stations, the table hosting the local server and network connecting the six tablets, and visual elements communicating district-level air pollution data collected through the xAire citizen science campaign. (b) Detail of the district-level air-quality information displayed in the Pati de les Dones. (c) Circular arrangement of the six stations with participants during an experimental session at the Pati de les Dones. (d) Experimental setup in Parc de la Ciutadella during the Barcelona Science Festival. (e) Close-up of one participant station, designed to prevent verbal and visual communication among participants, in Parc de la Ciutadella. (f) Arrangement of the participant stations in Parc de la Ciutadella. Setting designed by OpenSystems [21] and Domestic Data Streamers [22].
(H), in which four participants received 30 MU and two received 60 MU. Thus, the L and H treatment labels distinguish whether low-endowment participants formed the minority or the majority of the group, respectively. The experimental design and treatment-assignment procedure are described in detail in Section 3. The partition of participants and games across treatments, endowment levels, and venues is given in Table 2.
2.3. Behavioural core
The behavioural core is the set of per-round contribution decisions. For each participant the dataset records the assigned initial endowment MU, conditional on the wealth treatment ,
Table 2: Sample composition by wealth treatment and venue. Participant counts equal six times the number of games (only six-player games are retained). Endowments are in monetary units (MU). The experiment was performed in two locations (Parc de la Ciutadella and Centre de Cultura Contemporània de Barcelona-CCCB).
| Treatment | Endowment per player (MU) | Games | Participants | Ciutadella | CCCB |
|---|---|---|---|---|---|
| Equal | six players × 40 | 6 | 36 | 2 | 4 |
| Unequal-L | two × 24, four × 48 | 27 | 162 | 20 | 7 |
| Unequal-H | four × 30, two × 60 | 44 | 264 | 26 | 18 |
| Total | — | 77 | 462 | 48 | 29 |
and the ten contributions, each taking a value in MU. From these, the total contributed to the common fund, the remaining endowment, and a binary indicator of whether the participant's group reached the 120 MU target are provided. Of the 77 games, 74 reached the target and 3 did not.
2.4. Aggregate contribution dynamics
Figures 2–4 characterise the contribution data at the aggregate level; they are descriptive depictions of the released variables and are restricted to successful games (those reaching the 120 MU target). Figure 2 shows, for each of the ten rounds, the stacked proportion of the three possible contribution choices (0, 2, and 4 MU) across all successful games. The visible rise in zero contributions toward rounds 9–10 in Figure 2 should not be read as decaying cooperation without qualification: because the cumulative fund is shown to players each round (Section 3), most successful games have already reached the 120 MU target by round 8–9 (Figure 4), after which further contribution has no effect on the collective outcome. The late-round zero surge is therefore largely mechanical, reflecting games where the goal has already been secured, rather than a behavioural decline in willingness to cooperate. Figure 3 shows the trajectory of the cumulative common fund over rounds, with one thin line per game, thick lines denoting the mean per wealth treatment, horizontal line marking the 120 MU target, and the diagonal dashed line represents the constant-rate trajectory required to reach the 120 MU target exactly at the end of round 10 (12 MU accumulated per round). Figure 4 shows the distribution of the round at which successful games first reached the target, separated by wealth treatment. Table 3 complements these figures by summarising game-level outcomes across wealth treatments, including the

Figure 2: Round-wise stacked proportions of the three possible per-round contribution choices (0, 2, and 4 MU), aggregated across all successful games and endowment classes. Within each bar, segments are ordered from bottom to top as 0 MU (blue), 2 MU (white), and 4 MU (burgundy).
success rate, mean round of target attainment, mean total contribution, and initial and final within-game Gini coefficients [23].
2.5. Environmental linkage (district-level pollution)
The environmental context of the experiment was grounded in the ten administrative districts of Barcelona, which served both as familiar territorial units for participants and as the basis for defining experimental positions. The xAire citizen science air monitoring campaign generated high-resolution measurements for each district, allowing differences in environmental exposure to be incorporated directly into the game design. These districts, which represent the primary administrative divisions of Barcelona and each account for approximately 6% to 16% of the city's population, correspond to well-known places of daily life for local residents. Consequently, the experimental framing connected resource inequality and collective action to a familiar local reality. Participants could therefore relate the game not only to the broader problem of air pollution in Barcelona but also to differences in environmental exposure across districts and neighbourhoods with which they were personally familiar.

Figure 3: Trajectory of the cumulative common fund (invested per group of six) over the ten rounds, across successful games. Thin lines show individual games; thick lines show the mean per wealth treatment; the horizontal orange dashed line marks the 120 MU collective target, while the black dashed line denotes the fairness benchmark (12 MU per round), i.e., the constant-rate trajectory required to reach the 120 MU target exactly at the last round. Colours correspond to the three experimental treatments, which appear in ascending order in round 10: Unequal-L (green), Unequal-H (dark red), and Equal (blue), see Table 2.
The district of residence was linked to the nitrogen-dioxide ( ) concentration measured during the xAire campaign [17]. The resulting linkage (Table 4) reports, for each district, the measured concentration in micrograms per cubic metre together with a qualitative air-quality rating. The assigned concentration is also stored directly in each participant record (no2_level), ranging from 39.05 to 52.38 g m across districts. The Poor/Regular rating is based on the local air-quality classification applied at the time of the study, using a threshold of 40 g m for annual mean concentrations. Nevertheless, all district values exceed the WHO 2021 annual mean guideline of 10 g m for [24]. The category Out of Barcelona includes participants residing outside the city of Barcelona, with values averaged across all samples collected during the xAire campaign. The variable no2_level denotes the high/low pollution-level split used to assign wealth treatments based on whether the average pollution level of the participant’s district of residence was below or above the campaign average.
Table 3: Summary statistics by wealth treatment for the 77 released games. Gini coefficients are calculated from the within-game endowment distribution, restricted to the games that reached the 120 MU target (74 of 77: 5 Equal, 27 Unequal-L, 42 Unequal-H), and averaged across games within each treatment. Initial Gini is based on initial endowment and final Gini on endowment remaining at the end of the game.
| Treatment | Games | Success rate (%) | Mean round of attainment | Mean total contribution (MU) | Initial Gini | Final Gini |
|---|---|---|---|---|---|---|
| Equal | 6 | 83.3 | 8.40 | 23.00 | 0.000 | 0.279 |
| Unequal-L | 27 | 100.0 | 8.78 | 21.28 | 0.133 | 0.291 |
| Unequal-H | 44 | 95.5 | 8.31 | 22.28 | 0.167 | 0.405 |
Table 4: Residence-code to district mapping and the measured nitrogen-dioxide concentration assigned to each district in the xAire campaign. District names follow standard Catalan spelling. "Air quality" applies a Poor/Regular cutoff from WHO guideline category at that time (see the caveat in Section 3). “Out of Barcelona” denotes participants residing outside the city of Barcelona; the reported value corresponds to the average across all samples collected during the xAire campaign. “Level” refers to the high/low pollution-level split used to assign wealth treatments, distinguishing districts with pollution levels below or above the campaign average (Section 3). The level variable is displayed as High and Low for clarity; these categories are encoded as H and L, respectively, in the released pollution.csv dataset.
| Code | District | () | Air quality | Level |
|---|---|---|---|---|
| r1 | Ciutat Vella | 50.31 | Poor | High |
| r2 | L’Eixample | 52.38 | Poor | High |
| r3 | Sants-Montjuïc | 46.89 | Poor | High |
| r4 | Les Corts | 44.60 | Poor | Low |
| r5 | Sarrià-Sant Gervasi | 41.88 | Poor | Low |
| r6 | Gràcia | 43.80 | Poor | Low |
| r7 | Horta-Guinardó | 39.53 | Regular | Low |
| r8 | Nou Barris | 40.88 | Poor | Low |
| r9 | Sant Andreu | 44.17 | Poor | Low |
| r10 | Sant Martí | 39.05 | Regular | Low |
| r11 | Out of Barcelona | 46.23 | Poor | High |

Figure 4: Distribution of the round at which successful games first reached the 120 MU collective target, by wealth treatment. Colours correspond to the three experimental treatments, following the same coding as in Figure 3. Within each round, bars are arranged from left to right as Equal (blue), Unequal-H (dark red), and Unequal-L (green), see Table 2.
2.6. Socio-demographic block
Each participant reported gender, age range, educational level, economic status, working status, and district of residence. The categorical levels and their English labels are given in Table 5; the verbatim item wording in three languages is in Table 6. Participation spanned all ten Barcelona districts as well as out-of-city residents, and covered the full range of age bands, educational levels, and self-declared economic statuses, yielding a heterogeneous participant pool. Figure 5 depicts the composition of the sample across these characteristics, with each category disaggregated by initial endowment.
2.7. Survey instrument
Three pre-game items captured air-quality perception, concern, and stated willingness to act collectively; three comprehension-check items verified that participants understood the game rules before play; and eleven post-game items captured beliefs about citizen science collaboration, collective efficacy, fairness norms, conditional cooperation, environmental justice, residential
(a)

(b)
(c)
(d)
(e)

(f)
Working status (ranked)
District of residence (ranked)
Figure 5: Participant composition across socio-demographic characteristics. Proportion of participants by (a) gender, (b) age range, (c) educational level, (d) economic status, (e) working status, and (f) District of residence, ranked by participation. Stacked bar segments indicate the distribution of initial endowments: 24 MU (blue), 30 MU (orange), 40 MU (green), 48 MU (pink), and 60 MU (purple), ordered from bottom to top.
mobility, community participation, and air-quality salience. Table 6 documents every item with its full set of answer options. The final post-game item was an open free-text field; it has been removed from the public release to protect participant privacy (see the Ethics Statement).
2.8. Derived round-level indicators
The derived file provides, for each endowment level, round-level aggregates including the initial and final Gini coefficients of the endowment distribution, the mean round at which the target was reached, the proportion of games reaching the target, mean per-round contributions, and the proportion of capital contributed. These quantities are computed deterministically from the processed tables by the released code and are provided for convenience.
Table 5: Variable dictionary for the integrated participant file (processed/participants.csv). The game-level and derived files are documented in codebook.csv in the repository. The response codes mapping for every socio-demographic variable are in codebook/response_codes.csv.
| Variable | Type (unit) | Values / range | Definition |
|---|---|---|---|
| id | Integer | unique | Participant identifier; join key for the participant tables (replaces the original nickname). |
| partida_id | Integer | unique | Game identifier; groups the six players of a game. |
| control_wealth | Categorical | EQUAL; UNEQUAL-L; UNEQUAL-H | Wealth treatment of the game (Section 3). |
| endowment_initial | Integer (MU) | 24; 30; 40; 48; 60 | Initial endowment at the start of round 1. |
| endowment_current | Integer (MU) | Endowment remaining at the end of the game. | |
| contributed_public_goods | Integer (MU) | Total contributed to the common fund over the ten rounds. | |
| winnings_public_goods | Integer (MU) | Capital retained: the remaining endowment if the group reached the target, else 0. | |
| goal_reached | Binary | 0; 1 | Whether the participant's group reached the 120 MU target. |
| R1-R10 | Integer (MU) | 0; 2; 4 | Per-round contribution in rounds 1 to 10 (ten columns). |
| no2_level | Numeric () | 39.05–52.38 | District concentration, assigned from residence (Table 4). |
| gender | Categorical | Male; Female; Other; No answer | Self-reported gender identity. |
| age_range | Categorical | 14–19; 20–24; 25–34; 35–44; 45–54; 55–64; 65+ | Self-reported age band. |
continued on next page
Table 5 continued
| Variable | Type (unit) | Values / range | Definition |
|---|---|---|---|
| economic_status | Categorical | No income; Low income; Middle income; High income; No answer | Self-reported economic status. |
| educational_level | Categorical | None; Primary; Secondary; Higher; No answer | Highest completed educational level. |
| working_status | Categorical | None; Studying; Working; Studying and Working; No answer | Self-reported working status. |
| residence | Categorical | 10 Barcelona districts and Out of Barcelona (see Table 4) | Self-reported district of residence. |
| frame_pr1-pr3, verification_pr1- pr3, encuesta_final_pr1- pr10 | Categorical / ordinal | see Table 6 | Pre-game, comprehension, and post-game survey items. verification_pr1-pr3 are the three comprehension-check items (Table 6) that confirmed a participant understood the contribution rule, the group target, and the failure condition before play began; the interface required a correct answer to proceed, so all three are constant in the released data (zero-variance by construction, not a data-quality issue – reusers should treat them as a design/comprehension record for the sample, not as a substantive predictor). encuesta_final_pr11 (free text) is withheld for privacy. |
Table 6: Survey instrument: pre-game, comprehension, and post-game items with answer options (English). The verbatim trilingual wording (Catalan, Spanish, English) and the response codes mapping for every coded variable are in codebook/response_codes.csv. The underlying source translations are archived as received in raw/translations_xAire.xlsx.
| Item | Question | Answer options |
|---|---|---|
| Pre-game framing | ||
| frame_pr1 | How would you rate the quality of the air you breathe where you live? | Bad; Normal; Good. |
| frame_pr2 | Are you concerned about the air quality where you live? | Little; Somewhat; A lot. |
| frame_pr3 | Would you perform a collective action to improve air quality in Barcelona? | Yes; No. |
| Comprehension checks (constant; gated to correct answer) | ||
| verification_pr1 | In a group of six, if everyone contributes equally, the minimum each must contribute to reach the target. | 10; 20; 30; 40 MU. |
| verification_pr2 | Whether a group total of 100 coins over ten rounds reaches the target. | Yes; No; I don’t know. |
| verification_pr3 | Whether failing to collect 120 coins means losing all personally saved coins. | Yes; No; I don’t know. |
| Post-game | ||
| enquesta_final_pr1 | What do you think might be the major benefit of the collaboration between citizens and scientists? | Opening my horizons and changing my perspective; Doing better science in academic contexts; Contributing to improvements in our environment; Making knowledge more public and accessible; I think there are no benefits. |
continued on next page
Table 6 continued
| Item | Question | Answer options |
|---|---|---|
| enquesta_final_pr2 | If data and evidences are gathered collectively, do you believe that it is possible to propose changes and improvements in a more effective way? | Totally disagree; Disagree; Neither agree nor disagree; Agree; Totally agree. |
| enquesta_final_pr3 | At the beginning of the game, did you expect to reach the common goal? | Yes; No; I don’t know. |
| enquesta_final_pr4 | In the game, the contributions of each participant should be proportional to their capital: the richest should contribute more and the poorest should contribute less. | Totally disagree; Disagree; Neither agree nor disagree; Agree; Totally agree. |
| enquesta_final_pr5 | In the game, if others contribute little I should also contribute little. If others contribute a lot I should also contribute a lot. | Totally disagree; Disagree; Neither agree nor disagree; Agree; Totally agree. |
| enquesta_final_pr6 | We are all equally exposed to air pollution. | Totally disagree; Disagree; Neither agree nor disagree; Agree; Totally agree. |
| enquesta_final_pr7 | Have you ever considered living in another district where air quality is better? | Yes; Sometimes; No. |
| enquesta_final_pr8 | Do you participate in your neighbourhood’s community life? | Never; Rarely; Sometimes; Often; Always. |
| enquesta_final_pr9 | How important do you think it is the issue of air pollution in Barcelona compared to the social emergencies that the city is facing? | Way less important; Less important; Equally important; More important; Way more important. |
| enquesta_final_pr10 | Are you aware of actions or interventions aimed at improving air quality in Barcelona? | Not at all; Slightly; Somewhat; Moderately; Extremely. |
| enquesta_final_pr11 | Ideas for the city council to improve air quality. | Free text (withheld; privacy). |
3. Experimental Design, Materials and Methods
3.1. The xAire project, venues and recruitment
The experimental data were collected in two lab-in-the-field sessions organised by the OpenSystems group of the Universitat de Barcelona within the xAire project, a large-scale citizen science air-quality campaign in which communities around twenty Barcelona primary schools measured nitrogen-dioxide concentrations across the city [17]. Sessions took place between April and June 2018 at two public outdoor venues: Parc de la Ciutadella and the Centre de Cultura Contemporània de Barcelona (CCCB, Pati de les Dones). Recruitment followed protocols designed to engage the general public rather than a pre-registered subject pool, broadening demographic coverage relative to conventional laboratory samples [6, 14]. In Parc de la Ciutadella, a major urban park in central Barcelona characterised by extensive green areas, cultural institutions, and high pedestrian flow, the experiment was conducted within the framework of the Barcelona Science Festival (June 9 and 10), which featured multiple simultaneous public activities across the park. At the CCCB, the experiment took place in the Pati de les Dones, an open courtyard within a centrally located cultural complex in a densely frequented urban area, during the Sant Jordi festivity (April 23), when large numbers of people gather informally in the surrounding streets (Fig. 1). In both settings, these contexts enabled the recruitment of participants from all districts of Barcelona (71.2%) as well as from outside the city but mostly belonged to Barcelona metropolitan area which shared same air-quality issues (28.8%) and were exposed to similar urban air-quality challenges, thus preserving the local relevance of the experimental setting. After data cleaning and preprocessing, the final dataset comprises 48 valid games (288 participants) from Ciutadella and 29 games (174 participants) from CCCB.
3.2. Game mechanics
Participants played a stylised collective-risk dilemma [1, 11]. Each game involved players over rounds. In round , player chose a contribution MU from their remaining endowment, where indexes the wealth treatment. The collective target was fixed at half the total initial endowment,
(1) identical across treatments because every treatment summed to MU. The cumulative common fund and the evolving individual endowment are
At the end of round the payoff was binary: if the group succeeded and each player retained their remaining endowment; otherwise all players retained nothing. Importantly, participants are fully informed about these consequences prior to starting the experiment.
After each round, participants observed the contributions of the other group members, the total amount accumulated in the common fund, and their own remaining endowment (see Fig. 6). This feedback enabled participants to update their decisions based on both collective progress and their individual position. The choice set in round k is also implicitly censored by the endowment remaining after rounds 1, ..., k - 1: the interface only offers a contribution in MU if that amount does not exceed the player's remaining endowment, so a player who has already spent their full endowment can no longer select a positive contribution. This holds without exception across the released data: in all 462 participant records, every per-round contribution is less than or equal to the endowment remaining at that point in the game. Reusers computing round-level feasible choice sets (e.g. a "budget-constrained" indicator alongside Table 5) should apply this rule rather than treat as unconditionally available in every round.
3.3. Wealth treatments
Initial endowments were assigned under one of three treatments while holding the group total fixed at 240 MU:
The L/H label names the size of the low-endowment group, not the severity of inequality, and this convention should be stated explicitly since a reader could plausibly parse H as "high inequality": in Unequal-L, low-endowment players form the minority (two of six); in Unequal-H they form the majority (four of six). Both unequal treatments hold the rich-to-poor endowment ratio fixed at 2:1 (48:24 and 60:30) and vary only the composition of the group, not the ratio. The wealth treatment of each game is recorded in the control_wealth field.
These three treatments capture variations in resource distribution that reflect stylised socio-economic divisions observed in urban environments, ranging from fully egalitarian to structurally imbalanced setups where wealthier or poorer individuals form the majority. By varying the structure of initial capital while holding the group size and game mechanics across treatments, the design enables a comparative analysis of how resource heterogeneity influences individual behaviour and group outcomes in collective-risk scenarios.
3.4. Treatment assignment procedure
Treatment assignment was not based on uniform randomisation, but on the pollution categories associated with participants' districts of residence. District-level concentrations were obtained from the xAire campaign data for Barcelona [19] and classified into high- and low-pollution categories. Each participant was therefore assigned a pollution level according to their district of residence (Table 4).
For each six-player game, let and denote the number of participants classified in the high- and low-pollution categories, respectively. Treatment assignment followed the deterministic rule:
Thus, when one pollution category constituted the majority of the group, the corresponding unequal treatment was assigned: Unequal-H when participants were the majority and Unequal-L when participants were the majority. If all six participants belonged to the same pollution category, the Equal treatment was assigned.
In the special case of an equal split, , the mean residential concentration of the six participants,
(5) was compared with the reference Barcelona value of stored in the experimental platform. A mean equal to this reference produced the Equal treatment, a lower mean produced the Unequal-L treatment, and a higher mean produced the Unequal-H treatment.
Once the treatment had been determined, participants were ordered from highest to lowest residential concentration before the corresponding endowment vector was assigned. Consequently, in the unequal treatments, participants associated with the highest residential pollution levels received the lower initial endowments: 24 MU in Unequal-L and 30 MU in Unequal-H. The complete implementation of this deterministic assignment procedure is publicly available in the released experimental code [25]. This data-driven procedure ensured that wealth distributions within each game reflected realistic socio-environmental inequalities present in Barcelona's urban landscape. Because treatment assignment depended on the residential pollution profile of the six participants assembled for each game rather than on random allocation, treatment and venue are not independent (see Table 2); this should be taken into account when reusing the data for treatment-wise comparisons.
3.5. Interface, feedback and incentive
All sessions used a tablet-based interface built on the Citizen Social Lab platform [20], with trained facilitators delivering standardised instructions; communication between participants was not permitted. At the outset, clear instructions were provided with the support of trained facilitators to ensure full comprehension of the task and its implications. During each round k, participants faced a countdown timer limiting the time available (15 seconds) to decide whether to contribute 0, 2, or 4 MU to a common fund. While participants were not explicitly informed about the method of endowment and treatment assignment, the interface visibly displayed each player's initial capital. After each round, every participant was shown three pieces of feedback: the cumulative total in the common fund, the amount contributed by each participant in the previous round, and each participant's initial and current endowment. This made inequality immediately apparent, introducing an implicit fairness dilemma: whether wealthier individuals should contribute more, or whether less-endowed players should compensate for limited group effort. Participants took approximately 10-15 minutes to complete the experiment, including the welcome phase, pre-game framing, comprehension checks, the CRD experiment itself, and the surveys administered before and after the game. Figure 6 presents a selection of screenshots from the tablet-based interface, showing the sequence of screens encountered by participants during the experiment.
Beyond the collective target of promoting air-quality mitigation actions with public schools of the city, a private incentive was also in place. At the beginning of the session, participants were informed that they would receive bookshop vouchers, with the final amount proportional to the fraction of their initial endowment retained after the ten rounds. Eligibility for the voucher payment was conditional on the group reaching the collective target. Participants received monetary rewards in the form of 1 EUR vouchers according to their performance in the experiment. In total, 859 vouchers were distributed to 496 participants, corresponding to an average reward of 1.73 vouchers per participant (standard deviation = 0.82; median = 2; range: 1-5 vouchers).
3.6. Pre-game framing, comprehension checks and surveys
Before play, participants completed a short pre-game block on air-quality perception, concern, and willingness to act collectively, followed by three comprehension-check items confirming that they understood the contribution rule, the failure condition, and the target. After play, participants completed an eleven-item post-game block covering beliefs about collaboration, collective efficacy, fairness norms, conditional cooperation, environmental justice, residential mobility, community participation, and air-quality salience. All items, answer options, and their trilingual wording (Catalan, Spanish and English) are provided in the repository and summarised in Table 6.
3.7. Data preprocessing
A first consistency-cleaning pass, conducted by J. Vicens for the original data release [11], removed (i) participants who did not complete the full sequence of decisions and (ii) registrants who never began play. After that pass, the working dataset comprised 83 games across the two venues (52 at Ciutadella and 31 at CCCB), with 496 human participants and games of varying composition.
Some games in the raw dataset also include automated players (“robots”), which were used when a complete group of human participants was not available. At each round, a robot selected uniformly at random among the contribution options available to it through the game interface and therefore did not follow a strategic or adaptive policy. Robots are identified in raw/users_xaire.csv by the binary variable is_robot, which takes value 1 for automated players and 0 for human participants.
To ensure comparability of group dynamics across treatments, only games with exactly six human players were retained; this removed 7 games and yielded 77 valid games (48 from Ciutadella, 29 from CCCB) and 462 participants, each contributing once per round over ten rounds for 4620 recorded decisions. The treatment partition is 6 Equal (36 participants), 27 Unequal-L (162 participants), and 44 Unequal-H (264 participants). By endowment level the participant counts are 24 MU: 54; 30 MU: 176; 40 MU: 36; 48 MU: 108; and 60 MU: 88. The deterministic code that reproduces the cleaned subset from the raw tables is provided in scripts/.
3.8. Data validation and integrity checks
Three comprehension-check items (Table 6) verified that participants understood the contribution rule, the collective target, and the failure condition before the game began. The experimental interface required a correct answer to each item before participants were allowed to proceed, ensuring that all participants started the game with a minimum understanding of its objectives and consequences.
The processed dataset was subjected to a set of internal consistency checks before release. Across all 462 participant records, the sum of the ten recorded round contributions equals the total amount contributed to the common fund,
and the individual accounting identity
endowment_initial = endowment_current + contributed_public_goods
(7)
holds for every participant. The retained payoff is likewise consistent with the collective outcome,
In addition, all per-round contributions satisfy the feasible-choice constraint imposed by the participant’s remaining endowment at that point in the game. At the game level, each retained game contains exactly six human participants, and the value of goal_reached is consistent across all six members of the same game. These checks were performed during preprocessing prior to the public release of the dataset.
Limitations
The dataset has several limitations. The Equal treatment is underrepresented (6 games, 36 participants) relative to the two unequal treatments, limiting balanced treatment-wise comparisons. All sessions were conducted in a single city and at two venues, so the participant pool, while demographically heterogeneous, is geographically specific. Although participants shared a common local context and were broadly familiar with the environmental challenges represented in the experiment, recruitment took place in public venues and participation was voluntary, introducing self-selection relative to a pre-registered sample. From a citizen science perspective, this feature can also be considered a strength, as the dataset captures the behaviour and attitudes of concerned and engaged citizens interacting with a real local environmental issue. Furthermore, treatment assignment was determined by the pollution-category composition of participants assembled in each game rather than by individual randomisation. These features enhance the ecological validity of the dataset but should be considered when making causal treatment comparisons. Treatment and venue are not statistically independent, and analyses comparing treatments should account for possible venue or session effects. The game-success outcome is highly skewed toward success (74 of 77 games reached the target), leaving few unsuccessful games for outcome-conditioned reuse. The district-level value is an area-level attribute assigned by district of residence, not an individual exposure measurement. The data were collected in 2018, and Barcelona's levels and air-quality policies have evolved since then; accordingly, the attitudinal responses should be interpreted as reflecting the environmental and policy context at the time of data collection. Finally, the open free-text survey item and the participant-chosen identifier have been withheld from the public release to protect privacy and are therefore not available for reuse.
Ethics Statement
The authors confirm that the work was carried out in accordance with the Declaration of Helsinki. The Universitat de Barcelona Ethics Committee
(IRB00003099) approved the experiment. All participants read and signed the informed consent form and parental/legal guardian consent if appropriate. No privacy issues were observed to be in conflict with the public release of the underlying processed data. A copy of the informed-consent text (Catalan, Spanish, and English) is provided in the repository.
CRediT Author Statement
Marc Sadurní: Data curation, Formal analysis, Software, Validation, Visualization, Writing – original draft, Writing – review & editing. Martín F. Díaz: Data curation, Validation, Visualization, Writing – original draft, Writing – review & editing. Julián Vicens: Conceptualization, Data curation (original collection), Investigation, Methodology, Software, Supervision, Validation, Writing – review & editing. Anna Cigarini: Conceptualization, Investigation, Data curation (original collection). Isabelle Bonhoure: Conceptualization, Investigation, Project administration, Resources. Miquel Montero: Supervision, Funding acquisition, Investigation, Methodology, Project administration, Writing – review & editing. Josep Perelló: Conceptualization, Supervision, Funding acquisition, Investigation, Methodology, Project administration, Resources, Writing – review & editing.
Declaration of Competing Interest
The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this article.
Acknowledgements
The initiative was conceived as part of City Station [26], a temporary environmental health platform designed to promote collaborative research and public engagement with science. This platform was embedded within the “After the End of the World” exhibition at the Centre de Cultura Contemporània de Barcelona (CCCB) [27], highlighting the intersection between science, culture, and civic action. The monitoring campaign for air quality xAire was made possible with the support of DKV and 4sfera Innova [28], and in collaboration with Mobile Week Barcelona [29], the Barcelona Institute of Global Health (ISGlobal) [30], Mapping for Change [31] and OpenSystems of the
University of Barcelona [21]. We thank all the volunteers for their participation. We also thank the collaboration of RUN Design, Domestic Data Streamers [22], Centre de Cultura Contemporània de Barcelona, and Barcelona City Council. We also thank the collaboration of Anna Broll, Mario Corea, Diana Escobar, Guillermo Espada, Ferran Espanyol, Nadala Fernández, Miquel Nogués and Elisenda Poch. The study was partially supported by MICIU/AEI/10.13039/501100011033, grant number PID2019-106811GB-C33 [JV, AC, IB, MM and JP]; by MICIU/AEI/10.13039/501100011033 and by “ESF Investing in your future”, grant number PRE2020-093266 [MS]; by MICIU/AEI/10.13039/501100011033 and by “ERDF/EU”, grant numbers PID2022-140757NB-I00 and PID2025-171705NB-I00 [MS, IB, MFD, MM and JP]. We also acknowledge the support of Generalitat de Catalunya through Complexity Lab Barcelona, grant number 2021SGR00856 [MS, IB, MFD, MM and JP].
Data Accessibility
The data described in this article are openly available in CORA. Repository de Dades de Recerca (CORA.RDR), the Dataverse-based repository operated by the Consorci de Serveis Universitaris de Catalunya (CSUC), at https://doi.org/10.34810/DATA3672 [32].
Declaration of Generative AI and AI-assisted technologies in the writing process
During the preparation of this work the authors used Claude (Anthropic) in order to improve the language, grammar, syntax, and clarity of the manuscript. All scientific content, methodological decisions, analyses, and conclusions were conceived and written primarily by the authors. After using this tool, the authors reviewed and edited the content as needed and take full responsibility for the content of the publication.
References
[1] M. Milinski, R. D. Sommerfeld, H.-J. Krambeck, F. A. Reed, J. Marotzke, The collective-risk social dilemma and the prevention of simulated dangerous climate change, Proceedings of the National Academy of Sciences of the United States of America 105 (7) (2008) 2291–2294. doi:10.1073/pnas.0709546105.
[2] A. Tavoni, A. Dannenberg, G. Kallis, A. Löschel, Inequality, communication, and the avoidance of disastrous climate change in a public goods game, Proceedings of the National Academy of Sciences of the United States of America 108 (29) (2011) 11825–11829. doi:10.1073/pnas.1102493108.
[3] M. N. Burton-Chellew, R. M. May, S. A. West, Combined inequality in wealth and risk leads to disaster in the climate change game, Climatic Change 120 (4) (2013) 815–830. doi:10.1007/s10584-013-0856-7.
[4] T. C. Brown, S. Kroll, Avoiding an uncertain catastrophe: climate change mitigation under risk and wealth heterogeneity, Climatic Change 141 (2) (2017) 155–166. doi:10.1007/s10584-016-1889-5.
[5] I. Waichman, A. Voss, C. Bühren, B. Frick, Inequality hinders group efforts to avoid environmental disasters, Q Open 1 (1) (2021) qoab006. doi:10.1093/qopen/qoab006.
[6] O. Sagarra, M. Gutiérrez-Roig, I. Bonhoure, J. Perelló, Citizen science practices for computational social science research: The conceptualization of pop-up experiments, Frontiers in Physics 3 (2016) 93. doi:10.3389/fphy.2015.00093.
[7] M. Milinski, T. Röhl, J. Marotzke, Cooperative interaction of rich and poor can be catalyzed by intermediate climate targets, Climatic Change 109 (3–4) (2011) 807–814. doi:10.1007/s10584-011-0319-y.
[8] V. V. Vasconcelos, F. C. Santos, J. M. Pacheco, S. A. Levin, Climate policies under wealth inequality, Proceedings of the National Academy of Sciences of the United States of America 111 (6) (2014) 2212–2216. doi:10.1073/pnas.1323479111.
[9] M. Abou Chakra, A. Traulsen, Evolutionary dynamics of strategic behavior in a collective-risk dilemma, PLOS Computational Biology 8 (8) (2012) e1002652. doi:10.1371/journal.pcbi.1002652.
[10] Á. Székely, F. Lipari, A. Antonioni, M. Paolucci, A. Sánchez, L. Tummolini, G. Andrighetto, Evidence from a long-term experiment that collective risks change social norms and promote cooperation, Nature Communications 12 (2021) 5452. doi:10.1038/s41467-021-25734-w.
[11] J. Vicens, N. Bueno-Guerra, M. Gutiérrez-Roig, C. Gracia-Lázaro, J. Gómez-Gardeñes, J. Perelló, A. Sánchez, Y. Moreno, J. Duch, Resource heterogeneity leads to unjust effort distribution in climate change mitigation, PLOS ONE 13 (10) (2018) e0204369. doi:10.1371/journal.pone.0204369.
[12] J. Perelló, D. Murray-Rust, A. Nowak, S. R. Bishop, Linking science and arts: Intimate science, shared spaces and living experiments, The European Physical Journal Special Topics 214 (1) (2012) 597–634. doi:10.1140/epjst/e2012-01707-y.
[13] J. Perelló, New knowledge environments: On the possibility of a citizen social science, Méteode Science Studies Journal 12 (2022). doi:10.7203/metode.12.18136.
URL https://doi.org/10.7203/metode.12.18136
[14] J. Perelló, F. Larroya, I. Bonhoure, et al., Citizen science for social physics: digital tools and participation, European Physical Journal Plus 139 (2024) 572. doi:10.1140/epjp/s13360-024-05336-3.
[15] A. Cigarini, J. Vicens, J. Duch, A. Sánchez, J. Perelló, Quantitative account of social interactions in a mental health care ecosystem: cooperation, trust and collective action, Scientific Reports 8 (2018) 3794. doi:10.1038/s41598-018-21900-1.
[16] A. Cigarini, J. Vicens, J. Perelló, Gender-based pairings influence cooperative expectations and behaviours, Scientific Reports 10 (1) (2020) 1041. doi:10.1038/s41598-020-57749-6. URL https://doi.org/10.1038/s41598-020-57749-6
[17] J. Perelló, A. Cigarini, J. Vicens, I. Bonhoure, D. Rojas-Rueda, M. J. Nieuwenhuijsen, M. Cirach, C. Daher, J. Targa, A. Ripoll, Large-scale citizen science provides high-resolution nitrogen dioxide values and health impact while enhancing community knowledge and collective action, Science of the Total Environment 789 (2021) 147750. doi:10.1016/j.scitotenv.2021.147750.
[18] J. Perelló, J. Targa, C. Daher, M. Alonso, L. Francis, A. Masha-Caminals, I. Bonhoure, A. Cigarini, J. Vicens, G. Carrasco-Turigas, Large-scale citizen science protocol provides high-resolution nitrogen dioxide values while enhancing community knowledge and collective action, MethodsX 8 (2021) 101475. doi:10.1016/j.mex.2021.101475.
[19] J. Perelló, A. Cigarini, J. Vicens, I. Bonhoure, D. Rojas-Rueda, M. J. Nieuwenhuijsen, M. Cirach, C. Daher, J. Targa, A. Ripoll, Data set from large-scale citizen science provides high-resolution nitrogen dioxide values for enhancing community knowledge and collective action to related health issues, Data in Brief 37 (2021) 107269. doi:10.1016/j.dib.2021.107269.
[20] J. Vicens, J. Perelló, J. Duch, Citizen social lab: A digital platform for human behavior experimentation within a citizen science framework, PLOS ONE 13 (12) (2018) e0207219. doi:10.1371/journal.pone.0207219.
[21] OpenSystems, https://www.ub.edu/opensystems/ (2025).
[22] D. D. Streamers, https://www.domesticstreamers.com/ (2026).
[23] J. Hasell, Measuring inequality: what is the gini coefficient?, Our World in Data (2023).
URL https://archive.ourworldindata.org/20260910-190414/what-is-the-gini-coefficient.html
[24] World Health Organization, WHO global air quality guidelines: particulate matter (PM2.5 and PM10), ozone, nitrogen dioxide, sulfur dioxide and carbon monoxide, World Health Organization, Geneva, 2021. URL https://iris.who.int/handle/10665/345329
[25] CitizenSocialLab, Stem4youth, https://github.com/CitizenSocialLab/STEM4Youth (2019).
[26] C. de Cultura Contemporânea de Barcelona, City station. environmental health clinic in the district of sant martí of barcelona, https://www.cccb.org/en/seasons/file/city-station/227726 (2018).
[27] C. de Cultura Contemporânea de Barcelona, After the end of the world, https://www.cccb.org/en/exhibitions/file/after-the-end-of-the-world/224747 (2018).
[28] 4sfera, Millorem la qualitat de l'aire, https://4sfera.com/ (2025).
[29] M. W. C. Barcelona, https://mobileworldcapital.com/en/ (2025).
[30] ISGlobal, Instituto de salud global barcelona, https://www.isglobal.org/ (2025).
[31] M. for Change, https://mappingforchange.org.uk/ (2025).
[32] J. Perelló, J. Vicens, I. Bonhoure, A. Cigarini, M. Sadurní, M. F. Díaz, M. Montero, Replication data for: A citizen science behavioural dataset of an urban collective-risk dilemma on air pollution mitigation under resource inequality, CORA. Repositori de Dades de Recerca (2026). doi: 10.34810/DATA3672.
CAT
ESP
ENG
Welcome to Game xAir!
The City Station has proposed the xAir collective action with 20 primary schools to measure the air quality of Barcelona.
1,672 students, families and teachers have measured the concentration of nitrogen dioxide (NO2) in more than 800 points of Barcelona for 1 month. We now know its concentration with unprecedented geographical precision and we provide evidences among the differences between district.
We propose a game and a citizen science research based on these results and that will launch a collective action related to air quality. Are you ready?
I WANT TO PLAY
Air quality
NO2 Barcelona
Significant differences are observed between the different districts of the city. If we compare the measurements between any two schools the variation can reach 60%.
How would you rate the quality of the air you breathe where you live?
Bad
Normal
Good
Are you concerned about the air quality where you live?
Little
Somewhat
A lot
Would you perform a collective action to improve air quality in Barcelona?
Yes
No
EXIT GAME
NEXT
Air quality
NO2 Barcelona
The average level of NO2 concentration obtained by the 20 schools of Barcelona is 46.23 micrograms per cubic meter, which means poor air quality according to global standards.
Where do you live?
Ciutat Vella
L'Example
Sants-Monjuc
Les Corts
Sarnà - Sant Gervasi
Gràcia
Horta-Guinardó
Nou Barris
Sant Andreu
Sant Marti
Out of Barcelona
EXIT GAME
NEXT
Time
Round 1 of 10
You have: 30 coins
How much do you want to contribute?
0
2
4
At the beginning every participant should receive the same amount of coins (40). Due to disparities in pollution levels across districts, however, there might be differences among participants.
Thanks to the data collected by the school Seat we know that in Sants-Monjuic the NO2 concentration is 46.89 micrograms per cubic meter (poor quality).
You are going to play as Player 4 with 30 coins
The other participants have:
Player 1 have 60 coins
Player 2 have 30 coins
Player 3 have 60 coins
Player 5 have 30 coins
Player 6 have 30 coins
We start in...
14
Results Round 1
GOAL
120
COMMON FUND
12
| Player | Initial Capital | Current Capital | Round Contribution |
|---|---|---|---|
| 1 | 60 | 58 | 2* |
| 2 | 30 | 28 | 2* |
| 3 | 60 | 58 | 2* |
| 4 | 30 | 28 | 2 |
| 5 | 30 | 28 | 2* |
| 6 | 30 | 28 | 2* |
| TOTAL | 12 | ||
NOTE: In the contributions marked with *, the system has decided for the player
Next round starts in...
8
Figure 6: Selection of screenshots from the tablet-based interface used in the public experiments. From left to right and top to bottom, the sequence shows the welcome screen; contextualization and self-perception of air quality; contextualization and residence-district reporting; initial experiment instructions; the decision screen used in each round; and the feedback screen presented after each round.