Skip to content

beepnl/bee-health-calculation-model-bgood-wp2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

bee-health-calculation-model-bgood-wp2

Bee health calculation model B-GOOD WP2 This code was developed by Luke Chamberlain at Nottingham Trent University with the support of the B-GOOD project: https://b-good-project.eu/.

Description

Calculates the cumulative weight anomaly based on input weight data of two or more hives in JSON array format. Returns the first principal component score of each hive. A principal component analysis is done on the normalized cumulative sum of the daily mean weight of each hive.

Running the model

1. Install dependencies

2. Run the model

python3
data=[
    {
    "time": "2023-11-16T00:00:00Z",
    "weight_1": 54.166666666666666,
    "weight_2": 52.125,
    "weight_3": 51.125
    },
    {
    "time": "2023-11-16T00:13:55Z",
    "weight_1": 46.166666666666666,
    "weight_3": 53.125
    },
    {
    "time": "2023-11-16T02:11:10Z",
    "weight_1": 43.446666666666666,
    "weight_2": 50.125
    }
]
cumulative_weight_anomaly(data)

Author

Luke Chamberlain [email protected]

Input data

Measurement

  • net_weight_kg (weight excluding beekeeper actions)
  • cumulative weight per day (set to 0 at midnight)

Data interval

  • 15 min average

Data period

  • relative interval of 7 * 24 hours

Data items

  • all hives of the apiary as a single data stream

Output data

About

Bee health calculation model B-GOOD WP2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages