Computer Science
Advanced
200 mins
Teacher/Student led
What you need:
Chromebook/Laptop/PC

Developing the Computer Model and Simulations

In this lesson, you will build a complete Python computer model for forest disaster risk, incorporating real data from your embedded system and additional datasets. You will create two what-if scenario simulations, implement an adaptive feedback mechanism, and visualise results with graphs to meet all advanced requirements.
Learning Goals Learning Outcomes Teacher Notes

Teacher Class Feed

Load previous activity

    1 - Objectives

    By the end you will have a complete, working Python computer model that fully meets the three advanced requirements on page 5 of the 2026 brief:

    • Develop a Python-based computer model of a chosen forest-related disaster risk (e.g., wildfire, drought, pest outbreak, air quality, landslides, flooding).
    • Two different “what-if” scenario simulations using real data from your embedded system combined with open-source or simulated data
    • A working feedback mechanism (physical or virtual) that makes the system adaptive

    2 - Exact Advanced Requirements You Must Meet

    From page 5 of the official brief:

    1. Using Python, develop a computer model of a chosen disaster risk scenario related to forests (e.g., wildfire, drought, pest outbreak, air quality, landslides, flooding).
    2. Your model must use some data collected from your embedded system and can be combined with open-source data or simulated data.
    3. Explore how your model behaves under different conditions by creating and testing two “what-if” scenario simulations. Each scenario must change one or more key variables.
    4. Extend your system to include a feedback mechanism that enables it to adapt automatically (physical or virtual).

    All four points must be fully working.

    3 - Data You Must Use

    Your model must include:

    • Real data collected by your embedded system (CSV file from Lesson 5)
    • At least one additional dataset (open-source or simulated by you)
    Example Data SourcesPossible Use
    Met Éireann historical rainfall/temperatureLong-term drought prediction
    Irish Forest Strategy tree density dataAfforestation what-if
    Canadian Fire Weather Index formulaWildfire risk calculation
    Your own simulated future climate data+2 °C or –40 % rainfall scenarios

    All sources must be cited in your code comments per brief guidelines (page 6).

    4 - Required Python Libraries

    Add the required libraries to the top of your model file, for example:

    import pandas as pd
    import matplotlib.pyplot as plt
    import numpy as np
    from datetime import datetime
    

    5 - Core Structure of Your Model File

    Your final model.py must contain all of these sections:

    1. Load your real embedded data (CSV)
    2. Load or generate additional dataset
    3. Define the disaster risk calculation (e.g., fire risk index, drought stress score)
    4. Scenario 1 – change one or more variables and recalculate
    5. Scenario 2 – different changes
    6. Display results (e.g., tables via pandas and graphs via matplotlib) comparing baseline, Scenario 1, and Scenario 2
    7. Adaptive feedback mechanism (see next step)

    Unlock the Full Learning Experience

    Get ready to embark on an incredible learning journey! Get access to this lesson and hundreds more in our Digital Skills Curriculum.

    Copyright Notice
    This lesson is copyright of DigitalSkills.org 2017 - 2025. Unauthorised use, copying or distribution is not allowed.
    🍪 Our website uses cookies to make your browsing experience better. By using our website you agree to our use of cookies. Learn more