Data Batch Processing

Note

This page describes how to perform batch processing in the International Futures model.

The International Futures model

The International Futures (IFs) model is a comprehensive forecasting tool used for scenario analysis, enabling users to explore and shape global futures by examining interactions between human, social, and environmental systems over time. It models long-term change across economies, societies, and the environment, facilitating strategic planning and understanding of possible future outcomes. With a database spanning from 1960 and projections up to 2100, IFs covers 186 countries and forecasts numerous variables, making it an invaluable asset for analysing global policy scenarios and addressing grand challenges. For more details, visit here.

Use of the International Futures (IFs) model within USAID WSSH Data & Analytics program Akvo’s role within the USAID WSSH project, which is led by Segura, includes creating a tool (the WASH Futures Explorer) that helps USAID WASH practitioners to better understand:

  • The current WASH situation in USAID’s high-priority key countries (HPCs).

  • The effect of changingWASH investments or policies on the access to Water and Sanitation services.

  • The effect of changing WASH investments or policies on key health, prosperity, and governance indicators.

Note

For more info regarding the International Futures Model, please check: African Futures Project: Water & Sanitation

Note

Current WASH Futures Explorer: PowerBI Link

Why Batch Processing?

Batch processing refers to the bulk download of data - in this case scenario runs of the IFs model. The desktop version of the IFs model has the ability to do batch processing, which is not possible in the online version. In other words, downloading a large amount of data using the online version is a lengthy process (due to repetitive clicking, and in part because the online version is more error prone). With batch processing, many scenarios can be run simultaneously, thus speeding up the process.

Note

The IFs desktop model runs only on Windows machines and is not compatible with Mac or Linux Operating System.

How to Install the International Futures Model for Batch Processing

Go to IFs Download Page and click on the latest IFs model to download it locally , for example IFs V8.06 (September 2023).

Step 1: Create Scenario Files

A scenario file is a text file (with extension .sce) that describes the scenario to be run in the IFs model. We use 36 scenarios:

Note

High-priority countries include: Dem. Republic of the Congo, Ethiopia, Ghana, Guatemala, Haiti, India, Indonesia, Kenya, Liberia, Madagascar, Malawi, Mali, Mozambique, Nepal, Nigeria, Philippines, Rwanda, Senegal, Sudan South, Tanzania, Uganda, Zambia.

Scenario of reaching water and sanitation in 2030 and 2050

Scenario (parameter)

Code

Description

1

sanithhbasictrgtyr = 12, shift years = 6

FS_ALB_2030

Full access to at least basic sanitation services in 2030

2

sanithhbasictrgtyr = 32, shift years = 6

FS_ALB_2050

Full access to at least basic sanitation services in 2050

3

sanithhsafetrgtyr = 12, shift years = 6

FS_SM_2030

Full access to safely managed sanitation services in 2030

4

sanithhsafetrgtyr = 32, shift years = 6

FS_SM_2050

Full access to safely managed sanitation services in 2050

5

waterhhbasictrgtyr = 12, shift years = 6

FW_ALB_2030

Full access to at least basic water services in 2030

6

waterhhbasictrgtyr = 32, shift years = 6

FW_ALB_2050

Full access to at least basic water services in 2050

7

waterhhsafetrgtyr = 12, shift years = 6

FW_SM_2030

Full access to safely managed water services in 2030

8

waterhhsafetrgtyr = 32, shift years = 6

FW_SM_2050

Full access to safely managed water services in 2050

9

(waterhhbasictrgtyr = 12, shift years = 6) & (sanithhbasictrgtyr = 12, shift years = 6)

FWS_ALB_2030

Full access to at least basic water & sanitation services in 2030

10

(waterhhbasictrgtyr = 32, shift years = 6) & (sanithhbasictrgtyr = 32, shift years = 6)

FWS_ALB_2050

Full access to at least basic water & sanitation services in 2050

11

(waterhhsafetrgtyr = 12, shift years = 6) & (sanithhsafetrgtyr = 12, shift years = 6)

FWS_SM_2030

Full access to safely managed water & sanitation services in 2030

12

(waterhhsafetrgtyr = 32, shift years = 6) & (sanithhsafetrgtyr = 32, shift years = 6)

FWS_SM_2050

Full access to safely managed water & sanitation services in 2050

Scenarios for decreasing/increasing water and sanitation in 2030 and 2050

Scenario (parameter)

Code

Description

13

sanithhm = 0.5, basic, total, shift years = 6

SI_BS_0_5x

Increase basic sanitation services by factor 0.5

14

