Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2021 Dec 20;18(24):13398.
doi: 10.3390/ijerph182413398.

Use of State Sequence Analysis in Pharmacoepidemiology: A Tutorial

Affiliations

Use of State Sequence Analysis in Pharmacoepidemiology: A Tutorial

Jacopo Vanoli et al. Int J Environ Res Public Health. .

Abstract

While state sequence analysis (SSA) has been long used in social sciences, its use in pharmacoepidemiology is still in its infancy. Indeed, this technique is relatively easy to use, and its intrinsic visual nature may help investigators to untangle the latent information within prescription data, facilitating the individuation of specific patterns and possible inappropriate use of medications. In this paper, we provide an educational primer of the most important learning concepts and methods of SSA, including measurement of dissimilarities between sequences, the application of clustering methods to identify sequence patterns, the use of complexity measures for sequence patterns, the graphical visualization of sequences, and the use of SSA in predictive models. As a worked example, we present an application of SSA to opioid prescription patterns in patients with non-cancer pain, using real-world data from Italy. We show how SSA allows the identification of patterns in prescriptions in these data that might not be evident using standard statistical approaches and how these patterns are associated with future discontinuation of opioid therapy.

Keywords: data-mining; pharmacoepidemiology; state-sequence analysis.

PubMed Disclaimer

Conflict of interest statement

The authors declare no conflict of interest.

Figures

Figure 1
Figure 1
State distribution plot. Evolution of the proportion of patients using different types of opioids during the first year of therapy.
Figure 2
Figure 2
Index plots for weekly regimen use during the first year of opioid therapy.
Figure 3
Figure 3
Time to discontinuation of the opioid therapy in the different clusters.
Figure 4
Figure 4
Time to discontinuation of the opioid therapy according to different tertiles of entropy (A) and turbulence (B).

References

    1. Trifirò G., Gini R., Barone-Adesi F., Beghi E., Cantarutti A., Capuano A., Carnovale C., Clavenna A., Dellagiovanna M., Ferrajolo C., et al. The Role of European Healthcare Databases for Post-Marketing Drug Effectiveness, Safety and Value Evaluation: Where Does Italy Stand? Drug Saf. 2018;42:347–363. doi: 10.1007/s40264-018-0732-5. - DOI - PubMed
    1. Trifirò G., Sultana J., Bate A. From Big Data to Smart Data for Pharmacovigilance: The Role of Healthcare Databases and Other Emerging Sources. Drug Saf. 2017;41:143–149. doi: 10.1007/s40264-017-0592-4. - DOI - PubMed
    1. Arnaud M., Bégaud B., Thurin N.H., Moore N., Pariente A., Salvo F. Methods for safety signal detection in healthcare databases: A literature review. Expert Opin. Drug Saf. 2017;16:721–732. doi: 10.1080/14740338.2017.1325463. - DOI - PubMed
    1. Franklin J.M., Shrank W.H., Pakes J., Sanfélix-Gimeno G., Matlin O.S., Brennan T.A., Choudhry N.K. Group-based Trajectory Models: A New Approach to Classifying and Predicting Long-Term Medication Adherence. Med. Care. 2013;51:789–796. doi: 10.1097/MLR.0b013e3182984c1f. - DOI - PubMed
    1. Lam W., Fresco P. Medication Adherence Measures: An Overview. BioMed Res. Int. 2015;2015:217047. doi: 10.1155/2015/217047. - DOI - PMC - PubMed

Publication types

Substances

LinkOut - more resources