Website In Development
Reference: Input Fields
Note: A formal definition of the input structure is provided as a json-schema definition, see the /v3/schema
endpoint. Any structural discrepancies between the following table and the json-schema definition indicates an error in this table, the json-schema is definitive.
Required
Note: these first 4 top level fields must be specified in every query.
Input Field | Value/s | Description |
---|---|---|
batch_label |
Required: Yes – API will return an error if no value is provided. Default: None Format: Any string, up to 255 characters. Example: |
A label to identify batches of related queries in a single upload that should be collated for return. This is relevant when files are uploaded using a web-browser. It allows you to submit a file with an array of queries but get an individual email of links for each group having a common |
person_ID |
Required: Yes – API will return an error if no value is provided. Default: None Format: Any string, up to 255 characters. Example: |
A label to identify the person (eg. in a roster) that a query relates to. |
start_time |
Required: Yes – API will return an error if no value is provided. Default: None. Format: - Sydney Models: Example: - Sydney Models: |
Start-time of the protocol Model evaluation and returned results begin at this date-time. Note: Default initial conditions are configured for the simulation of Sydney models to begin at |
time_zone |
Required: Yes – API will return an error if no value is provided. Default: None. Format: String, one of a fixed set Example: |
Time-Zone of the Start-time of the protocol IANA time-zones |
Common
Note: none of the top level fields here are required, that is, if you do not need them simply do not include them, however, once you specify a top-level field with sub-fields (eg. forced_wake
), then most of its sub-fields are required.
Input Field | Value/s | Description |
---|---|---|
evaluation_type |
Required: No Default: Format: String, one of a fixed set
Example: |
Defines how the model should be evaluated. Specifically, whether it should be run a single time to generate predictions, or multiple times to identify recommendations that optimise a desired sleep or alertness property. See optimisation_objective . |
optimisation_objective |
Required: No Default: Format: String, one of a fixed set
Example: |
For
|
output_set |
Required: No Default: Format: String, one of a fixed set
Example: |
Defines output measures and format. Note: See the listing of Predefined Output-Sets and the Output descriptions for more detail. Note: The |
Note: while |
Required: No Default: None Format: An object containing 6 fields: |
Periods of time with forced wakefulness. Can be periods of sleep deprivation in a clinical or experimental setting, or work shifts and social commitments in real world settings. |
|
Required: Yes Default: None Format: Any string, up to 255 characters. Examples: |
A string to identify a particular type of forced wake. Any value can be used, however, those with shift as a sub-part are used to identify time periods relevant to the calculation of some types of output. |
|
Required: Yes Default: None Format: Array of date-time strings, Example: |
Start time/s of this type of forced-wake. Note: must have a matching entry in the |
|
Required: Yes Default: None Format: Array of date-time strings, Example: |
End time/s of this type of forced-wake. Note: must have a matching entry in the |
|
Required: Yes Default: None Format: A single number, hours. Example: |
Duration (hours) required before forced-wake event, the time-interval implied by this duration is also treated as forced-wake, eg. Commute time to work. |
|
Required: Yes Default: None Format: A single number, hours. Example: |
Duration (hours) required after forced-wake event, the time-interval implied by this duration is also treated as forced-wake, eg. Commute time from work. |
|
Required: No Default: Time-Zone Specified for initial time-zone. Format: String, one of a fixed set Example: |
Time-Zone of these forced-wakes IANA time-zones Note: if omitted the top level time-zone is assumed to apply to these date-times. |
Note: while |
Required: No Default: None Format: An object containing 5 fields: |
Specific light information can be provided as coarsely as a single value for an entire simulation, by referenced time-intervals, such as an average value during shift, or as fine grained as minute-by-minute values (eg as recorded by a worn light meter). Any value provided here replaces the built-in diurnal light-profile at the specified time. |
|
Required: Yes Default: None Format: Any string, up to 255 characters. Examples: |
Identifies the light intervals. When explicit start_time and end_time are specified as empty arrays, [] , this label is used to identify the intervals to which the specified photopic_lux applies, and so must match a forced_wake label. |
|
Required: Yes Default: None Format: Array of date-time strings, Example: |
Start time/s of Note: must have a matching entry in the |
|
Required: Yes Default: None Format: Array of date-time strings, Example: |
End time/s of Note: must have a matching entry in the |
|
Required: Yes Default: Format: An array of numbers, either a single entry or Example: |
White-light illuminance in lux. |
|
Required: No Default: Time-Zone Specified for initial time-zone. Format: String, one of a fixed set Example: |
Time-Zone of these forced-wakes IANA time-zones Note: if omitted the top level time-zone is assumed to apply to these date-times. |
Custom Output
The field described here is for requesting custom output, ie, when setting output_set: "custom"
.
Input Field | Value/s | Description |
---|---|---|
Note: |
Required: No Default: None Format: An object containing 11 fields: |
Object for configuring customised output. |
|
Required: No Default: Format: String, one of a fixed set
Example: |
File Format for Data Output |
|
Required: No Default: Format: String, one of a fixed set
Example: |
Format used for date-time output. The format is specified as one of six predefined types and governs the format the output is written. The |
|
Required: No Default: Format: String, one of a fixed set
Example: |
Format (Units) Used for Duration Output The format is specified as one of four predefined types and governs the units used when durations are output. The duration types ( |
|
Required: No Default: Format: String, one of a fixed set
Example: |
File Format for the Figure Output The format is specified as one of the predefined types and governs the file format used when saving figures. |
|
Required: No Default: Format: Array of Objects, with fields:
Example: |
An array time-series specification objects. For each required time-series (periodically sampled measure), an object specifying the time- For supported |
|
Required: No Default: Format: Array of Objects, with fields:
Example: |
Data Sampled at Specific Time-Instants. For each required instant-sample (aperiodically sampled measure), an object specifying the time- |
|
Required: No Default: Format: Array of Objects, with fields:
Example: |
Data Sampled within Time-Intervals. Interval-samples are used to return a single value for each instance of the specified interval. For each required interval-sample, an object specifying the time-interval to sample from, the name of the |
|
Required: No Default: Format: Array of Objects, with fields:
Example: |
Time-Instants Note: any instants requested for instant-samples are included implicitly, so you only need to specify required timing output not already implicitly included. |
|
Required: No Default: Format: Array of Strings, from a fixed set
Example: |
An array interval specification strings. Note: any intervals requested for time-series instant-samples or interval-samples are included implicitly, so there is no need to specify implicitly included intervals again here. |
|
Required: No Default: Format: Array of Objects, with fields:
Example: |
For each required duration, an object specifying the time-interval for which the duration is wanted. Optionally, a state can be specified, with the duration for that state within the interval being returned. |
|
Required: No Default: Format: Array of Strings, from a fixed set
Example: |
Figures to Generate. |
Advanced
The fields listed here are primarily of use for advanced use-cases such as individualising model predictions and recommendations.
Input Field | Value/s | Description |
---|---|---|
V_initial |
Required: No Default: Values corresponding to being rested and entrained to local light-dark cycle. Format: Array of numbers, model dependent
|
Initial values for model variables. This corresponds to the assumed state of the person at the beginning of a simulation. For Sydney models the default initial values are for state at midnight ( |
duration_days |
Required: No Default: See descriptions. Format: Single number, days. Maximum allowed via the API is Example: |
Duration of simulation in days. Used to extend the models evaluation beyond the time period of the provided context, eg., forced-wake times. When evaluating a model for predictions, the duration defaults to the time between |
Research
The fields listed here are primarily of use for research purposes, they generally should not be modified unless you know what you’re doing.
Input Field | Value/s | Description |
---|---|---|
model |
Required: No Default: Format: String, one of a fixed set
Example: |
Specifies which model of sleep-wake and alertness should be evaluated. See the Models section of the user guide for more detail. If you are unsure, stick with the default. That is, do NOT specify a model. |
Note: while |
Required: (model dependent)
Format: An object containing 3 fields: As described in the following rows |
Specify time-intervals of sleep-opportunity Inverse of, and overrides, forced-wake. For Sydney models, which predict sleep times, it is strongly preferred to specify context in terms of forced-wake only. For models that do not predict sleep, this field is required for specifying sleep. |
|
Required: Yes Default: None Format: Array of date-time strings, Example: |
Start time/s of sleep opportunities/episodes. Note: Implies forced-wake at all other time. Note: For non-Sydney models if no sleep times are specified the model is always awake. Note: must have a matching entry in the |
|
Required: Yes Default: None Format: Array of date-time strings, Example: |
End time/s of Note: Implies forced-wake at all other time. Note: For non-Sydney models if no sleep times are specified the model is always awake. Note: must have a matching entry in the |
|
Required: No Default: Time-Zone Specified for initial time-zone. Format: String, one of a fixed set Example: |
Time-Zone of these sleep-opportunity IANA time-zones Note: if omitted the top level time-zone is assumed to apply to these date-times. |
simulation_sampling_period_minutes |
Required: No Default: Format: Single number, minimum |
Simulation sample period in minutes. |
ambient_light |
Required: No Default: Format: String, one of a fixed set
Example: |
Specifies the form of ambient/background lighting to use. The Note: Only affects models that incorporate light into their predictions. |
Only Sydney-Groups Models
The following input fields are only applicable to the Sydney models.
Note: The parameters listed below are just those that are considered to be somewhat safe to modify, however, all model parameters (more than just the few listed below) are accessible following a similar pattern.
Input Field | Value/s | Description |
---|---|---|
model_parameters |
Required: No Default: None Format:
|
Used to override default values used for a model’s parameters. Individual sub-fields are described in the following rows. |
|
Required: No Default: Format: Example: |
Combined external influences on the VLPO, units: mV. Main effect on sleep onset time, total sleep time, and phase angle. |
|
Required: No Default: Format: Example: |
Connection strength from the MA to H, units: mV. Main effect on sleep onset time and phase angle |
|
Required: No Default: Format: Example: |
Time constant of the homeostatic drive, units: seconds. The default value corresponds to 59.0 hours. Main effect on sleep onset time and phase angle |
|
Required: No Default: Format: Example: |
Endogenous circadian period, units: seconds. The default value corresponds to 24.2 hours Main effect on circadian period, sleep onset time, and phase angle |
This parameter is added as a trial only and does not exist in published models. Note: not validated against data. |
Required: No Default: Format: Example: |
Multiplicative scaling applied to the actual value of Main effect on the homeostatic drive during shifts. This changes model dynamics, so sleep times after shifts will be affected as well. The default of 1.0 corresponds to no scaling of |
processing_parameters |
Required: No Default: None Format: |
Used to override default values used for post processing of a model’s output. Individual sub-fields are described in the following rows. |
NOTE: trailing character is zero. This parameter is added as a trial only and does not exist in published models. Note: not validated against data. |
Required: No Default: Format: Example: |
Multiplicative scaling applied to the bias term of the regression model used to calculate vPVTL from the homeostatic and circadian outputs during shifts. The only effect is on vPVTL output during shifts. Decrease of |
This parameter is added as a trial only and does not exist in published models. Note: not validated against data. |
Required: No Default: Format: Example: |
Multiplicative scaling applied to the homeostatic term of vPVTL during shifts. The only effect is on vPVTL output during shifts. Increase of |
This parameter is added as a trial only and does not exist in published models. Note: not validated against data. |
Required: No Default: Format: Example: |
Multiplicative scaling applied to the circadian term of vPVTL during shifts. The only effect is on vPVTL output during shifts. Increase of |
Research Notes
Access to model parameters:
- The models have been validated for group average predictions and for default parameter values only. Thus, at this stage use of the default model parameters is advised for real-world applications of the models. However, if users choose to change model parameters, it is up to them to ensure that the change is appropriate for the problem at hand.
- Changes of model_parameters will affect sleep dynamics as described for each parameter. The changes will propagate to changes in all alertness measures because alertness depends on the homeostatic and circadian drives and both are affected by sleep times (effects on the circadian drive are indirect via changes in light profile due to sleep).
- All other model parameters described in Postnova et al., 2018 can be made available through the API but are not recommended to be changed by users. The parameters listed in the table above are the ones that are best suited to simulate inter individual variability. For example, see Skeldon et al. 2015 for ideas of how effects of ageing on sleep can be simulated in models of this type
Effects of task during shifts:
- Simulation of the effects of task on performance has not yet been validated against data. So, even though a prototype implementation is made available via the
task_shift
parameters, it is not yet advised for use in real world applications. The groupprocessing_parameters
should be used as a first choice to introduce effects of task on vPVTL during shifts. This will change the performance during shifts but won’t otherwise affect model dynamics. An alternative implementation of the effect of task on performance is viamodel_parameters.task_shift.shift.V_WE
. This implementation should only be used when changes in sleep are expected due to different tasks. This may also have longer term effects of dynamics post-shifts.