sanithhm = 2, basic, total, shift years = 6

SI_BS_2x

Increase basic sanitation services by factor 2

15

sanithhm = 4, basic, total, shift years = 6

SI_BS_4x

Increase basic sanitation services by factor 4

16

sanithhm = 6, basic, total, shift years = 6

SI_BS_6x

Increase basic sanitation services by factor 6

17

sanithhm = 0.5, safely managed, total, shift years = 6

SI_SM_0_5x

Increase safely managed sanitation services by factor 0.5

18

sanithhm = 2, safely managed, total, shift years = 6

SI_SM_2x

Increase safely managed sanitation services by factor 2

19

sanithhm = 4, safely managed, total, shift years = 6

SI_SM_4x

Increase safely managed sanitation services by factor 4

20

sanithhm = 6, safely managed, total, shift years = 6

SI_SM_6x

Increase safely managed sanitation services by factor 6

21

waterhhm = 0.5, basic, total, shift years = 6

WI_BS_0_5x

Increase basic water services by factor 0.5

22

waterhhm = 2, basic, total, shift years = 6

WI_BS_2x

Increase basic water services by factor 2

23

waterhhm = 4, basic, total, shift years = 6

WI_BS_4x

Increase basic sanitation services by factor 4

24

waterhhm = 6, basic, total, shift years = 6

WI_BS_6x

Increase basic water services by factor 6

25

waterhhm = 0.5, safely managed, total, shift years = 6

WI_SM_0_5x

Increase safely managed water services by factor 0.5

26

waterhhm = 2, safely managed, total, shift years = 6

WI_SM_2x

Increase safely managed water services by factor 2

27

waterhhm = 4, safely managed, total, shift years = 6

WI_SM_4x

Increase safely managed water services by factor 4

28

waterhhm = 6, safely managed, total, shift years = 6

WI_SM_6x

Increase safely managed water services by factor 6

29

(waterhhm = 0.5, basic, total, shift years = 6) & (sanithhm = 0.5, basic, total, shift years = 6)

WSI_BS_0_5x

Increase basic water & sanitation services by factor 0.5

30

(waterhhm = 2, basic, total, shift years = 6) & (sanithhm = 2, basic, total, shift years = 6)

WSI_BS_2x

Increase basic water & sanitation services by factor 2

31

(waterhhm = 4, basic, total, shift years = 6) & (sanithhm = 4, basic, total, shift years = 6)

WSI_BS_4x

Increase basic water & sanitation services by factor 4

32

(waterhhm = 6, basic, total, shift years = 6) & (sanithhm = 6, basic, total, shift years = 6)

WSI_BS_6x

Increase basic water water & services by factor 6

33

(waterhhm = 0.5, safely managed, total, shift years = 6) & (sanithhm = 0.5, safely managed, total, shift years = 6)

WSI_SM_0_5x

Increase safely managed water & sanitation services by factor 0.5

34

(waterhhm = 2, safely managed, total, shift years = 6) & (sanithhm = 2, safely managed, total, shift years = 6)

WSI_SM_2x

Increase safely managed water & sanitation services by factor 2

35

(waterhhm = 4, safely managed, total, shift years = 6) & (sanithhm = 4, safely managed, total, shift years = 6)

WSI_SM_4x

Increase safely managed water & sanitation services by factor 4

36

(waterhhm = 6, safely managed, total, shift years = 6) & (sanithhm = 6, safely managed, total, shift years = 6)

WSI_SM_6x

Increase safely managed water & sanitation services by factor 6

In order to generate a scenario file (for example sanithhbasictrgtyr = 12, shift years = 6), follow the next steps:

  1. Open the International Futures (IFs) desktop application.

  2. Hover over Scenario Analysis then select *Quick scenario analysis with Tree in the pop-up

    Batch 1
  3. Hover over Set Group or Country. Then select Groups.

    Batch 2
  4. Select Parameter Search. The following box will appear.

    Batch 3
    1. Type the full parameter name or a key word it contains in the box.

    2. Click on Search or press Enter.

    3. Select the correct parameter.

    4. Select Define to see the full description of the parameter.

    5. Click Load.

  5. Select World then Total in the box with the header Please pick a dimension from the dropdown.

    In the window that appears, follow these 3 steps:

    1. Enter the parameter value.

    2. Click on Apply.

    3. Enter 6 in the Shift Years box.

      Batch 4

      Note

      for mixed scenarios (scenarios using more than one parameter), repeat the process for the rest of parameters. Apply steps from (4) to (6).

  6. Save the scenario file by moving the mouse to Scenario Files and clicking on Name and Save.

  7. The following box will appear.

    Batch 5
    1. Enter the name of the scenario (remember to limit the number of characters to 12 maximum).

    2. Provide the name of the file where the scenarios should be stored.

    3. Click Save.

  8. Move the mouse to Scenario files then click on Clear tree to come back to the software main menu.

