Classifying Cannabis sativa chemovars using K-means analysis of elemental composition – Jo

November 23, 2025

We are providing an unedited version of this manuscript to give early access to its
findings. Before final publication, the manuscript will undergo further editing. Please note
there may be errors present which affect the content, and all legal disclaimers apply.

Abstract

Understanding specific nutritional requirements of plants is a necessary component of growth optimization and can help growers promote desired traits and mitigate undesired traits. Cannabis is one such medicinally valuable plant prized for its content of specific phytochemicals. Cannabis is a commodity with numerous chemovars, each with their own nutritional needs. This can make generalizing targets for elemental content in the finished plant commodity difficult. One approach to make better informed decisions about cannabis plant nutrition is the application of chemometrics. In the current study, thirteen elements were quantitatively measured in the leaves of cannabis plants using an Agilent Inductively Coupled Plasma Mass Spectroscopy and an Elementar Vario Macro Cube. Correlation analysis, principal components analysis, and K-means clustering were utilized to describe and elucidate trends in the dataset. Moderately positive, monotonic correlations were found between magnesium, boron, and calcium, along with nitrogen, sulfur, and copper. PCA was used to corroborate these relationships. Clustering analysis was able to identify three distinct groups to which strains could be mapped with a relatively high degree of resolution when compared to cultivator identifiers. These findings suggest similar methods of introduction and elemental incorporation into the strains of these distinct groups. The method utilized in the current study demonstrate the ability of naïve clustering analysis to isolate differences in elemental concentrations between strains, allowing for the identification of unique cannabis chemovars. Such a process may be used to guide cultivation by classifying strains based on inherent nutritional requirements.

Data availability

I have attached the full dataset under the’Related Files’field for consideration by the editor. However, on the public side, the data that supports the findings of this study are available from Cambium Analytica, LLC but restrictions apply to the availability of these data, which were used under license for the current study, and so are not publicly available. Data are however available from the authors upon reasonable request and with permission of Cambium Analytica, LLC.

Abbreviations

PCA:

Principal Components Analysis

ICP-MS:

Inductively Coupled Plasma Mass Spectrometry

CRA:

Cannabis Regulatory Agency

CBD:

Cannabidiol

THC:

Tetrahydrocannabinol

