This page is about Emerging Household Energy: running kitchen performance tests (KPTs) in a clean cooking programme. A KPT measures how much fuel a household uses, by direct observation and structured evidence, so that fuel savings can be validated. The page sets out how a test must be designed and run, and how to submit the results as a KPT claim.
The code on this page is an illustrative example. It shows the shape of the data and the calls,
and has not been run as a whole. The api.emerging.eco/v1 calls and the emerging Python client
are not part of the Emerging Platform API contract.
Design the test
Selection and groups
- Select households at random, and document the selection method in the MADD. The platform provides tools for random selection and for documenting it.
- Test two groups: a reference group (old stove users) and an intervention group (new stove users).
- Test both groups at the same time.
- Make the reference group representative of the target population.
- Have a clear strategy for engaging reference households, document any incentives, and monitor compliance.
Duration
- Minimum duration: 3 days.
- Choose a test period that captures representative cooking patterns. Document how the test days were chosen and why the period is appropriate.
- Allow for seasonal changes in cooking, cultural factors that affect cooking habits, and local event calendars.
What affects the measurements
- Climate. Account for differences in climate across places and over time, and track seasonal effects on fuel consumption.
- External factors. Monitor traditional cooking patterns, track occupational influences and document cultural events.
- Continuity. Ongoing coverage is best practice. Any gap needs a detailed justification. Check the data regularly.
Sample size
Testing the full population is preferred. Sampling is allowed with a proper design: follow the sampling design guidelines, meet the requirements for statistical significance and document how the sample was selected.
Submit KPT results
Illustrative example:
curl -X POST https://api.emerging.eco/v1/claims \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"type": "KPTClaim",
"householdId": "did:ixo:household/123",
"testGroup": "intervention",
"testPeriod": {
"startDate": "2024-02-01",
"endDate": "2024-02-04",
"durationDays": 3
},
"fuelMeasurements": {
"total": 11.9,
"dailyLogs": [3.2, 2.8, 3.0, 2.9]
},
"externalFactors": {
"season": "dry",
"culturalEvents": ["none"],
"occupationalFactors": ["typical_workweek"]
}
}'from emerging import Client, KPTDesign
# Configure test design
design = KPTDesign.create(
population_size=1000,
confidence_level=0.95,
margin_error=0.05
)
# Get random household selection
selected_households = design.get_random_selection()
# Submit KPT data
client = Client('YOUR_API_KEY')
kpt = client.claims.create(
type="KPTClaim",
household_id="did:ixo:household/123",
test_group="intervention",
test_period={
"start_date": "2024-02-01",
"end_date": "2024-02-04",
"duration_days": 3
},
fuel_measurements={
"total": 11.9,
"daily_logs": [3.2, 2.8, 3.0, 2.9]
},
external_factors={
"season": "dry",
"cultural_events": ["none"],
"occupational_factors": ["typical_workweek"]
}
)Required parameters
Must be "KPTClaim"
DID of the household being tested
Daily fuel consumption measurements (minimum 3 days)
Indicates whether household is in "reference" or "intervention" group
Optional parameters
Details of individual cooking events
Photos, documentation links, and selection methodology evidence
Documentation of climate and other variables affecting consumption
How a KPT claim is checked
A KPT claim moves through four stages:
| Stage | What happens |
|---|---|
| Household registration | Households are registered and selected at random, as the protocol requires. |
| Data collection | Daily fuel consumption is recorded over an observation period of at least 3 days. |
| Verification | The results are checked against the protocol and the control group's data. |
| Credentials | A verifiable KPT credential is issued with the emission reduction data. |
The claim must pass these rules:
| Rule set | Rules |
|---|---|
| Data consistency | Daily measurements span at least 3 days. The total matches the sum of the daily logs. Values are positive numbers. Seasonal variations are documented. |
| Methodology compliance | Random selection is verified. Control group data is present. Test timing lines up between the groups. External factors are documented. |
Claims are decided by a decision oracle and the IXO decision engine. See Trust boundaries for what a decision proves.
Response
Illustrative example:
{
"id": "kpt-123",
"status": "verified",
"credential": {
"type": "KPTCredential",
"issuer": "did:ixo:validator/456",
"evidence": [
"ipfs://QmevidenceformX12"
]
}
}Errors
Invalid KPT data format
Unauthorized request
Conflicting measurement data
Combine KPT results with IoT data and control groups
Illustrative example:
# Get KPT baseline for both groups
reference_baseline = client.kpt.get_baseline("reference-group")
intervention_baseline = client.kpt.get_baseline("intervention-group")
# Compare with IoT readings
iot_data = client.devices.get_usage("device-456")
reduction = calculate_reduction(reference_baseline, intervention_baseline, iot_data)
# Validate seasonal factors
seasonal_impact = client.kpt.analyze_seasonal_variations(reduction)Every test must last at least 3 days and use a proper control group.
Practices
| Area | What to do |
|---|---|
| Test design | Document the random selection process, test the groups at the same time, check that the groups are representative and monitor participant engagement. |
| Data collection | Keep to the 3-day minimum, track external factors, document seasonal variations and keep monitoring continuous. |
| Quality control | Check that measurements are consistent, cross-reference other data sources, monitor dropout rates and track completeness. |
| Documentation | Record the selection method, justify the test period, track external factors and keep the compliance evidence. |
Next steps
- Sample size: design the sample for a KPT.
- Stove use monitoring: continuous usage data to compare with KPT results.
- Emerging Household Energy dMRV: where KPT results fit in the dMRV workflow.