lifelines: survival analysis in Python
By Cameron Davidson-Pilon. Journal of Open Source Software, 2019
870 citations recorded by the source corpus.
One frustration of data scientists and statisticians is moving between programming languages to complete projects. The most common two are R and Python. For example, a survival analysis model may be fit using R’s survival-package (Terry M Therneau, 2015) or flexsurv (Christopher Jackson, 2016), but needs to be deployed into a Python system. Previously, this may have meant using Python libraries to call out to R (still shuffling between two languages, but now abstracted), or translating the fitted model to Python (likely to introduce bugs). Libraries like Patsy (Nathaniel J. Smith et al., 2018) and Statsmodels (Skipper Seabold et al., 2017) have helped data scientists and statisticians work in solely in Python. lifelines extends the toolbox of data scientists so they can perform common survival analysis tasks in Python. Its value comes from its intuitive and well documented API, its flexibility in modeling novel hazard functions, and its easy deployment in production systems & research stations along side other Python libraries. The internals of lifelines uses some novel approaches to survival analysis algorithms like automatic differentiation and meta-algorithms. We present high-level descriptions of these novel approaches next. One goal of lifelines is to be pure Python so as to make installation and maintenance simple. This can be at odds with users’ desire for high-performance model fitting. Though Python is becoming more and more performant, datasets are getting larger and larger at a faster rate. Internally, lifelines uses some interesting tricks to improve performance. These approaches can be applied to other Python libraries. For example, the Cox proportional hazard model with Efron’s tie-handling method has a complicated partial-likelihood (Wikipedia contributors”, 2019):
Subfields: Artificial Intelligence, Management Science and Operations Research
View Paper: https://www.semanticscholar.org/paper/5b51d9dcfc5cbda7490139c1a5c9ed44071c0f52
How researchers see this paper
The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.
In Artificial Intelligence
In Management Science and Operations Research
Citations in the corpus
- Multiple early factors anticipate post-acute COVID-19 sequelae (2022, positive): “The lifelines package (Davidson-Pilon, 2021) was used to plot Kaplan-Meier (KM) curves for patient survival probability.”
- Clinically Applicable AI System for Accurate Diagnosis, Quantitative Measurements, and Prognosis of COVID-19 Pneumonia Using Computed Tomography (2020, neutral): “24.0 Davidson-Pilon, 2019 https://github.com/CamDavidsonPilon/lifelines Lightgbm v2.”