{"slug":"seasonal-decomposition-air-quality-data","title":"Seasonality in Air Quality Data: Decomposition and Why It Matters","excerpt":"Indian air quality is dominated by an annual cycle that has nothing to do with emissions. How to separate seasonal, trend and residual components, and why failing to do so produces trends that are pure artefact.","date":"2026-08-28","author":"DSTechnoverse","image":"/blog-images/aq-trends/trend-analysis-workflow.svg","category":"Air Quality Analysis","tags":["seasonal decomposition","air quality seasonality","deseasonalising","STL decomposition","time series analysis","winter inversion","trend analysis"],"content":"In most Indian cities, winter PM2.5 is several times monsoon PM2.5. Almost none of that difference is emissions. It is mixing height, inversions, rainfall and wind — meteorology imposing a cycle on top of whatever the sources are doing.\n\nAny analysis that does not separate the two is measuring the seasons, not the air quality management.\n\n![A defensible air quality trend analysis](/blog-images/aq-trends/trend-analysis-workflow.svg)\n\n## What Drives the Indian Seasonal Cycle\n\n| Season | Months | Why concentrations behave as they do |\n|---|---|---|\n| Winter | Dec–Feb | Low mixing height, strong inversions, biomass burning, low wind |\n| Pre-monsoon | Mar–May | Deep mixing, dust storms, high temperature, strong convection |\n| Monsoon | Jun–Sep | Washout by rainfall, high wind, deep mixing — lowest of the year |\n| Post-monsoon | Oct–Nov | Falling mixing height, crop residue burning, festival emissions |\n\nThe dominant mechanism in winter is the **mixing height** — the depth of atmosphere available for dilution. When it collapses from a couple of kilometres to a few hundred metres, the same emissions occupy a fraction of the volume, and concentrations rise proportionally.\n\nThis is why a city can genuinely reduce emissions and still record a worse winter than the previous year.\n\n## Why It Breaks Naive Analysis\n\n**Endpoint artefacts.** A record starting in January and ending in August shows an apparent decline that is entirely the seasonal position of the endpoints.\n\n**Inflated significance.** A trend test run on monthly data sees the seasonal cycle as structure and can report significance that reflects the cycle, not a trend.\n\n**Meaningless comparisons.** Comparing this March with last December tells you about seasons. Comparing this March with last March tells you something about air quality.\n\n**Distorted slopes.** A Theil-Sen slope on raw monthly data is pulled by wherever the series happens to start and end within the cycle.\n\n## The Decomposition Model\n\nTime series decomposition splits a series into three components:\n\n**Trend** — the slow underlying change over years.\n**Seasonal** — the repeating annual pattern.\n**Residual** — what is left, including episodes and noise.\n\nTwo forms:\n\n| Model | Formula | Use when |\n|---|---|---|\n| Additive | value = trend + seasonal + residual | Seasonal swing is roughly constant in size |\n| Multiplicative | value = trend × seasonal × residual | Seasonal swing scales with the level |\n\nFor air quality the **multiplicative** form is usually more appropriate, because the winter–monsoon ratio tends to be more stable than the winter–monsoon difference. Equivalently, decompose the log of the series additively.\n\n## STL Decomposition\n\nSTL — Seasonal and Trend decomposition using Loess — is the practical default. It handles gaps, allows the seasonal pattern to evolve slowly over years, and is robust to outliers.\n\nThat second property matters here. A city's seasonal pattern is not fixed: if crop residue burning shifts by a fortnight, or a control measure changes winter emissions, the shape of the cycle changes. A method assuming a fixed seasonal pattern will push that change into the residual, or worse, into the trend.\n\n**R:**\n\n```r\nts_data <- ts(monthly_mean, frequency = 12, start = c(2015, 1))\nfit <- stl(ts_data, s.window = \"periodic\", robust = TRUE)\nplot(fit)\n\ndeseasonalised <- ts_data - fit$time.series[, \"seasonal\"]\n```\n\n**Python:**\n\n```python\nfrom statsmodels.tsa.seasonal import STL\n\nstl = STL(monthly_series, period=12, robust=True)\nres = stl.fit()\ndeseasonalised = monthly_series - res.seasonal\n```\n\nUse `robust = True`. Air quality series contain genuine extreme episodes, and the non-robust fit lets them distort the seasonal estimate.\n\n## Reading the Components\n\n**The seasonal component** is a description of your site's meteorological regime. Compare it across stations — sites with similar seasonal shapes are subject to similar dispersion conditions, which is useful context for source attribution.\n\n**The trend component** is what you actually wanted. Run the trend test on this, or on the deseasonalised series.\n\n**The residual** is where the interesting events are. Large residual spikes are episodes not explained by season or trend — Diwali, a fire, a dust storm, a stagnation event. Plotting the residual alone is an effective way to identify episodes objectively rather than by eye.\n\nA useful diagnostic: if the residual shows obvious remaining structure, the decomposition has not captured everything, and the model or period may be wrong.\n\n## Decomposition Or Seasonal Test?\n\nTwo valid routes to the same goal:\n\n**Deseasonalise, then test.** Explicit, and you get the components to inspect and report. More steps, and the decomposition itself involves choices.\n\n**Use a seasonal test directly.** Seasonal Mann-Kendall compares like month with like month without an explicit decomposition. Fewer choices, but you do not see the seasonal shape.\n\nFor reporting, the decomposition route is usually better because the seasonal plot is genuinely informative to readers. For a quick significance check, the seasonal test is sufficient. See [the Mann-Kendall test](/blog/mann-kendall-test-air-quality).\n\n## Requirements and Pitfalls\n\n**You need at least three full years**, and preferably five, to estimate a seasonal pattern at all. Two years cannot distinguish a seasonal cycle from a trend.\n\n**Gaps must be handled deliberately.** STL tolerates some missing values, but a systematically missing season — a station always offline during the monsoon — makes the seasonal estimate unreliable, and no method fixes that.\n\n**Do not deseasonalise then report absolute compliance figures.** Compliance is assessed on measured values. Deseasonalised series are for trend analysis, not for reporting against a standard.\n\n**Seasonality is not the same as meteorological normalisation.** Decomposition removes the average annual cycle. It does not correct for one winter being unusually still compared with another. Both may be needed — see [meteorological normalisation](/blog/meteorological-normalisation-air-quality).\n\n## Using the Seasonal Component in Reporting\n\nThe seasonal component is usually discarded after deseasonalising. That is a waste, because it answers questions readers actually have.\n\n**It quantifies the winter problem.** Rather than asserting that winter is worse, the seasonal component states by how much — a multiplicative factor of 1.8 in December against 0.5 in July is a concrete, defensible description of the regime.\n\n**It sets expectations for interventions.** If the seasonal swing is a factor of three, a control measure delivering a 10% emissions reduction will be invisible in a winter month. Showing this in advance prevents a programme being judged a failure on a single season's data.\n\n**It compares sites meaningfully.** Two stations with similar annual means but different seasonal shapes are subject to different regimes. A station with a flat seasonal profile is likely dominated by a continuous local source; one with a sharp winter peak is dominated by dispersion conditions acting on a regional load.\n\n**It reveals change in the regime itself.** If the seasonal amplitude shrinks over a decade, something structural has changed — a shift in the burning season, a change in heating fuel, or a change in the mix of local versus regional contribution.\n\nA short seasonal-factor table alongside the trend result adds interpretation that the trend alone cannot carry, and it costs nothing once the decomposition has been run.\n\n## Choosing the Aggregation Level\n\nDecomposition needs a regular series, and the level you aggregate to changes what the method can see.\n\n**Monthly is the usual choice.** Twelve periods per year gives a well-resolved seasonal shape, and the series is short enough for the trend component to be stable. Most published air quality decomposition uses monthly means.\n\n**Weekly retains more detail** and captures short seasonal features such as a burning period that lasts three weeks. The cost is more noise in every component and a longer record needed for stability.\n\n**Daily is rarely worth it.** The seasonal component becomes dominated by weather noise, and autocorrelation is strong. Decomposing daily data usually produces a trend component that is harder to interpret than the monthly equivalent.\n\n**Annual cannot be decomposed at all** — there is no within-year cycle left to separate. If you only have annual means, seasonality has already been removed by the aggregation, and you go straight to trend testing.\n\nWhatever level you choose, the **capture rule must be applied at that level**. A month with eight valid days should enter the decomposition as missing, not as a value computed from a quarter of the period. Decomposition methods will happily accept the low-capture value and propagate it into both the seasonal and trend components.\n\n## Frequently Asked Questions\n\n**How much data do I need to decompose?** Three years minimum, five or more preferred. Fewer and the seasonal and trend components are not separable.\n\n**Additive or multiplicative for air quality?** Multiplicative usually, or additive on log-transformed data, because the seasonal swing scales with the concentration level.\n\n**Does STL handle missing data?** It tolerates scattered gaps. Systematically missing seasons are a different problem that decomposition cannot solve.\n\n**Should I deseasonalise before every trend test?** Either deseasonalise or use a seasonal variant of the test. Doing neither on monthly data is the error.\n\n**Can I report the deseasonalised values as concentrations?** No. They are analytical constructs. Compliance figures come from measured data.\n\n**What does a changing seasonal component mean?** That the site's regime is shifting — a source appearing or ending, a change in burning practice, or a change in local land use. Worth investigating rather than smoothing away.\n\n**How does this relate to trend analysis?** It is the preparatory step. See [air quality trend analysis methods](/blog/air-quality-trend-analysis-methods) and [the Theil-Sen estimator](/blog/theil-sen-slope-estimator-guide).\n\n---\n\n**Need to prove an air quality change is real?** DSTechnoverse runs trend analysis, meteorological normalisation and compliance reporting on monitoring data — with the uncertainty stated, not hidden. We are based in **Indore, Madhya Pradesh** and work with clients across India. See our [air quality analysis](/services/air-quality-analysis) service, or [talk to our team](/contact).","related":[{"slug":"air-quality-trend-analysis-methods","title":"Air Quality Trend Analysis: Mann-Kendall, Theil-Sen and Proving a Change Is Real"},{"slug":"mann-kendall-test-air-quality","title":"The Mann-Kendall Test for Air Quality Trends: A Practical Guide"},{"slug":"air-quality-analysis-complete-guide","title":"Air Quality Analysis: The Complete Guide to Air Quality Data Analysis, Methods and Services"},{"slug":"air-quality-compliance-reporting-naaqs","title":"Air Quality Compliance Reporting Against NAAQS: Percentiles, Exceedances and Defensible Statistics"}]}