SearcharxivSearch

arXiv subjects

Anders Ledberg

Publications and source records attributed to Anders Ledberg.

3 recordsLinked to original sources

Transforming Sensitive Documents into Quantitative Data: An AI-Based Preprocessing Toolchain for Structured and Privacy-Conscious Analysis

Unstructured text from legal, medical, and administrative sources offers a rich but underutilized resource for research in public health and the social sciences. However, large-scale analysis is hampered by two key challenges: the presence of sensitive, personally identifiable information, and significant heterogeneity in structure and language. We present a modular toolchain that prepares such text data for embedding-based analysis, relying entirely on open-weight models that run on local hardware, requiring only a workstation-level GPU and supporting privacy-sensitive research. The toolchain employs large language model (LLM) prompting to standardize, summarize, and, when needed, translate texts to English for greater comparability. Anonymization is achieved via LLM-based redaction, supplemented with named entity recognition and rule-based methods to minimize the risk of disclosure. We demonstrate the toolchain on a corpus of 10,842 Swedish court decisions under the Care of Abusers Act (LVM), comprising over 56,000 pages. Each document is processed into an anonymized, standardized summary and transformed into a document-level embedding. Validation, including manual review, automated scanning, and predictive evaluation shows the toolchain effectively removes identifying information while retaining semantic content. As an illustrative application, we train a predictive model using embedding vectors derived from a small set of manually labeled summaries, demonstrating the toolchain's capacity for semi-automated content analysis at scale. By enabling structured, privacy-conscious analysis of sensitive documents, our toolchain opens new possibilities for large-scale research in domains where textual data was previously inaccessible due to privacy and heterogeneity constraints.

cs.CL

Exponential increase in mortality with age is a generic property of a simple model system of damage accumulation and death

The risk of dying increases exponentially with age, in humans as well as in many other species. This increase is often attributed to the "accumulation of damage" known to occur in many biological structures and systems. The aim of this paper is to describe a generic model of damage accumulation and death in which mortality increases exponentially with age. The damage-accumulation process is modeled by a stochastic process know as a queue, and risk of dying is a function of the accumulated damage, i.e. length of the queue. The model has four parameters and the main characteristics of the model are: (i) damage occurs at random times with a constant high rate; (ii) the damage is repaired at a limited rate, and consequently damage can accumulate; (iii) the efficiency of the repair mechanism decays linearly with age; (iv) the risk of dying is a function of the accumulated damage. Using standard results from the mathematical theory of queues it is shown that there is an exponential dependence between risk of dying and age in these models, and that this dependency holds irrespective of how the damage-accumulation process is modeled. Furthermore, the ways in which this exponential dependence is shaped by the model parameters are also independent of the details of the damage accumulation process. These generic features suggest that the model could be useful when interpreting changes in the relation between age and mortality in real data. To examplify, historical mortality data from Sweden are interpreted in the light of the model. The decrease in mortality seen between cohorts born in 1905, compared to those born in 1885, can be accounted for by higher threshold to damage. This fits well with the many advances made in public health during the 20th century.

q-bio.PE

Confounding caused by causal-effect covariability

Confounding seriously impairs our ability to learn about causal relations from observational data. Confounding can be defined as a statistical association between two variables due to inputs from a common source (the confounder). For example, if $Z\rightarrow Y$ and $Z\rightarrow X$, then $X$ and $Y$ will be statistically dependent, even if there are no causal connections between the two. There are several approaches available to adjust for confounding, i.e. to remove, or reduce, the association between two variables due to the confounder. Common adjustment techniques include stratifying the analysis on the confounder, and including confounders as covariates in regression models. Most adjustments rely on the assumption that the causal effects of confounders, on different variables, do not co-vary. For example, if the causal effect of $Z$ on $X$ and the causal effect of $Z$ on $Y$ co-vary between observational units, a confounding effect remains after adjustment for $Z$. This causal-effect covariability and its consequences is the topic of this paper. Causal-effect covariability is first explicated using the framework of structural causal models. Using this framework it is easy to show that causal-effect covariability generally leads to confounding that cannot be adjusted for by standard methods. Evidence from data indicates that the confounding introduced by causal-effect covariability might be a real concern in applied work.

stat.ME