{
  "format": "dataset-manifest/1",
  "slug": "smart-energy-management",
  "version": 1,
  "seed": "smart-energy-management:1",
  "spec": {
    "format": "dataset/1",
    "slug": "smart-energy-management",
    "name": "Smart Energy Management",
    "tagline": "Energy consumption metrics and device usage patterns from smart home management systems.",
    "description": "Households track their energy consumption using smart technology that connects appliances to a centralized system. Users interact with this system to monitor usage patterns, control devices via voice commands, and optimize energy expenditure. By analyzing their energy consumption, they can make informed decisions about their daily routines, leading to both cost savings and a more sustainable lifestyle. This engagement with smart energy management reflects a growing trend where individuals are increasingly empowered to manage their energy usage effectively.\n\nAt the core of this application is the energy_consumption table, which records vital metrics regarding energy use in the household. Each row in this table represents a unique interaction instance where an appliance is activated or monitored, including timestamps for when devices are used, energy consumption data, and the type of appliance involved. Users can examine patterns over time, with the data providing insights into both seasonal trends and peak usage hours, highlighting when certain appliances are most frequently in use.\n\nThe data answers questions such as: Which appliances consume the most energy? At what times are users most likely to interact with their devices? Do consumption patterns vary significantly between seasons? Practicing with this dataset allows developers to analyze consumption behaviors, create predictive models for energy savings, and design interfaces that enhance the user experience. This synthetic dataset offers a realistic scenario for exploring these questions and honing your data analysis skills.",
    "domain": "energy",
    "shape": "slowly-changing",
    "useCases": [
      "etl-pipelines",
      "teaching"
    ],
    "keywords": [
      "energy management",
      "home automation",
      "voice control",
      "appliance usage",
      "sustainability",
      "data analysis"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "energy_consumption": {
        "description": "Each row represents a unique record of energy consumption for various appliances in a household, capturing details of usage over time. This table links user interactions with specific appliances, providing insights into energy patterns and preferences.",
        "rows": 500,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each record."
          },
          "appliance": {
            "kind": "enum",
            "values": [
              "light",
              "thermostat",
              "fan",
              "refrigerator",
              "washing machine",
              "oven",
              "television"
            ],
            "description": "Type of appliance being used."
          },
          "usage_time": {
            "kind": "datetime",
            "from": "2022-01-01",
            "to": "2023-12-31",
            "description": "Date and time when the appliance was activated.",
            "nullable": true,
            "when": {
              "column": "appliance",
              "in": [
                "light",
                "thermostat",
                "fan"
              ]
            },
            "dayProfile": "waking"
          },
          "energy_consumed": {
            "kind": "decimal",
            "min": 0,
            "max": 1000,
            "scale": 2,
            "description": "Amount of energy consumed by the appliance in kilowatt-hours (kWh).",
            "nullable": true,
            "when": {
              "column": "appliance",
              "in": [
                "light",
                "thermostat",
                "fan"
              ]
            }
          },
          "user_interaction": {
            "kind": "enum",
            "values": [
              "activated",
              "deactivated",
              "voice_command",
              "manual_control"
            ],
            "description": "Type of user interaction with the appliance."
          },
          "season": {
            "kind": "enum",
            "values": [
              "winter",
              "spring",
              "summer",
              "fall"
            ],
            "description": "Season during which the usage was recorded."
          },
          "disengagement_period": {
            "kind": "int",
            "min": 0,
            "max": 30,
            "description": "Number of days since the appliance was last used, indicating potential disengagement.",
            "nullable": true
          }
        }
      }
    },
    "structure": "single-table",
    "traits": [
      "timestamped",
      "categorical",
      "monetary"
    ],
    "analysisQuestions": [
      "What are the peak hours for energy consumption in the household?",
      "How does energy usage vary by season?",
      "Which appliances are most frequently used together?",
      "Are there patterns of disengagement for any particular appliances?",
      "How does user interaction type affect energy consumption?"
    ],
    "suggestedQueries": [
      {
        "title": "Basic Usage Overview",
        "sql": "SELECT appliance, COUNT(*) as usage_count FROM energy_consumption GROUP BY appliance;",
        "dialect": "postgres"
      },
      {
        "title": "Energy Consumption by Season",
        "sql": "SELECT season, SUM(energy_consumed) as total_energy FROM energy_consumption GROUP BY season;",
        "dialect": "postgres"
      },
      {
        "title": "Peak Usage Times",
        "sql": "SELECT DATE(usage_time) as usage_date, COUNT(*) as usage_count FROM energy_consumption WHERE usage_time IS NOT NULL GROUP BY usage_date ORDER BY usage_count DESC LIMIT 10;",
        "dialect": "postgres"
      },
      {
        "title": "User Interaction Impact",
        "sql": "SELECT user_interaction, AVG(energy_consumed) as avg_energy FROM energy_consumption GROUP BY user_interaction;",
        "dialect": "postgres"
      },
      {
        "title": "Disengagement Analysis",
        "sql": "SELECT appliance, AVG(disengagement_period) as avg_days_since_last_used FROM energy_consumption GROUP BY appliance;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Energy Audit for Households",
        "body": "Homeowners can utilize this dataset to conduct an energy audit, identifying which appliances consume the most energy and adjusting usage patterns accordingly. By analyzing peak usage times and seasonal variations, they can optimize their energy consumption and reduce costs."
      },
      {
        "title": "Educational Tool for Energy Management",
        "body": "Teachers and educators can use this dataset to demonstrate the principles of energy management and sustainability in a classroom setting. Through hands-on analysis, students can learn about consumer behavior, data interpretation, and the impact of technology on energy consumption."
      },
      {
        "title": "Developing Smart Home Applications",
        "body": "Developers can leverage this dataset to design and test smart home applications that integrate energy management features. By simulating real-world data, they can refine their applications to better meet user needs and improve energy efficiency."
      },
      {
        "title": "Research on User Interaction Patterns",
        "body": "Researchers studying consumer behavior can use this dataset to explore how users interact with home appliances. Insights gained from the analysis can inform the design of future smart home technologies that encourage sustainable usage patterns."
      }
    ]
  },
  "counts": {
    "energy_consumption": 500
  },
  "stats": {
    "energy_consumption": {
      "rows": 500,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 500,
          "min": 1,
          "max": 500
        },
        "appliance": {
          "nulls": 0,
          "distinct": 7,
          "min": "fan",
          "max": "washing machine"
        },
        "usage_time": {
          "nulls": 285,
          "distinct": 215,
          "min": "2022-01-01 19:38:37",
          "max": "2023-12-29 17:20:50"
        },
        "energy_consumed": {
          "nulls": 285,
          "distinct": 215,
          "min": 4.34,
          "max": 998.45
        },
        "user_interaction": {
          "nulls": 0,
          "distinct": 4,
          "min": "activated",
          "max": "voice_command"
        },
        "season": {
          "nulls": 0,
          "distinct": 4,
          "min": "fall",
          "max": "winter"
        },
        "disengagement_period": {
          "nulls": 59,
          "distinct": 31,
          "min": 0,
          "max": 30
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/energy_consumption.csv",
      "format": "csv",
      "table": "energy_consumption",
      "key": "datasets/smart-energy-management/v1/csv/energy_consumption.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/smart-energy-management/v1/csv/energy_consumption.csv",
      "bytes": 24387,
      "sha256": "bdcee0a39b8eccfb0dd60f29bc7805b7a915fb5779b1fe8b80e49a77478d0659",
      "rows": 500,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "smart-energy-management.json",
      "format": "json",
      "table": null,
      "key": "datasets/smart-energy-management/v1/smart-energy-management.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/smart-energy-management/v1/smart-energy-management.json",
      "bytes": 113251,
      "sha256": "379c970f0920883ddc27889523cb2f5a45c62109b6ef4fb8409698a6b2b3e608",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/smart-energy-management/v1/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/smart-energy-management/v1/sql/postgres.sql",
      "bytes": 37416,
      "sha256": "f27bd6f63e9ca18d3e6f2652e073adf94007388ef2a9b22a5a34ec92f8256601",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/smart-energy-management/v1/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/smart-energy-management/v1/sql/mysql.sql",
      "bytes": 37292,
      "sha256": "f9c01ce180dd956afa619856762504a9e66ee11c37e85760f023620f08645999",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/smart-energy-management/v1/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/smart-energy-management/v1/sql/mssql.sql",
      "bytes": 39092,
      "sha256": "1d42fd2a19b42662eeb985509e1c818ef1e554772ae88faaddc7c5853680433d",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/smart-energy-management/v1/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/smart-energy-management/v1/sql/sqlite.sql",
      "bytes": 37255,
      "sha256": "d9e03bb0778525c039e7a2e85cc42468eff3855dcd8da74cbf09f3f609d77e7f",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/smart-energy-management/v1/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/smart-energy-management/v1/prisma/seed.ts",
      "bytes": 90800,
      "sha256": "e497f880721de6a38caaf54a262b552a6d678da5bdbea52a10bb0a248ed29b69",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/smart-energy-management/v1/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/smart-energy-management/v1/django/fixtures.json",
      "bytes": 140895,
      "sha256": "a48918b76e675b77b8507be5c3237a058cbd84015f0164db565cb3935e3b7d51",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788768125596,
  "updatedAt": 1788768125596
}