You can now generate a new scenario by repeating the process until you get all scenarios in the same folder.

The folder with the scenarios will be located in C:\Users\…\AppData\Local\IFs\Scenario\a User Defined Scenarios. Both names (folder and scenarios) can be renamed locally and the change will be taken into account automatically when you close and open the IFs software again.

Facultative action but good for scenarios batch management: move the folder one step back. For example, from C:\Users\…\AppData\Local\IFs\Scenario\a User Defined Scenarios to C:\Users\…AppData\Local\IFs\Scenario.

Scenarios generated on one laptop can be used on a different laptop as well. If a bunch of scenarios have already been generated on one laptop, there is no need to generate the same scenarios again. Just copy and paste the scenarios from C:\Users\…\AppData\Local\IFs\Scenario, and the scenarios will be taken into account automatically in the IFs software. You will now be able to process the batch running of these scenarios.

Step 2: Batch Run All Scenario Files

  1. Hover over Scenario Analysis and click on Batch Run.

    Batch 6
  2. In the page that appears, follow the steps in the screenshot below:

    Batch 7
    1. Unfold the folder a User Defined Scenario by clicking in the triangular icon on the left.

    2. Select the scenario of interest.

    3. Change Run Year (the maximum is 2100).

    4. Click on Select

  3. Wait until you see the text International Futures has finished running one or more scenarios/cases. On the screen, click Continue to come back to the software’s main menu.

Step 3: Download the Output Files

For all scenarios, some .csv files have to be generated for all focus indicators. For the WASH Futures Explorer, this is the complete list of indicators we used.

List of Indicators

Indicator Name

Dimensions to select

Objective

Indicator name

Dimensions to select

Objective

1

Deaths by Category of Cause - Millions

2nd Dim. = Diarrhea;3rd Dim. = Total

Decrease

2

Poverty Headcount <$2.15 per Day, Log Normal - Millions

Decrease

3

State Failure Instability Event - IFs Index

Decrease

4

Governance Effectiveness - WB index

Decrease

5

Sanitation Services, Access, percent of population

2nd Dim. = Basic, Safely Managed; 3rd Dim. = Total

Increase

6

Sanitation Services, Access, Number of people, million

2nd Dim. = Basic, Safely Managed; 3rd Dim. = Total

Increase

7

Sanitation Services, Expenditure, Capital, Billion $

2nd Dim. = Basic, Safely Managed; 3rd Dim. = Total

Increase

8

Water Services, Access, percent of population

2nd Dim. = Basic, Safely Managed; 3rd Dim. = Total

Increase

9

Water Services, Access, Number of people, million

2nd Dim. = Basic, Safely Managed; 3rd Dim. = Total

Increase

10

Water Services, Expenditure, Capital, Billion $

2nd Dim. = Basic, Safely Managed; 3rd Dim. = Total

Increase

11

GDP (PPP) - Billion dollars

Increase

12

Stunted children, History and Forecast - Million

Decrease

13

Malnourished Children, Headcount - Millions

Decrease

To get data for a specific indicator, follow the steps below to get the .csv file.

  1. Move the mouse to Display then select Flexible display.

    Batch 8
  2. Follow the steps in the screenshot below.

    Batch 9
    1. Press CTRL+F on your keyboard and enter the whole name of the indicator or a keyword contained in it.

    2. Select Country/regions and Groups.

    3. Select the focus indicator name.

    4. Select the horizon year for analysis.

    5. Select all focus scenarios. Hold down the CTRL key to select multiple scenarios at once.Do not forget to include the base scenario IFsBase.run.db as all analyses are based on these values.

    6. Select all focus countries. Hold down the CTRL key to select multiple countries at once. Do not forget to include the group of focus countries created before.

    7. Select the focus dimensions (the number of dimensions depends on the indicator selected).

    8. Refer to the table above, specifically the column Dimensions to select.

    9. Click on Table to see the data.

  3. Move the mouse to Save then click Save Normal View. A .csv file will automatically be downloaded into the desktop’s local downloads.

    Batch 10
  4. Rename the downloaded file which is ifs.csv by default.

  5. Click on Continue to return to the software’s main menu.

  6. Repeat the same process to get data for the next indicator.