---
widget:
- text: ' Polygenic risk scores (PRS) describe individual risks for specific diseases based on genetic information from multiple loci. Previous studies suggest that PRS may predict differences in the physiological activation of individuals with agoraphobia. In this study, we examined whether the possibility to predict affected individuals’ heart rate by their PRS depends on the type of exposure trial. We postulated that PRS would predict heart rate within in-vivo as well as in-virtuo trials. Data were analyzed from 132 individuals diagnosed with agoraphobia who underwent either in-vivo (N = 63) or in-virtuo (N = 69) exposure. As assumed, heart rate was significantly predicted by PRS in both trial types. The results of this study suggest that PRS not only provide useful diagnostic information for an individual’s risk of agoraphobia, but that their usefulness in predicting physiological reactions is stable across different exposure settings.'
example_title: 'Ex1: PRS'
- text: ' According to the Socioeconomic Adaptation Theory of Rehabilitation (SAToR), individuals with higher socioeconomic status (SES) tend to benefit more from psychiatric rehabilitation than individuals with lower SES. In line with the SAToR, we hypothesized that higher SES is associated with a greater reduction in symptom severity in patients with schizophrenia. We conducted an observational study over the course of a 12-month rehabilitation program, encompassing 146 participants with schizophrenia who were newly admitted to a psychiatric rehabilitation clinic. A longitudinal multilevel model was computed to predict rates of change in symptom severity. The average rate of symptom change was 0.6 SD from baseline to 6-month follow-up. Contrary to our hypothesis, symptom change was not significantly predicted by SES. This finding suggests that contrary to the SAToR, individuals with higher socioeconomic status (SES) likely do not benefit more from rehabilitation of schizophrenia than individuals with lower SES.'
example_title: 'Ex2: SES'
- text: ' There is growing evidence of deficits in defensive reactivity (indexed by the startle blink reflex) in individuals diagnosed with antisocial personality disorder (ASPD). However, to date, no study has examined the role of defensive reactivity in the quality of life (QoL) of individuals with ASPD. In the current study, we therefore explored whether the startle blink reflex is negatively associated with QoL in 143 individuals diagnosed with ASPD. Defensive reactivity was measured using a fear-potentiated startle reflex test. To assess QoL, participants completed the Short Form (36) Health Survey (SF-36). Startle blink reflex potentiation deficits during aversive picture viewing were common in the sample (62.3%). Blink reflex potentiation was negatively and significantly associated with QoL. In sum, these findings provide clear evidence that deficits in defensive reactivity are linked to poor QoL in ASPD.'
example_title: 'Ex3: Reactivity'
- text: >-
While the experimental manipulation was successful, there was no effect on
SMR-BCI performance.
example_title: 'Ex4: Manipulation Check 1: Successful manipulation check + negative result '
- text: >-
While the experimental manipulation was unsuccessful, there was an effect on
SMR-BCI performance.
example_title: >-
Ex5: Manipulation Check 2: Unsuccessful manipulation check + positive
result
pipeline_tag: text-classification
tags:
- metascience
- psychology
- openscience
- abstracts
---
## Model
SciBERT text classification model for positive and negative results prediction in scientific abstracts of clinical psychology and psychotherapy. The preprint for this project is available on [PsyArxiv](https://osf.io/preprints/psyarxiv/uxyzh).
## Data
We annotated over 1,900 clinical psychology abstracts into two categories: 'positive results only' and 'mixed or negative results', and trained models using SciBERT.
The SciBERT model was validated against one in-domain (clinical psychology) and two out-of-domain data sets (psychotherapy). We compared model performance with Random Forest and three further benchmarks: natural language indicators of result types, *p*-values, and abstract length.
SciBERT outperformed all benchmarks and random forest in in-domain (accuracy: 0.86) and out-of-domain data (accuracy: 0.85-0.88).
Further information on documentation, code and data for the preprint "Classifying Positive Results in Clinical Psychology Using Natural Language Processing" can be found on this [GitHub repository](https://github.com/schiekiera/PubBiasDetect).
## Using the model on Huggingface
The model can be used on Hugginface utilizing the "Hosted inference API" in the window on the right.
Click 'Compute' to predict the class labels for an example abstract or an abstract inserted by yourself.
The class label 'positive' corresponds to 'positive results only', while 'negative' represents 'mixed or negative results'.
## Using the model for larger data
```
from transformers import AutoTokenizer, Trainer, AutoModelForSequenceClassification
## 1. Load tokenizer
tokenizer = AutoTokenizer.from_pretrained('allenai/scibert_scivocab_uncased')
## 2. Apply preprocess function to data
def preprocess_function(examples):
return tokenizer(examples["text"],
truncation=True,
max_length=512,
padding='max_length'
)
tokenized_data = dataset.map(preprocess_function, batched=True)
# 3. Load Model
NegativeResultDetector = AutoModelForSequenceClassification.from_pretrained("ClinicalMetaScience/NegativeResultDetector")
## 4. Initialize the trainer with the model and tokenizer
trainer = Trainer(
model=NegativeResultDetector,
tokenizer=tokenizer,
)
# 5. Apply NegativeResultDetector for prediction on inference data
predict_test=trainer.predict(tokenized_data["inference"])
```
Further information on analyzing your own or our example data can be found in this [script](https://github.com/PsyCapsLock/PubBiasDetect/blob/main/Scripts/example_folder/Predict_Example_Abstracts_using_NegativeResultDetector.ipynb)
from our [GitHub repository](https://github.com/PsyCapsLock/PubBiasDetect).
## Results
**Table 1**
*Different metric scores for model evaluation of test data from the annotated `MAIN` corpus, consisting of *n* = 198 abstracts authored by researchers affiliated with German clinical psychology departments and published between 2012 and 2022*
Accuracy | Mixed & Negative Results | Positive Results Only | |||||
---|---|---|---|---|---|---|---|
F1 | Recall | Precision | F1 | Recall | Precision | ||
SciBERT | 0.864 | 0.867 | 0.907 | 0.830 | 0.860 | 0.822 | 0.902 |
Random Forest | 0.803 | 0.810 | 0.856 | 0.769 | 0.796 | 0.752 | 0.844 |
Extracted p-values | 0.515 | 0.495 | 0.485 | 0.505 | 0.534 | 0.545 | 0.524 |
Extracted NL Indicators | 0.530 | 0.497 | 0.474 | 0.523 | 0.559 | 0.584 | 0.536 |
Number of Words | 0.475 | 0.441 | 0.423 | 0.461 | 0.505 | 0.525 | 0.486 |