References

  • Arumugam R, Kannan R, Jayalakshmi J, Manivannan K, Devi G, Anantharaman P. Determination of element contents in herbal drugs: chemometric approach. Food Chem. 2012;135:2372–7.


    Google Scholar
     

  • Bridgeman M, Abazia D. Medicinal Cannabis: history, pharmacology, and implications for the acute care setting. Pharma Ther. 2017;42:180–8.


    Google Scholar
     

  • Chan Y, Walmsley R. Learning and understanding the Kruskal-Wallis One-way analysis-of-variance-by-ranks test for differences among three or more independent groups. Phys Ther. 1997;77:1755–61.


    Google Scholar
     

  • Chandra S, Lata H, ElSohly M, Walker L, Potter D. Cannabis cultivation: methodological issues for obtaining medical-grade product. Epilepsy Behav. 2017;70:302–12.

  • Coffman C, Gentner W. Cannabinoid Profile and Elemental Uptake of Cannabis sativa L. as Influenced by Soil Characteristics. Agronomy J. 1975;67:491–7.

  • Danziger N, Bernstein N. Shape matters: plant architecture affects chemical uniformity in large-size medical Cannabis plants. Plants. 2021;10:1834.


    Google Scholar
     

  • Danziger N, Bernstein N. Too dense or not too dense: higher planting density reduces cannabinoid uniformity but increases yield/area in drug-type medical Cannabis. Front Plant Sci. 2022;13:713481.


    Google Scholar
     

  • Dinno A. Nonparametric pairwise multiple comparisons in independent groups using Dunn’s test. Stata J. 2015;15:292-300.

  • Effect of Irrigation and Fertilization Levels on Mineral Composition of Cannabis sativa L. Leaves. Not Bot Horti Agrobo. 2019;47:1073–80.

  • Emerson R. ANOVA Assumptions. J Vis Impairment Blindness. 2022;116:585–6.

  • Feng C, Wang H, Lu N, Chen T, He H, Lu Y, Tu X. Log-transformation and its implications for data analysis. Shanghai Arch Psychiatry. 2014;26:105–9.


    Google Scholar
     

  • Greenacre M, Groenen P, Hastie T, D’Enza A, Markos A, Tuzhilina E. Principal component analysis. Nat Rev Method Primers. 2022;2:45312.

  • Hauke J, Kossowski T. Comparison of values of pearson’s and spearman’s correlation coefficients on the same sets of data. Quaestiones Geographicae. 2011;30:87–93.


    Google Scholar
     

  • Hazekamp A, Tejkalova K, Papadimitriou S. Cannabis: From Cultivar to Chemovar II – A metabolomics approach to Cannabis classification. Cannabis Cannabinoid Res. 2016;1:202–15.


    Google Scholar
     

  • Herwig N, Utgenannt S, Nickl F, Mobius P, Nowak L, Schulz O, Fischer M. Classification of Cannabis Strains Based on their Chemical Fingerprint – A Broad Analysis of Chemovars in the German Market. Cannabis Cannabinoid Res. 2024;10:1–11.

  • Ikotun A, Ezugwu A, Abualigah L, Abuhaija B, Heming J. K-means clustering algorithms: a comprehensive review, variants analysis, and advances in the era of big data. Inf Sci. 2022;622:178-210.

  • Jin D, Henry P, Shan J, Chen J. Classification of cannabis strains in the Canadian market with discriminant analysis of principal components using genome-wide single nucleotide polymorphisms. PLoS One 2021;16:1-14.

  • Kalant H. Medicinal use of cannabis: history and current status. Pain Res Manage. 2001;6:80–91.


    Google Scholar
     

  • Kara D. Evaluation of trace metal concentrations in some herbs and herbal teas by principal components analysis. Food Chem. 2009;114:347–54.


    Google Scholar
     

  • Kpai P, Adaramola O, Addo P, MacPherson S, Lefsrud M. Mineral nutrition for Cannabis sativa in the vegetative stage using response surface analysis. Front Plant Sci. 2024;15:1-17.

  • Menezes I, Nascimento P, Yamamoto C, Oliveira A. Evaluation of trace elements in cannabis products. J Food Composition Anal. 2022;113:104721.


    Google Scholar
     

  • Milan J, Michalska A, Jurowski K. The comprehensive review about elements accumulation in industrial hemp (Cannabis sativa L.). Food Chem Toxicol. 2024;184:114344.


    Google Scholar
     

  • Morad D, Bernstein N. Response of medical cannabis to Magnesium (Mg) supply at the vegetative growth phase. Plants. 2023;12:1-21.

  • Peris-Diaz M, Krezel A. A guide to good practice in chemometric methods for vibrational spectroscopy, electrochemistry, and hyphenated mass spectrometry. Trends Anal Chem. 2020;135:116157.


    Google Scholar
     

  • Rykov A, De Amorim R, Makaren V, Mirkin B. Inertia-based indices to determine the number of clusters in K-means: an experimental evaluation. IEEE Access. 2024;12:11761–73.

  • Saloner A, Bernstein N. Nitrogen supply affects cannabinoid and terpenoid profile in medicinal cannabis (Cannabis sativa L.). Ind Crops Prod. 2021;167:113516.

  • Saloner A, Bernstein N. Effect of Potassium (K) Supply on Cannabinoids, Terpenoids, and Plant Function in Medical Cannabis. Agronomy. 2022;2:45312.

  • Saloner A, Bernstein N. Dynamics of Mineral Uptake and Plant Function during Development of Drug-Type Medical Cannabis Plants. Agronomy. 2023;13:1–19.

  • Sampaio B, Edrada-Ebel R, Da Costa F. Effect of the environment on the secondary metabolic profile of Tithonia diversifolia: a model for environmental metabolomics in plants. Sci Rep. 2016;6:45302.

  • Schober T, Prager A, Hartung J, Hensmann F, Graeff-Honninger S. Growth dynamics and yield formation of Cannabis (Cannabis sativa) cultivated in differing growing media under semi-controlled greenhouse conditions. Ind Crops Prod. 2023;203:1–5.

  • Shiponi S, Bernstein N. The highs and lows of P supply in medical Cannabis: effects on cannabinoids, the ionome, and morpho-physiology. Front Plant Sci. 2021;12:1-22.

  • Shiponi S, Bernstein N. Response of medical cannabis (Cannabis sativa L.) genotypes to P supply under long photoperiod: functional phenotyping and the ionome. Ind Crops Prod. 2021;161:113154.


    Google Scholar
     

  • Song C, Saloner A, Fait A, Bernstein N. Nitrogen deficiency stimulates cannabinoid biosynthesis in medical cannabis plants by inducing a metabolic shift towards production of low-N metabolites. Ind Crops Prod. 2023;202:116969.


    Google Scholar
     

  • Taiz L, Zeiger E. (2010). Plant physiology (5th ed.). Sinauer Associates.

  • White P, Broadley M, El-Sherehy H, George T, Heugebauer K. Linear relationships between shoot magnesium and calcium concentrations among angiosperm species as associated with cell wall chemistry. Ann Bot. 2018;221–6.

  • Zafeiraki E, Kasiotis K, Nisianakis P, Machera K. Macro and trace elements in Hemp (Cannabis Sativa L.) cultivated in greece: risk assessment of toxic elements. Front Chem. 2021;9:45302.

Download references

Acknowledgements

Edward Szczygiel, PhD (Manuscript editing).

Alexander Adams (Manuscript editing).

Funding

Cambium Analytica, LLC.

Author information

BL analyzed and interpreted the elemental data obtained from the cannabis products. He was also the only author of the manuscript.

Ethics declarations

Not applicable.

Not applicable.

The authors declare no competing interests.

Additional information

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.

Reprints and permissions

About this article