Abu-Sameer-66 commited on
Commit
e510772
·
verified ·
1 Parent(s): e738241

Add SciPeerBench v1.1 — 644 papers, 35 columns

Browse files
Files changed (2) hide show
  1. schema.py +154 -0
  2. scipeerai_bench_v1.1.csv +0 -0
schema.py ADDED
@@ -0,0 +1,154 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ SciPeerBench — Dataset schema definition.
3
+
4
+ World's first multi-dimensional scientific fraud benchmark.
5
+ Every paper labeled across 14 fraud dimensions simultaneously.
6
+ No other dataset does this.
7
+ """
8
+
9
+ from dataclasses import dataclass, field
10
+ from typing import Optional
11
+
12
+
13
+ # ── Fraud taxonomy — 20 types, first time formally defined ───────────────────
14
+
15
+ FRAUD_TAXONOMY = {
16
+ # Data fabrication
17
+ "FAB-01": "Complete data fabrication",
18
+ "FAB-02": "Partial data fabrication",
19
+ "FAB-03": "Data duplication across papers",
20
+
21
+ # Statistical manipulation
22
+ "STAT-01": "P-hacking and selective reporting",
23
+ "STAT-02": "HARKing — hypothesizing after results known",
24
+ "STAT-03": "Impossible statistical values GRIM or SPRITE",
25
+ "STAT-04": "Inflated effect sizes",
26
+ "STAT-05": "Underpowered study with strong claims",
27
+
28
+ # Figure fraud
29
+ "FIG-01": "Duplicated figure panels",
30
+ "FIG-02": "Manipulated western blots",
31
+ "FIG-03": "Image brightness or contrast manipulation",
32
+
33
+ # Citation fraud
34
+ "CIT-01": "Excessive self-citation ring",
35
+ "CIT-02": "Citation cartel coordinated group",
36
+ "CIT-03": "Unsupported claims without citation",
37
+
38
+ # Methodology fraud
39
+ "METH-01": "Causation claimed without RCT",
40
+ "METH-02": "Missing control group",
41
+ "METH-03": "Undisclosed conflicts of interest",
42
+
43
+ # Authorship and integrity
44
+ "AUTH-01": "LLM-generated paper",
45
+ "AUTH-02": "Plagiarism detected",
46
+ "AUTH-03": "Retracted paper cited as valid",
47
+ }
48
+
49
+
50
+ # ── Paper categories for balanced dataset ────────────────────────────────────
51
+
52
+ PAPER_CATEGORIES = {
53
+ "CONFIRMED_FRAUD": "Retracted with documented fraud reason",
54
+ "SUSPECTED_FRAUD": "PubPeer flagged, not retracted yet",
55
+ "BORDERLINE": "Minor issues, not clear fraud",
56
+ "CLEAN": "High quality, replicated, no concerns",
57
+ "BASELINE_ELITE": "Nobel prize or landmark papers",
58
+ }
59
+
60
+
61
+ # ── Source databases ──────────────────────────────────────────────────────────
62
+
63
+ DATA_SOURCES = {
64
+ "retraction_watch": "https://retractionwatch.com",
65
+ "pubpeer": "https://pubpeer.com",
66
+ "pubmed": "https://pubmed.ncbi.nlm.nih.gov",
67
+ "arxiv": "https://arxiv.org",
68
+ "semantic_scholar": "https://api.semanticscholar.org",
69
+ "crossref": "https://api.crossref.org",
70
+ }
71
+
72
+
73
+ # ── Target distribution — 1000 papers total ──────────────────────────────────
74
+
75
+ TARGET_DISTRIBUTION = {
76
+ "CONFIRMED_FRAUD": 300, # from RetractionWatch
77
+ "SUSPECTED_FRAUD": 200, # from PubPeer
78
+ "BORDERLINE": 150, # gray area
79
+ "CLEAN": 250, # normal good papers
80
+ "BASELINE_ELITE": 100, # Nobel / landmark
81
+ }
82
+
83
+
84
+ @dataclass
85
+ class PaperRecord:
86
+ """
87
+ One row in SciPeerBench.
88
+ Every paper labeled across all 14 fraud dimensions.
89
+ This is the most comprehensive fraud labeling schema ever built.
90
+ """
91
+
92
+ # ── Identity ──────────────────────────────────────────────────
93
+ paper_id: str # SPB-0001, SPB-0002 ...
94
+ doi: Optional[str]
95
+ title: str
96
+ authors: str # comma separated
97
+ year: int
98
+ journal: str
99
+ source_db: str # where we got it
100
+
101
+ # ── Ground truth ──────────────────────────────────────────────
102
+ category: str # from PAPER_CATEGORIES
103
+ is_fraud: int # 1 = fraud, 0 = clean
104
+ fraud_confidence: float # 0.0 to 1.0
105
+ fraud_types: str # comma separated FRAUD_TAXONOMY keys
106
+ retraction_date: Optional[str] # YYYY-MM-DD
107
+ retraction_reason: Optional[str]
108
+ pubpeer_url: Optional[str]
109
+
110
+ # ── 14 module scores — auto-generated by running our system ───
111
+ stat_audit_score: float = 0.0
112
+ figure_forensics_score: float = 0.0
113
+ methodology_score: float = 0.0
114
+ citation_score: float = 0.0
115
+ reproducibility_score: float = 0.0
116
+ novelty_score: float = 0.0
117
+ grim_score: float = 0.0
118
+ sprite_score: float = 0.0
119
+ granularity_score: float = 0.0
120
+ pcurve_score: float = 0.0
121
+ effect_size_score: float = 0.0
122
+ retraction_score: float = 0.0
123
+ cartel_score: float = 0.0
124
+ llm_score: float = 0.0
125
+
126
+ # ���─ Weighted average of all 14 scores ─────────────────────────
127
+ overall_risk_score: float = 0.0
128
+
129
+ # ── Paper content ─────────────────────────────────────────────
130
+ abstract_text: str = ""
131
+ full_text_path: str = "" # path to saved full text
132
+
133
+ # ── Metadata ──────────────────────────────────────────────────
134
+ field_of_study: str = "" # biology, psychology, medicine...
135
+ labeling_method: str = "" # auto, manual, auto+manual
136
+ labeled_by: str = "auto"
137
+ notes: str = ""
138
+
139
+
140
+ # ── CSV column order — exact order in output file ────────────────────────────
141
+
142
+ CSV_COLUMNS = [
143
+ "paper_id", "doi", "title", "authors", "year",
144
+ "journal", "source_db",
145
+ "category", "is_fraud", "fraud_confidence",
146
+ "fraud_types", "retraction_date", "retraction_reason", "pubpeer_url",
147
+ "stat_audit_score", "figure_forensics_score", "methodology_score",
148
+ "citation_score", "reproducibility_score", "novelty_score",
149
+ "grim_score", "sprite_score", "granularity_score", "pcurve_score",
150
+ "effect_size_score", "retraction_score", "cartel_score", "llm_score",
151
+ "overall_risk_score",
152
+ "abstract_text", "full_text_path",
153
+ "field_of_study", "labeling_method", "labeled_by", "notes",
154
+ ]
scipeerai_bench_v1.1.csv ADDED
The diff for this file is too large to render. See raw diff