KuangshiAi commited on
Commit
d1b209f
·
1 Parent(s): 446ea8a

add statistics

Browse files
.gitignore CHANGED
@@ -3,7 +3,6 @@
3
  upload_huggingface.py
4
  # only for github repo, not huggingface repo
5
  # sci_volume_data/**/*.raw
6
- statistics/
7
  .cache/
8
  .claude/
9
  .vscode/
 
3
  upload_huggingface.py
4
  # only for github repo, not huggingface repo
5
  # sci_volume_data/**/*.raw
 
6
  .cache/
7
  .claude/
8
  .vscode/
statistics/SciVisAgentBench_Taxnomoy.txt ADDED
@@ -0,0 +1,211 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Data Taxonomy (several cross-cutting categories):
2
+ * Application Domains (this shouldn’t necessarily be a category rather a way to indicate the source of the data)
3
+ * Climate data
4
+ * SEM image data
5
+ * CT scan for objects
6
+ * Medical/CT/MRI scan
7
+ * Simulation data
8
+ * Molecular data
9
+ * ….
10
+
11
+
12
+ * Data Type
13
+ * Structured Data
14
+ * Image data (uniform rectilinear grids)
15
+ * Rectilinear grids
16
+ * Structured grids (curvilinear)
17
+ * AMR (Adaptive Mesh Refinement)?
18
+ * Unstructured Data
19
+ * Unstructured grids (arbitrary cell types)
20
+ * Polygonal data (surfaces, meshes)
21
+ * Point clouds
22
+ * Specialized Types
23
+ * Hyper-tree grids
24
+ * Composite/multi-block datasets
25
+ * Graph/network data
26
+
27
+
28
+ * Temporal Dimension
29
+ * Static/Single-Timestep
30
+ * Analysis of a single snapshot
31
+ * Spatial patterns only
32
+ * Time-Series
33
+ * Multiple discrete steps
34
+ * Temporal sequences
35
+
36
+
37
+ * Attribute Types (how the data is represented, what information it has)
38
+ * Scalar Fields (single value per point/cell)
39
+ * Temperature, pressure, density
40
+ * Scalars driving isosurfaces, color mapping
41
+ * Vector Fields (3-component direction/magnitude)
42
+ * Velocity, force, displacement
43
+ * Visualized via streamlines, glyphs, and LIC
44
+ * Tensor Fields (matrix at each point)
45
+ * Stress, strain, diffusion tensors
46
+ * Visualized via tensor glyphs, eigenvalue analysis
47
+ * Multi-variate/Multi-field/Multi-modal
48
+ * Multiple scalar/vector fields
49
+ * High-dimensional data visualization by analyzing multiple dimensions all at once
50
+ * Data Ensemble
51
+ * Multiple runs, parameter sweeps, etc.
52
+
53
+
54
+
55
+
56
+
57
+
58
+ Tasks Taxonomy:
59
+ Top level: 1) Atomic Operation, 2) Workflow, 3) Scientific Insights
60
+
61
+
62
+ 1) Atomic Operation (individual well-defined operations):
63
+ * Extraction & Subsetting (Isolate regions of interest from larger datasets)
64
+ * Spatial/temporal Extraction
65
+ * Clipping (by plane, box, sphere, implicit function)
66
+ * Region selection (by point/cell IDs, bounding box)
67
+ * VOI extraction (volume of interest from structured data)
68
+ * Value-Based Selection
69
+ * Thresholding (scalar range filtering)
70
+ * Isocontouring/isosurfacing (constant value extraction)
71
+ * Connectivity filtering (connected region extraction)
72
+ * Sampling
73
+ * Subsampling/decimation (reduce resolution)
74
+ * Probing (sampling at specific points)
75
+ * Masking (regular/irregular point selection)
76
+ * Geometry & Topology Transformation (Change the structure or shape of data without necessarily changing attribute values)
77
+ * Geometric Modification
78
+ * Translation, rotation, scaling
79
+ * Deformation, warping
80
+ * Point/vertex manipulation
81
+ * Topological Changes
82
+ * Triangulation (convert polygons to triangles), Tessellation/subdivision
83
+ * Mesh refinement/coarsening
84
+ * Cell type conversion
85
+ * Boundary extraction (surface from volume)
86
+ * Structural Operations
87
+ * Merging datasets
88
+ * Appending data
89
+ * Splitting/partitioning
90
+ * Attribute Computation & Derivation (Calculate new data attributes from existing ones)
91
+ * Field Derivatives
92
+ * Gradient computation
93
+ * Divergence, curl, vorticity
94
+ * Curvature calculation
95
+ * Normal generation
96
+ * Scalar Operations
97
+ * Arithmetic operations on fields
98
+ * Vector magnitude computation
99
+ * Component extraction
100
+ * Field aggregation/statistics
101
+ * Advanced Computations[a]
102
+ * Tensor operations (eigenvalues, eigenvectors)
103
+ * Interpolation between fields
104
+ * Distance computations
105
+ * Time-Dependent Processing
106
+ * Temporal interpolation
107
+ * Particle tracing through time
108
+ * Flow integration [b](streamlines, pathlines, streaklines, timelines)
109
+ * Temporal statistics/aggregation
110
+ * Flow map computation
111
+ * Representation & Mapping (Transform data into visual representations)
112
+ * Glyph-Based Representation
113
+ * Oriented glyphs (arrows, cones)
114
+ * Scaled glyphs (size-mapped symbols)
115
+ * Tensor glyphs (ellipsoids, superquadrics)
116
+ * Volume markers
117
+ * Geometric Primitives
118
+ * Isosurfaces
119
+ * Contour lines/surfaces
120
+ * Cut planes/slices
121
+ * Ribbons, tubes, streamlines
122
+ * Color & Texture Mapping
123
+ * Scalar to color mapping
124
+ * Texture coordinate generation
125
+ * Opacity mapping
126
+ * Volume Representations
127
+ * Ray casting
128
+ * Splatting
129
+ * Smoothing & enhancement (Improve data quality or visual appearance)
130
+ * Smoothing Operations
131
+ * Surface smoothing (Laplacian, Gaussian)
132
+ * Data noise reduction
133
+ * Interpolation for filling gaps
134
+ * Enhancement
135
+ * Edge enhancement/detection
136
+ * Feature extraction
137
+ * Sharpening
138
+ * Filtering
139
+ * Outlier removal
140
+ * Statistical filtering
141
+ * View / Rendering Manipulation
142
+ * View Changes
143
+ * Rotation, zoom, move
144
+ * Render Options (should be belong to transformation)
145
+ * Light position
146
+ * Lighting mode
147
+
148
+
149
+ 2) Workflow (sequence of operations with a clear visualization/analysis goal)
150
+ * Data Understanding & Exploration
151
+ * Data Characterization (statistics, distributions, quality check)
152
+ * Spatial Exploration (slicing, probing, overview generation)
153
+ * Feature Discovery (identifying interesting structures/patterns)
154
+ * Analysis & Quantification
155
+ * Statistical Analysis (descriptive statistics, distributions, correlations)
156
+ * Region-Based Measurement (volumes, areas, integrated quantities)
157
+ * Profile & Cross-Section Analysis (1D/2D extraction from 3D)
158
+ * Derived Quantity Computation (gradients, vorticity, custom fields)
159
+ * Feature Extraction & Tracking
160
+ * Structure Identification (vortices, shocks, boundaries, topology)
161
+ * Feature Characterization (properties, classification, quantification)
162
+ * Temporal Tracking (feature evolution, lifecycle, trajectories)
163
+ * Comparative & Temporal Analysis
164
+ * Multi-Variable Comparison (correlation, coordinated views)
165
+ * Temporal Evolution / Comparison (time-series comparison)
166
+ * Simulation Comparison (parameter studies, model validation)
167
+ * Difference Analysis (error fields, change detection)
168
+ * Flow & Transport Analysis[c]
169
+ * Trajectory Computation (streamlines, pathlines, streaklines)
170
+ * Lagrangian Analysis (particle tracking, residence time, FTLE)
171
+ * Transport Quantification (flux, mixing, coherent structures)
172
+ * Verification & Validation
173
+ * Data Quality Assessment (outliers, artifacts, boundary conditions)
174
+ * Code Verification (convergence, analytical comparison, consistency)
175
+ * Physical Validation (experimental comparison, uncertainty quantification)
176
+ * Data Processing & Optimization
177
+ * Data Conditioning (cleaning, smoothing, noise reduction)
178
+ * Data Reduction (decimation, sampling, compression)
179
+ * Format Conversion & Restructuring (mesh generation, type conversion)
180
+ * Parallel & Distributed Processing (HPC workflows, decomposition)[d]
181
+ * Uncertainty Quantification & Visualization[e]
182
+ * Sensitivity analysis, uncertainty characterization (estimate uncertainty)
183
+ * Aggregation and summarization (visualize quantile and interval)
184
+ * Communication & Dissemination
185
+ * Static Visualization (publication figures, high-resolution images)
186
+ * Animation Generation (temporal, spatial, parameter animations)
187
+ * Interactive Applications (web/desktop viewers, dashboards)
188
+ * Report Generation (automated analysis reports, summaries)
189
+
190
+
191
+ 3) Scientific Insights (analysis or visualization that leads to domain-relevant insights)
192
+ * Application-specific questions and insights that can be derived from analysis or visualization
193
+ * The result could be: binary decisions, multiple choices,
194
+ * Potentially involves different workflow steps
195
+
196
+
197
+
198
+
199
+
200
+
201
+
202
+
203
+ What not to include
204
+ * Excessively large dataset (multiple GB to TB level)
205
+ * Interaction that ties to a specific tool/interface
206
+ * Questions do not have unique and clear answers/ground truth
207
+ [a]probably need better title
208
+ [b]Move flow integration into its own category of Vector Operations, analogous to Scalar Operations? Streamlines are not time-dependent. Also could include LIC, and maybe FTLE.
209
+ [c]There is overlap between this category and previous atomic operations on flow integration (see my earlier comment).
210
+ [d]Consider large scale HPC to be out of scope, in order to make the benchmark more broadly accessible?
211
+ [e]Group together with V&V?
statistics/generate_full_report.py ADDED
@@ -0,0 +1,290 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """
3
+ Generate comprehensive statistics report for SciVisAgentBench.
4
+ Processes all CSV files and creates updated statistics.
5
+ """
6
+
7
+ import pandas as pd
8
+ import os
9
+ from collections import defaultdict
10
+
11
+ def load_csv_files(sheets_dir):
12
+ """Load all CSV files from the sheets directory."""
13
+ csv_files = {}
14
+
15
+ # Define which files to include (excluding old chatvis_bench and main)
16
+ files_to_include = [
17
+ 'SciVisAgentBench_Statistics - bioimage_data.csv',
18
+ 'SciVisAgentBench_Statistics - molecular_vis.csv',
19
+ 'SciVisAgentBench_Statistics - sci_volume_data.csv',
20
+ 'SciVisAgentBench_Statistics - topology.csv',
21
+ 'SciVisAgentBench_Statistics - paraview.csv' # New file
22
+ ]
23
+
24
+ for filename in files_to_include:
25
+ filepath = os.path.join(sheets_dir, filename)
26
+ if os.path.exists(filepath):
27
+ df = pd.read_csv(filepath)
28
+ # Extract key from filename
29
+ key = filename.replace('SciVisAgentBench_Statistics - ', '').replace('.csv', '')
30
+ csv_files[key] = df
31
+ print(f"Loaded {filename}: {len(df)} rows")
32
+
33
+ return csv_files
34
+
35
+
36
+ def count_individual_tags(series, separator=';'):
37
+ """Count individual tags in a series of semicolon-separated values."""
38
+ counts = defaultdict(int)
39
+ for value in series.dropna():
40
+ if pd.isna(value) or str(value).strip() == '':
41
+ continue
42
+ # Support both ; and , as separators
43
+ value_str = str(value).replace(',', ';')
44
+ tags = [tag.strip() for tag in value_str.split(separator)]
45
+ for tag in tags:
46
+ if tag:
47
+ counts[tag] += 1
48
+ return dict(sorted(counts.items(), key=lambda x: -x[1]))
49
+
50
+ def count_combinations(series):
51
+ """Count exact combinations as they appear."""
52
+ counts = defaultdict(int)
53
+ for value in series.dropna():
54
+ if pd.isna(value) or str(value).strip() == '':
55
+ continue
56
+ counts[str(value).strip()] += 1
57
+ return dict(sorted(counts.items(), key=lambda x: -x[1]))
58
+
59
+ def generate_report(csv_files):
60
+ """Generate comprehensive statistics report."""
61
+
62
+ # Combine all dataframes
63
+ all_data = pd.concat(csv_files.values(), ignore_index=True)
64
+
65
+ # Filter only Task and Workflow levels (exclude Operation level)
66
+ cases_only = all_data[all_data['Task Level 1: Complexity Level'].isin(['Task', 'Workflow'])]
67
+
68
+ print(f"\nTotal rows in all files: {len(all_data)}")
69
+ print(f"Total cases (Task + Workflow): {len(cases_only)}")
70
+
71
+ # Generate statistics
72
+ stats = {}
73
+
74
+ # 1. Total Cases Count
75
+ complexity_counts = all_data['Task Level 1: Complexity Level'].value_counts()
76
+ stats['total_cases'] = len(cases_only)
77
+ stats['total_tasks'] = complexity_counts.get('Task', 0)
78
+ stats['total_workflows'] = complexity_counts.get('Workflow', 0)
79
+ stats['total_operations'] = complexity_counts.get('Operation', 0)
80
+
81
+ # File breakdown
82
+ stats['file_breakdown'] = {}
83
+ for name, df in csv_files.items():
84
+ # Calculate total operation count
85
+ cases_df = df[df['Task Level 1: Complexity Level'].isin(['Task', 'Workflow'])]
86
+
87
+ # Convert Operation Count to numeric, treating 'N/A' as NaN
88
+ operation_counts = pd.to_numeric(cases_df['Operation Count'], errors='coerce')
89
+ total_operations = operation_counts.sum() if len(operation_counts) > 0 else 0
90
+
91
+ file_stats = {
92
+ 'total_rows': len(df),
93
+ 'operations': len(df[df['Task Level 1: Complexity Level'] == 'Operation']),
94
+ 'tasks': len(df[df['Task Level 1: Complexity Level'] == 'Task']),
95
+ 'workflows': len(df[df['Task Level 1: Complexity Level'] == 'Workflow']),
96
+ 'cases': len(cases_df),
97
+ 'total_operations': int(total_operations)
98
+ }
99
+ stats['file_breakdown'][name] = file_stats
100
+
101
+ # 2. Application Domain Statistics (cases only)
102
+ stats['applications_individual'] = count_individual_tags(cases_only['Application'])
103
+ stats['applications_combinations'] = count_combinations(cases_only['Application'])
104
+
105
+ # 3. Data Type Statistics (cases only)
106
+ stats['data_types_individual'] = count_individual_tags(cases_only['Data'])
107
+ stats['data_types_combinations'] = count_combinations(cases_only['Data'])
108
+
109
+ # 4. Visualization Operations Statistics (cases only)
110
+ stats['operations_all'] = count_individual_tags(cases_only['Task Level 2: Visualization Operations'], separator=';')
111
+
112
+ # Operations by complexity level
113
+ tasks_only = cases_only[cases_only['Task Level 1: Complexity Level'] == 'Task']
114
+ workflows_only = cases_only[cases_only['Task Level 1: Complexity Level'] == 'Workflow']
115
+
116
+ stats['operations_task_level'] = count_individual_tags(tasks_only['Task Level 2: Visualization Operations'], separator=';')
117
+ stats['operations_workflow_level'] = count_individual_tags(workflows_only['Task Level 2: Visualization Operations'], separator=';')
118
+
119
+ # Also count operation combinations
120
+ stats['operations_combinations'] = count_combinations(cases_only['Task Level 2: Visualization Operations'])
121
+
122
+ return stats, cases_only, all_data
123
+
124
+ def write_markdown_report(stats, output_path):
125
+ """Write statistics report to markdown file."""
126
+
127
+ with open(output_path, 'w') as f:
128
+ f.write("# SciVisAgentBench - Comprehensive Statistics Report\n")
129
+ f.write(f"*Generated from {len(stats['file_breakdown'])} CSV files in the benchmark*\n")
130
+ f.write("---\n")
131
+
132
+ # 1. Total Cases Count
133
+ f.write("## 1. Total Cases Count\n")
134
+ f.write("**Important**: Cases = Tasks + Workflows only (Operation-level entries are NOT counted as cases)\n\n")
135
+
136
+ f.write("### Overall Summary\n")
137
+ f.write(f"- **Total Tasks**: {stats['total_tasks']}\n")
138
+ f.write(f"- **Total Workflows**: {stats['total_workflows']}\n")
139
+ f.write(f"- **Total Cases**: **{stats['total_cases']}** (Tasks + Workflows)\n")
140
+ if stats['total_operations'] > 0:
141
+ f.write(f"- **Total Operations**: **{stats['total_operations']}** (Operation-level entries)\n")
142
+ f.write("\n")
143
+
144
+ f.write("### Breakdown by File\n")
145
+ f.write("| File | Tasks | Workflows | Cases (Task+Workflow) | Total Operations |\n")
146
+ f.write("|------|-------|-----------|----------------------|-----------------|\n")
147
+ total_tasks = 0
148
+ total_workflows = 0
149
+ total_cases = 0
150
+ total_operations_sum = 0
151
+ for name, file_stats in stats['file_breakdown'].items():
152
+ f.write(f"| {name} | {file_stats['tasks']} | {file_stats['workflows']} | "
153
+ f"**{file_stats['cases']}** | {file_stats['total_operations']} |\n")
154
+ total_tasks += file_stats['tasks']
155
+ total_workflows += file_stats['workflows']
156
+ total_cases += file_stats['cases']
157
+ total_operations_sum += file_stats['total_operations']
158
+
159
+ f.write(f"| **TOTAL** | **{total_tasks}** | **{total_workflows}** | **{total_cases}** | **{total_operations_sum}** |\n")
160
+ f.write("\n")
161
+
162
+ # 2. Application Domain Statistics
163
+ f.write("## 2. Application Domain Statistics\n")
164
+ f.write("**Note**: These statistics include ONLY cases (Tasks + Workflows). Operation-level entries are excluded.\n\n")
165
+
166
+ f.write("### Individual Application Counts\n")
167
+ f.write("*(Counts individual tags, so multi-tagged entries contribute to multiple categories)*\n\n")
168
+ f.write("| Application | Count |\n")
169
+ f.write("|-------------|-------|\n")
170
+ for app, count in stats['applications_individual'].items():
171
+ f.write(f"| {app} | {count} |\n")
172
+ total_app_tags = sum(stats['applications_individual'].values())
173
+ f.write(f"\n**Total individual application tags**: {total_app_tags}\n\n")
174
+
175
+ f.write("### Application Combinations\n")
176
+ f.write("*(Shows exact combinations as they appear in the data)*\n\n")
177
+ f.write("| Application Combination | Count |\n")
178
+ f.write("|------------------------|-------|\n")
179
+ for combo, count in stats['applications_combinations'].items():
180
+ f.write(f"| {combo} | {count} |\n")
181
+ f.write("\n")
182
+
183
+ # 3. Data Type Statistics
184
+ f.write("## 3. Data Type Statistics\n")
185
+ f.write("**Note**: These statistics include ONLY cases (Tasks + Workflows). Operation-level entries are excluded.\n\n")
186
+
187
+ f.write("### Individual Data Type Counts\n")
188
+ f.write("*(Counts individual tags, so multi-tagged entries contribute to multiple categories)*\n\n")
189
+ f.write("| Data Type | Count |\n")
190
+ f.write("|-----------|-------|\n")
191
+ for dtype, count in stats['data_types_individual'].items():
192
+ f.write(f"| {dtype} | {count} |\n")
193
+ total_dtype_tags = sum(stats['data_types_individual'].values())
194
+ f.write(f"\n**Total individual data type tags**: {total_dtype_tags}\n\n")
195
+
196
+ f.write("### Data Type Combinations\n")
197
+ f.write("*(Shows exact combinations as they appear in the data)*\n\n")
198
+ f.write("| Data Type Combination | Count |\n")
199
+ f.write("|-----------------------|-------|\n")
200
+ for combo, count in stats['data_types_combinations'].items():
201
+ f.write(f"| {combo} | {count} |\n")
202
+ f.write("\n")
203
+
204
+ # 4. Complexity Level Statistics
205
+ f.write("## 4. Task Level 1: Complexity Level Statistics\n\n")
206
+ f.write("### Overall Distribution\n")
207
+ f.write("| Complexity Level | Entry Count | Counted as Case? |\n")
208
+ f.write("|------------------|-------------|------------------|\n")
209
+ if stats['total_operations'] > 0:
210
+ f.write(f"| Operation | {stats['total_operations']} | ❌ NO |\n")
211
+ f.write(f"| Task | {stats['total_tasks']} | ✅ YES |\n")
212
+ f.write(f"| Workflow | {stats['total_workflows']} | ✅ YES |\n")
213
+ f.write(f"| **Total Cases** | **{stats['total_cases']}** | **(Tasks + Workflows)** |\n")
214
+ f.write("\n")
215
+
216
+ # 5. Visualization Operations Statistics
217
+ f.write("## 5. Task Level 2: Visualization Operations Statistics\n")
218
+ f.write("**Note**: These statistics include ONLY cases (Tasks + Workflows). Operation-level entries are excluded.\n\n")
219
+
220
+ f.write("### All Visualization Operations (Sorted by Frequency)\n")
221
+ f.write("| Rank | Visualization Operation | Total Count |\n")
222
+ f.write("|------|------------------------|-------------|\n")
223
+ for i, (op, count) in enumerate(stats['operations_all'].items(), 1):
224
+ f.write(f"| {i} | {op} | {count} |\n")
225
+ total_op_tags = sum(stats['operations_all'].values())
226
+ f.write(f"\n**Total visualization operation tags**: {total_op_tags}\n\n")
227
+
228
+ f.write("### Top 10 Most Common Visualization Operations\n")
229
+ f.write("| Rank | Operation | Count |\n")
230
+ f.write("|------|-----------|-------|\n")
231
+ for i, (op, count) in enumerate(list(stats['operations_all'].items())[:10], 1):
232
+ f.write(f"| {i} | {op} | {count} |\n")
233
+ f.write("\n")
234
+
235
+ f.write("### Visualization Operations by Complexity Level (Cases Only)\n\n")
236
+
237
+ f.write("#### Task Level (Top 10)\n")
238
+ f.write("| Rank | Operation | Count |\n")
239
+ f.write("|------|-----------|-------|\n")
240
+ for i, (op, count) in enumerate(list(stats['operations_task_level'].items())[:10], 1):
241
+ f.write(f"| {i} | {op} | {count} |\n")
242
+ f.write("\n")
243
+
244
+ f.write("#### Workflow Level (Top 10)\n")
245
+ f.write("| Rank | Operation | Count |\n")
246
+ f.write("|------|-----------|-------|\n")
247
+ for i, (op, count) in enumerate(list(stats['operations_workflow_level'].items())[:10], 1):
248
+ f.write(f"| {i} | {op} | {count} |\n")
249
+ f.write("\n")
250
+
251
+ # 6. Summary Statistics
252
+ f.write("## 6. Summary Statistics\n")
253
+ f.write(f"- **Total number of CSV files analyzed**: {len(stats['file_breakdown'])}\n")
254
+ f.write(f"- **Total Cases (Tasks + Workflows)**: **{stats['total_cases']}**\n")
255
+ f.write(f"- **Unique application domains**: {len(stats['applications_individual'])}\n")
256
+ f.write(f"- **Unique data types**: {len(stats['data_types_individual'])}\n")
257
+ f.write(f"- **Unique visualization operations**: {len(stats['operations_all'])}\n\n")
258
+
259
+ f.write("### File Contributions\n")
260
+ f.write("| File | Cases Contributed | Percentage |\n")
261
+ f.write("|------|-------------------|------------|\n")
262
+ for name, file_stats in sorted(stats['file_breakdown'].items(),
263
+ key=lambda x: -x[1]['cases']):
264
+ percentage = (file_stats['cases'] / stats['total_cases'] * 100) if stats['total_cases'] > 0 else 0
265
+ f.write(f"| {name} | {file_stats['cases']} | {percentage:.1f}% |\n")
266
+ f.write("\n")
267
+
268
+ def main():
269
+ # Paths
270
+ sheets_dir = '/Users/kuangshiai/Documents/ND-VIS/Code/SciVisAgentBench-tasks/statistics/sheets'
271
+ output_path = '/Users/kuangshiai/Documents/ND-VIS/Code/SciVisAgentBench-tasks/statistics/statistics_report.md'
272
+
273
+ # Load CSV files
274
+ print("Loading CSV files...")
275
+ csv_files = load_csv_files(sheets_dir)
276
+
277
+ # Generate statistics
278
+ print("\nGenerating statistics...")
279
+ stats, cases_only, all_data = generate_report(csv_files)
280
+
281
+ # Write markdown report
282
+ print(f"\nWriting report to {output_path}...")
283
+ write_markdown_report(stats, output_path)
284
+
285
+ print("\n✅ Report generation complete!")
286
+ print(f" Total cases: {stats['total_cases']}")
287
+ print(f" Total files: {len(csv_files)}")
288
+
289
+ if __name__ == '__main__':
290
+ main()
statistics/sheets/SciVisAgentBench_Statistics - bioimage_data.csv ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Case Name,Application,Data,Task Level 1: Complexity Level,Task Level 2: Visualization Operations,Operation Count
2
+ Napari - Load & Layer Management,Biology,Scalar Field; Multivariate; Time-varying,Task,Dataset Restructuring; Field Computation,2
3
+ Napari - 3D/4D Navigation,Biology,Scalar Field; Multivariate; Time-varying,Task,Data Subsetting & Extraction; Temporal Processing,2
4
+ Napari - Color & Opacity,Biology,Scalar Field; Multivariate; Time-varying,Task,Color & Opacity Mapping,1
5
+ Napari - Contrast Adjustment,Biology,Scalar Field; Multivariate; Time-varying,Task,Color & Opacity Mapping; Data Smoothing & Filtering,2
6
+ Napari - Camera Control,Biology,Scalar Field; Multivariate; Time-varying,Task,View & Camera Control; Field Computation,2
7
+ Napari - Visibility & Screenshot,Biology,Scalar Field; Multivariate; Time-varying,Task,Data Subsetting & Extraction; View & Camera Control,2
8
+ Napari - Annotations,Biology,Scalar Field; Multivariate; Time-varying,Task,Glyph & Marker Placement,1
9
+ Napari - Scale Bar & Export,Biology,Scalar Field; Multivariate; Time-varying,Task,Glyph & Marker Placement; View & Camera Control,2
10
+ Napari - Export & Cleanup,Biology,Scalar Field; Multivariate; Time-varying,Task,Dataset Restructuring,1
11
+ Napari - Error Handling,Biology,Scalar Field; Multivariate; Time-varying,Task,Dataset Restructuring,1
12
+ Napari - 3D Rendering,Biology,Scalar Field; Multivariate; Time-varying,Task,Surface & Contour Extraction; Volume Rendering; Dataset Restructuring,3
13
+ Napari - Analysis Workflows,Biology,Scalar Field; Multivariate,Workflow,Field Computation; Glyph & Marker Placement; Feature Identification & Segmentation; Dataset Restructuring; Temporal Processing; Data Subsetting & Extraction,6
14
+ Napari - Figure Recreation,Biology,Scalar Field; Multivariate,Workflow,Color & Opacity Mapping; Data Smoothing & Filtering; View & Camera Control,3
15
+ Napari - Iso Surface Determination,Biology,Scalar Field; Multivariate,Workflow,Surface & Contour Extraction; Volume Rendering; View & Camera Control; Color & Opacity Mapping,4
16
+ Napari - Visualization Workflows,Biology,Scalar Field; Multivariate,Workflow,Color & Opacity Mapping; Dataset Restructuring; Data Subsetting & Extraction; View & Camera Control; Surface & Contour Extraction; Volume Rendering; Data Smoothing & Filtering,7
statistics/sheets/SciVisAgentBench_Statistics - molecular_vis.csv ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Case Name,Application,Data,Task Level 1: Complexity Level,Task Level 2: Visualization Operations,Operation Count
2
+ MD - Load & Basic Representations,Chemistry,Multi-variate,Task,Dataset Restructuring; Glyph & Marker Placement; Surface & Contour Extraction,3
3
+ MD - Color by Properties,Chemistry,Multi-variate,Task,Color & Opacity Mapping,1
4
+ MD - Region Selection,Chemistry,Multi-variate,Task,Data Subsetting & Extraction; Color & Opacity Mapping,2
5
+ MD - Multi-Representation,Chemistry,Multi-variate,Task,Surface & Contour Extraction; Glyph & Marker Placement; Color & Opacity Mapping,3
6
+ MD - Advanced Coloring,Chemistry,Multi-variate,Task,Color & Opacity Mapping; Data Subsetting & Extraction,2
7
+ MD - Active Site Selection,Chemistry,Multi-variate,Task,Data Subsetting & Extraction; Field Computation; Color & Opacity Mapping; View & Camera Control,4
8
+ MD - Spatial Queries,Chemistry,Multi-variate,Task,Data Subsetting & Extraction; Field Computation; Color & Opacity Mapping,3
9
+ MD - Visibility Control,Chemistry,Multi-variate,Task,Data Subsetting & Extraction,1
10
+ MD - Residue Selection,Chemistry,Multi-variate,Task,Data Subsetting & Extraction; Color & Opacity Mapping,2
11
+ MD - Combined Representations,Chemistry,Multi-variate,Task,Data Subsetting & Extraction; Surface & Contour Extraction; Glyph & Marker Placement; Color & Opacity Mapping,4
12
+ MD - Distance-based Selection,Chemistry,Multi-variate,Task,Data Subsetting & Extraction; Field Computation; Color & Opacity Mapping,3
13
+ MD - Gradient Coloring,Chemistry,Multi-variate,Task,Color & Opacity Mapping; Data Subsetting & Extraction,2
14
+ MD - Multi-Criteria Selection,Chemistry,Multi-variate,Task,Data Subsetting & Extraction; Surface & Contour Extraction; Field Computation; Color & Opacity Mapping; Data Sampling & Resolution Control,5
15
+ MD - curved-membrane,Chemistry; Biology,Multi-variate,Workflow,Scientific Insight Derivation; Data Subsetting & Extraction; Color & Opacity Mapping; View & Camera Control; Glyph & Marker Placement,5
16
+ MD - ras-raf-membrane,Chemistry; Biology,Multi-variate,Workflow,Scientific Insight Derivation; Data Subsetting & Extraction; Color & Opacity Mapping; View & Camera Control; Glyph & Marker Placement,5
statistics/sheets/SciVisAgentBench_Statistics - paraview.csv ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Case Name,Application,Data,Task Level 1: Complexity Level,Task Level 2: Visualization Operations,Operation Count
2
+ ABC,Physics,Scalar Fields; Vector Fields,Workflow,Temporal Processing; Surface & Contour Extraction; Glyph & Marker Placement; Color & Opacity Mapping; View & Camera Control; Field Computation,6
3
+ argon-bubble,Chemistry,Scalar Fields,Workflow,Volume Rendering; Color & Opacity Mapping; View & Camera Control,3
4
+ Bernard,Physics,Vector Fields,Workflow,Temporal Processing; Surface & Contour Extraction; Glyph & Marker Placement; Color & Opacity Mapping; View & Camera Control,5
5
+ bonsai,Biology,Scalar Fields,Workflow,Volume Rendering; Color & Opacity Mapping; View & Camera Control,3
6
+ carp,Biology,Scalar Fields,Workflow,Volume Rendering; Color & Opacity Mapping; View & Camera Control,3
7
+ chameleon_isosurface,Biology,Scalar Fields,Workflow,Surface & Contour Extraction; Color & Opacity Mapping; View & Camera Control,3
8
+ crayfish_streamline,Biology,Vector Fields,Workflow,Temporal Processing; Surface & Contour Extraction; Glyph & Marker Placement; Color & Opacity Mapping; View & Camera Control,5
9
+ engine,Physics,Scalar Fields,Workflow,Volume Rendering; Color & Opacity Mapping; View & Camera Control,3
10
+ foot,Medical Science,Scalar Fields,Workflow,Volume Rendering; Color & Opacity Mapping; View & Camera Control,3
11
+ lobster,Biology,Scalar Fields,Workflow,Volume Rendering; Color & Opacity Mapping; View & Camera Control,3
12
+ mhd-magfield_streamribbon,Physics,Vector Fields,Workflow,Temporal Processing; Surface & Contour Extraction; Color & Opacity Mapping; View & Camera Control,4
13
+ mhd-turbulence_pathline,Physics,Vector Fields; Time-varying,Workflow,Temporal Processing; Surface & Contour Extraction; Glyph & Marker Placement; Color & Opacity Mapping; View & Camera Control,5
14
+ mhd-turbulence_pathribbon,Physics,Vector Fields; Time-varying,Workflow,Temporal Processing; Surface & Contour Extraction; Color & Opacity Mapping; View & Camera Control,4
15
+ mhd-turbulence_streamline,Physics,Vector Fields,Workflow,Temporal Processing; Surface & Contour Extraction; Glyph & Marker Placement; Color & Opacity Mapping; View & Camera Control; Field Computation,6
16
+ miranda,Physics,Scalar Fields,Workflow,Volume Rendering; Color & Opacity Mapping; View & Camera Control,3
17
+ richtmyer,Physics,Scalar Fields,Workflow,Volume Rendering; Color & Opacity Mapping; View & Camera Control,3
18
+ rotstrat,Physics,Scalar Fields,Workflow,Volume Rendering; Color & Opacity Mapping; View & Camera Control,3
19
+ rti-velocity_glyph,Physics,Vector Fields,Workflow,Glyph & Marker Placement; Color & Opacity Mapping; View & Camera Control; Data Sampling & Resolution Control,4
20
+ rti-velocity_slices,Physics,Vector Fields,Workflow,Data Subsetting & Extraction; Color & Opacity Mapping; View & Camera Control,3
21
+ rti-velocity_streakline,Physics,Vector Fields; Time-varying,Workflow,Temporal Processing; Surface & Contour Extraction; Glyph & Marker Placement; Color & Opacity Mapping; View & Camera Control,5
22
+ solar-plume,Astronomy,Scalar Fields,Workflow,Volume Rendering; Color & Opacity Mapping; View & Camera Control,3
23
+ supernova_isosurface,Astronomy,Scalar Fields,Workflow,Surface & Contour Extraction; Color & Opacity Mapping; View & Camera Control; Data Subsetting & Extraction,4
24
+ supernova_streamline,Astronomy,Vector Fields,Workflow,Temporal Processing; Surface & Contour Extraction; Glyph & Marker Placement; Color & Opacity Mapping; View & Camera Control,5
25
+ tangaroa_streamribbon,Physics,Vector Fields,Workflow,Temporal Processing; Surface & Contour Extraction; Color & Opacity Mapping; View & Camera Control,4
26
+ tgc-velocity_contour,Physics,Vector Fields,Workflow,Surface & Contour Extraction; Color & Opacity Mapping; View & Camera Control; Field Computation,4
27
+ tornado,Earth System Science,Vector Fields,Workflow,Temporal Processing; Surface & Contour Extraction; Glyph & Marker Placement; Color & Opacity Mapping; View & Camera Control,5
28
+ twoswirls_streamribbon,Physics,Vector Fields,Workflow,Temporal Processing; Surface & Contour Extraction; Color & Opacity Mapping; View & Camera Control,4
29
+ vortex,Physics,Scalar Fields,Workflow,Volume Rendering; Color & Opacity Mapping; View & Camera Control,3
30
+ line-plot,Others,Scalar Fields,Task,Plot & Chart Generation; View & Camera Control,2
31
+ ml-dvr,Others,Scalar Fields,Task,Volume Rendering; Color & Opacity Mapping; View & Camera Control,3
32
+ ml-iso,Others,Scalar Fields,Task,Surface & Contour Extraction; Color & Opacity Mapping; View & Camera Control,3
33
+ ml-slice-iso,Others,Scalar Fields,Task,Data Subsetting & Extraction; Surface & Contour Extraction; Color & Opacity Mapping; View & Camera Control,4
34
+ points-surf-clip,Others,Scalar Fields,Task,Data Subsetting & Extraction; Surface & Contour Extraction; Glyph & Marker Placement; Color & Opacity Mapping; View & Camera Control,5
35
+ shrink-sphere,Others,Scalar Fields,Task,Geometric & Topological Transformation; Color & Opacity Mapping; View & Camera Control,3
36
+ stream-glyph,Others,Vector Fields,Task,Temporal Processing; Glyph & Marker Placement; Color & Opacity Mapping; View & Camera Control,4
37
+ time-varying,Others,Scalar Fields; Time-varying,Task,Temporal Processing; Surface & Contour Extraction; Color & Opacity Mapping; View & Camera Control,4
38
+ chart-opacity,Others,Scalar Fields,Workflow,Volume Rendering; Color & Opacity Mapping; View & Camera Control; Plot & Chart Generation,4
39
+ color-blocks,Others,Scalar Fields,Workflow,Color & Opacity Mapping; View & Camera Control,2
40
+ color-data,Others,Scalar Fields,Workflow,Color & Opacity Mapping; View & Camera Control,2
41
+ export-gltf,Others,Scalar Fields,Workflow,Surface & Contour Extraction; Dataset Restructuring; View & Camera Control,3
42
+ import-gltf,Others,Scalar Fields,Workflow,Dataset Restructuring; Color & Opacity Mapping; View & Camera Control,3
43
+ render-histogram,Others,Scalar Fields,Workflow,Plot & Chart Generation; Color & Opacity Mapping; View & Camera Control,3
44
+ reset-camera-direction,Others,Scalar Fields,Task,View & Camera Control; Surface & Contour Extraction,2
45
+ Unknown,Others,Scalar Fields,Task,View & Camera Control,1
46
+ subseries-of-time-series,Others,Scalar Fields; Time-varying,Workflow,Temporal Processing; Volume Rendering; Color & Opacity Mapping; View & Camera Control,4
47
+ write-ply,Others,Scalar Fields,Workflow,Surface & Contour Extraction; Dataset Restructuring; View & Camera Control,3
48
+ climate,Earth System Science,Scalar Fields,Workflow,Surface & Contour Extraction; Color & Opacity Mapping; View & Camera Control,3
49
+ materials,Others,Scalar Fields,Workflow,Color & Opacity Mapping; View & Camera Control,2
statistics/sheets/SciVisAgentBench_Statistics - sci_volume_data.csv ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Case Name,Application,Data,Task Level 1: Complexity Level,Task Level 2: Visualization Operations,Operation Count
2
+ aneurism,Medical Science,Scalar Fields,Task,Volume Rendering; Color & Opacity Mapping,2
3
+ christmas_tree,Others,Scalar Fields,Task,Volume Rendering; Color & Opacity Mapping,2
4
+ hydrogen_atom,Physics,Scalar Fields,Task,Volume Rendering; Color & Opacity Mapping,2
5
+ silicium,Physics,Scalar Fields,Task,Volume Rendering; Color & Opacity Mapping,2
6
+ tornado,Physics,Scalar Fields,Task,Volume Rendering; Color & Opacity Mapping,2
7
+ backpack,Others,Scalar Fields,Task,Volume Rendering; Color & Opacity Mapping,2
8
+ lobster,Biology,Scalar Fields,Task,Volume Rendering; Color & Opacity Mapping,2
9
+ neocortical_layer_1_axons,Biology,Scalar Fields,Task,Volume Rendering; Color & Opacity Mapping,2
10
+ skull,Medical Science,Scalar Fields,Task,Volume Rendering; Color & Opacity Mapping,2
11
+ vertebra,Medical Science,Scalar Fields,Task,Volume Rendering; Color & Opacity Mapping,2
12
+ blunt_fin,Physics,Scalar Fields,Task,Volume Rendering; Color & Opacity Mapping,2
13
+ marmoset_neurons,Biology,Scalar Fields,Task,Volume Rendering; Color & Opacity Mapping,2
14
+ nucleon,Physics,Scalar Fields,Task,Volume Rendering; Color & Opacity Mapping,2
15
+ statue_leg,Others,Scalar Fields,Task,Volume Rendering; Color & Opacity Mapping,2
16
+ vis_male,Medical Science,Scalar Fields,Task,Volume Rendering; Color & Opacity Mapping,2
17
+ bonsai,Biology,Scalar Fields,Task,Volume Rendering; Color & Opacity Mapping,2
18
+ engine,Others,Scalar Fields,Task,Volume Rendering; Color & Opacity Mapping,2
19
+ pancreas,Medical Science,Scalar Fields,Task,Volume Rendering; Color & Opacity Mapping,2
20
+ stent,Medical Science,Scalar Fields,Task,Volume Rendering; Color & Opacity Mapping,2
21
+ zeiss,Others,Scalar Fields,Task,Volume Rendering; Color & Opacity Mapping,2
22
+ boston_teapot,Others,Scalar Fields,Task,Volume Rendering; Color & Opacity Mapping,2
23
+ foot,Medical Science,Scalar Fields,Task,Volume Rendering; Color & Opacity Mapping,2
24
+ mri_ventricles,Medical Science,Scalar Fields,Task,Volume Rendering; Color & Opacity Mapping,2
25
+ present,Others,Scalar Fields,Task,Volume Rendering; Color & Opacity Mapping,2
26
+ supernova,Astronomy,Scalar Fields,Task,Volume Rendering; Color & Opacity Mapping,2
27
+ bunny,Others,Scalar Fields,Task,Volume Rendering; Color & Opacity Mapping,2
28
+ frog,Biology,Scalar Fields,Task,Volume Rendering; Color & Opacity Mapping,2
29
+ mri_woman,Medical Science,Scalar Fields,Task,Volume Rendering; Color & Opacity Mapping,2
30
+ prone,Medical Science,Scalar Fields,Task,Volume Rendering; Color & Opacity Mapping,2
31
+ carp,Biology,Scalar Fields,Task,Volume Rendering; Color & Opacity Mapping,2
32
+ fuel,Physics,Scalar Fields,Task,Volume Rendering; Color & Opacity Mapping,2
33
+ mrt_angio,Medical Science,Scalar Fields,Task,Volume Rendering; Color & Opacity Mapping,2
34
+ shockwave,Physics,Scalar Fields,Task,Volume Rendering; Color & Opacity Mapping,2
35
+ tooth,Medical Science,Scalar Fields,Task,Volume Rendering; Color & Opacity Mapping,2
statistics/sheets/SciVisAgentBench_Statistics - topology.csv ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ Case Name,Application,Data,Task Level 1: Complexity Level,Task Level 2: Visualization Operations,Operation Count
2
+ QMCPACK,Physics; Mathematics,Scalar Fields,Workflow,Field Computation; Feature Identification & Segmentation; Scientific Insight Derivation,3
3
+ brain,Medical Science; Mathematics,Tensor Fields,Workflow,Field Computation; Feature Identification & Segmentation; Scientific Insight Derivation,3
4
+ cylinder,Physics; Mathematics,Scalar Fields,Workflow,Field Computation; Feature Identification & Segmentation; Data Smoothing & Filtering; Scientific Insight Derivation,4
5
+ isabel,Earth System Science; Mathematics,Scalar Fields,Workflow,Field Computation; Feature Identification & Segmentation; Data Smoothing & Filtering; Scientific Insight Derivation,4
6
+ ocean,Earth System Science; Mathematics,Tensor Fields,Workflow,Field Computation; Feature Identification & Segmentation; Scientific Insight Derivation,3
7
+ noisyTerrain,Mathematics,Scalar Fields,Workflow,Field Computation; Feature Identification & Segmentation; Data Smoothing & Filtering,3
8
+ molecule,Chemistry; Mathematics,Scalar Fields,Workflow,Field Computation; Feature Identification & Segmentation,2
9
+ moons,Mathematics,Scalar Fields,Workflow,Field Computation; Feature Identification & Segmentation; Data Smoothing & Filtering,3
10
+ dragon,Mathematics,Scalar Fields,Workflow,Field Computation; Feature Identification & Segmentation,2
statistics/statistics_report.md ADDED
@@ -0,0 +1,185 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SciVisAgentBench - Comprehensive Statistics Report
2
+ *Generated from 5 CSV files in the benchmark*
3
+ ---
4
+ ## 1. Total Cases Count
5
+ **Important**: Cases = Tasks + Workflows only (Operation-level entries are NOT counted as cases)
6
+
7
+ ### Overall Summary
8
+ - **Total Tasks**: 68
9
+ - **Total Workflows**: 53
10
+ - **Total Cases**: **121** (Tasks + Workflows)
11
+
12
+ ### Breakdown by File
13
+ | File | Tasks | Workflows | Cases (Task+Workflow) | Total Operations |
14
+ |------|-------|-----------|----------------------|-----------------|
15
+ | bioimage_data | 11 | 4 | **15** | 39 |
16
+ | molecular_vis | 13 | 2 | **15** | 45 |
17
+ | sci_volume_data | 34 | 0 | **34** | 68 |
18
+ | topology | 0 | 9 | **9** | 27 |
19
+ | paraview | 10 | 38 | **48** | 169 |
20
+ | **TOTAL** | **68** | **53** | **121** | **348** |
21
+
22
+ ## 2. Application Domain Statistics
23
+ **Note**: These statistics include ONLY cases (Tasks + Workflows). Operation-level entries are excluded.
24
+
25
+ ### Individual Application Counts
26
+ *(Counts individual tags, so multi-tagged entries contribute to multiple categories)*
27
+
28
+ | Application | Count |
29
+ |-------------|-------|
30
+ | Biology | 28 |
31
+ | Others | 27 |
32
+ | Physics | 26 |
33
+ | Chemistry | 17 |
34
+ | Medical Science | 14 |
35
+ | Mathematics | 9 |
36
+ | Astronomy | 4 |
37
+ | Earth System Science | 4 |
38
+
39
+ **Total individual application tags**: 129
40
+
41
+ ### Application Combinations
42
+ *(Shows exact combinations as they appear in the data)*
43
+
44
+ | Application Combination | Count |
45
+ |------------------------|-------|
46
+ | Others | 27 |
47
+ | Biology | 26 |
48
+ | Physics | 24 |
49
+ | Chemistry | 14 |
50
+ | Medical Science | 13 |
51
+ | Astronomy | 4 |
52
+ | Mathematics | 3 |
53
+ | Chemistry; Biology | 2 |
54
+ | Physics; Mathematics | 2 |
55
+ | Earth System Science; Mathematics | 2 |
56
+ | Earth System Science | 2 |
57
+ | Medical Science; Mathematics | 1 |
58
+ | Chemistry; Mathematics | 1 |
59
+
60
+ ## 3. Data Type Statistics
61
+ **Note**: These statistics include ONLY cases (Tasks + Workflows). Operation-level entries are excluded.
62
+
63
+ ### Individual Data Type Counts
64
+ *(Counts individual tags, so multi-tagged entries contribute to multiple categories)*
65
+
66
+ | Data Type | Count |
67
+ |-----------|-------|
68
+ | Scalar Fields | 74 |
69
+ | Time-varying | 16 |
70
+ | Vector Fields | 16 |
71
+ | Scalar Field | 15 |
72
+ | Multivariate | 15 |
73
+ | Multi-variate | 15 |
74
+ | Tensor Fields | 2 |
75
+
76
+ **Total individual data type tags**: 153
77
+
78
+ ### Data Type Combinations
79
+ *(Shows exact combinations as they appear in the data)*
80
+
81
+ | Data Type Combination | Count |
82
+ |-----------------------|-------|
83
+ | Scalar Fields | 71 |
84
+ | Multi-variate | 15 |
85
+ | Vector Fields | 12 |
86
+ | Scalar Field; Multivariate; Time-varying | 11 |
87
+ | Scalar Field; Multivariate | 4 |
88
+ | Vector Fields; Time-varying | 3 |
89
+ | Tensor Fields | 2 |
90
+ | Scalar Fields; Time-varying | 2 |
91
+ | Scalar Fields; Vector Fields | 1 |
92
+
93
+ ## 4. Task Level 1: Complexity Level Statistics
94
+
95
+ ### Overall Distribution
96
+ | Complexity Level | Entry Count | Counted as Case? |
97
+ |------------------|-------------|------------------|
98
+ | Task | 68 | ✅ YES |
99
+ | Workflow | 53 | ✅ YES |
100
+ | **Total Cases** | **121** | **(Tasks + Workflows)** |
101
+
102
+ ## 5. Task Level 2: Visualization Operations Statistics
103
+ **Note**: These statistics include ONLY cases (Tasks + Workflows). Operation-level entries are excluded.
104
+
105
+ ### All Visualization Operations (Sorted by Frequency)
106
+ | Rank | Visualization Operation | Total Count |
107
+ |------|------------------------|-------------|
108
+ | 1 | Color & Opacity Mapping | 95 |
109
+ | 2 | View & Camera Control | 57 |
110
+ | 3 | Volume Rendering | 51 |
111
+ | 4 | Surface & Contour Extraction | 30 |
112
+ | 5 | Data Subsetting & Extraction | 20 |
113
+ | 6 | Field Computation | 19 |
114
+ | 7 | Glyph & Marker Placement | 19 |
115
+ | 8 | Temporal Processing | 17 |
116
+ | 9 | Dataset Restructuring | 10 |
117
+ | 10 | Feature Identification & Segmentation | 10 |
118
+ | 11 | Data Smoothing & Filtering | 7 |
119
+ | 12 | Scientific Insight Derivation | 7 |
120
+ | 13 | Plot & Chart Generation | 3 |
121
+ | 14 | Data Sampling & Resolution Control | 2 |
122
+ | 15 | Geometric & Topological Transformation | 1 |
123
+
124
+ **Total visualization operation tags**: 348
125
+
126
+ ### Top 10 Most Common Visualization Operations
127
+ | Rank | Operation | Count |
128
+ |------|-----------|-------|
129
+ | 1 | Color & Opacity Mapping | 95 |
130
+ | 2 | View & Camera Control | 57 |
131
+ | 3 | Volume Rendering | 51 |
132
+ | 4 | Surface & Contour Extraction | 30 |
133
+ | 5 | Data Subsetting & Extraction | 20 |
134
+ | 6 | Field Computation | 19 |
135
+ | 7 | Glyph & Marker Placement | 19 |
136
+ | 8 | Temporal Processing | 17 |
137
+ | 9 | Dataset Restructuring | 10 |
138
+ | 10 | Feature Identification & Segmentation | 10 |
139
+
140
+ ### Visualization Operations by Complexity Level (Cases Only)
141
+
142
+ #### Task Level (Top 10)
143
+ | Rank | Operation | Count |
144
+ |------|-----------|-------|
145
+ | 1 | Color & Opacity Mapping | 54 |
146
+ | 2 | Volume Rendering | 36 |
147
+ | 3 | Data Subsetting & Extraction | 14 |
148
+ | 4 | View & Camera Control | 14 |
149
+ | 5 | Surface & Contour Extraction | 10 |
150
+ | 6 | Glyph & Marker Placement | 7 |
151
+ | 7 | Field Computation | 6 |
152
+ | 8 | Dataset Restructuring | 5 |
153
+ | 9 | Temporal Processing | 3 |
154
+ | 10 | Data Smoothing & Filtering | 1 |
155
+
156
+ #### Workflow Level (Top 10)
157
+ | Rank | Operation | Count |
158
+ |------|-----------|-------|
159
+ | 1 | View & Camera Control | 43 |
160
+ | 2 | Color & Opacity Mapping | 41 |
161
+ | 3 | Surface & Contour Extraction | 20 |
162
+ | 4 | Volume Rendering | 15 |
163
+ | 5 | Temporal Processing | 14 |
164
+ | 6 | Field Computation | 13 |
165
+ | 7 | Glyph & Marker Placement | 12 |
166
+ | 8 | Feature Identification & Segmentation | 10 |
167
+ | 9 | Scientific Insight Derivation | 7 |
168
+ | 10 | Data Subsetting & Extraction | 6 |
169
+
170
+ ## 6. Summary Statistics
171
+ - **Total number of CSV files analyzed**: 5
172
+ - **Total Cases (Tasks + Workflows)**: **121**
173
+ - **Unique application domains**: 8
174
+ - **Unique data types**: 7
175
+ - **Unique visualization operations**: 15
176
+
177
+ ### File Contributions
178
+ | File | Cases Contributed | Percentage |
179
+ |------|-------------------|------------|
180
+ | paraview | 48 | 39.7% |
181
+ | sci_volume_data | 34 | 28.1% |
182
+ | bioimage_data | 15 | 12.4% |
183
+ | molecular_vis | 15 | 12.4% |
184
+ | topology | 9 | 7.4% |
185
+
statistics/taxonomy.md ADDED
@@ -0,0 +1,181 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Application Taxonomy
2
+
3
+ - Astronomy
4
+ - Medical Science
5
+ - Biology
6
+ - Physics
7
+ - Earth System Science
8
+ - Mathematics
9
+ - Chemistry
10
+ - Others
11
+
12
+
13
+
14
+
15
+ # Data Type Taxonomy
16
+
17
+ - Scalar Fields
18
+ - Vector Fields
19
+ - Tensor Fields
20
+ - Multivariate
21
+ - Time-varying
22
+
23
+
24
+ # Task Level 1: Complexity Level Taxonomy
25
+
26
+ - **Operation** - Single, focused visualization operation
27
+ - **Task** - Small-scale visualization task involving a few operations
28
+ - **Workflow** - Multi-step visualization pipeline or complex process
29
+
30
+
31
+ # Task Level 2: Visualization Operations Taxonomy
32
+
33
+ Each task in SciVisAgentBench is tagged with one or more of the following operations. These tags describe **what visualization or data processing actions** are performed.
34
+
35
+ ---
36
+
37
+ ## 1. Data Subsetting & Extraction
38
+
39
+ **Brief:** Isolate spatial regions or value-based subsets from a dataset.
40
+
41
+ **Detailed:** This operation covers methods of filtering data to focus on a region or set of values of interest. It includes spatial subsetting such as clipping by plane, box, or sphere; extracting a volume of interest (VOI) from structured data; selecting by point or cell IDs; thresholding to filter by scalar range; isocontouring or isosurfacing to extract constant-value boundaries; and connectivity filtering to isolate connected components. The common thread is that the operation reduces the dataset to a subset defined by spatial location or attribute value.
42
+
43
+ ---
44
+
45
+ ## 2. Data Sampling & Resolution Control
46
+
47
+ **Brief:** Modify data density or sampling resolution for efficiency or clarity.
48
+
49
+ **Detailed:** This operation covers methods that change how densely data is represented while preserving its overall semantics. It includes subsampling and decimation to reduce point or cell count, resampling onto different grids, probing fields at discrete user-specified locations, and generating reduced representations for performance or visual clarity. Unlike Data Subsetting & Extraction (which selects regions of interest), this operation controls the fidelity or granularity of the entire dataset or a uniformly sampled portion of it.
50
+
51
+ ---
52
+
53
+ ## 3. Surface & Contour Extraction
54
+
55
+ **Brief:** Generate isosurfaces, contour lines, or cut-plane slices from volumetric data.
56
+ Generate isosurfaces, contour lines, ribbons, or tubes from volumetric data.
57
+
58
+ **Detailed:** This operation covers the extraction of geometric primitives that represent boundaries or cross-sections within a volume. It includes isosurface generation at user-specified scalar thresholds, contour line or contour surface extraction, slicing or cutting along a plane to produce a 2D cross-section, and generation of ribbons, tubes, or streamline geometry from curve data. Unlike Data Subsetting & Extraction (which filters data), this operation creates new geometry that represents a specific feature boundary or spatial cross-section of the original volume.
59
+
60
+ ---
61
+
62
+ ## 4. Volume Rendering
63
+
64
+ **Brief:** Render volumetric data directly using ray casting or splatting.
65
+
66
+ **Detailed:** This operation covers techniques that visualize an entire 3D volume without reducing it to a surface. It includes ray-casting volume rendering, point splatting, and the definition or adjustment of transfer functions that map scalar values to color and opacity. Multi-channel volume rendering with additive blending or X-ray style transparency also falls here. The key characteristic is that the full volume participates in the visual output, as opposed to extracting a surface or slice.
67
+
68
+ ---
69
+
70
+ ## 5. Glyph & Marker Placement
71
+
72
+ **Brief:** Place oriented, scaled, or typed glyphs at data points to encode local attributes.
73
+
74
+ **Detailed:** This operation covers the generation and placement of glyphs at sample locations to encode one or more data attributes visually. It includes oriented glyphs such as arrows or cones for vector direction, scaled glyphs where symbol size maps to magnitude, tensor glyphs such as ellipsoids or superquadrics, and volume markers or seed points. It also covers molecular representation types — spheres (van der Waals), sticks (licorice), cartoons (backbone), and surfaces — which are all glyph-style encodings of atomic or residue-level data. The defining feature is that discrete symbols are placed at specific locations to represent local data values.
75
+
76
+ ---
77
+
78
+ ## 6. Color & Opacity Mapping
79
+
80
+ **Brief:** Assign colors, opacity, or textures to data elements based on attribute values.
81
+
82
+ **Detailed:** This operation covers all mappings from data attributes to visual properties. It includes scalar-to-color mapping using colormaps (e.g., viridis, rainbow, grayscale), opacity or transparency mapping across a scalar range, texture coordinate generation and texture application, material property assignment such as shininess or ambient light, and contrast or gamma adjustments for display. In molecular visualization, coloring by element, chain, residue type, B-factor, charge, or hydrophobicity are all instances of this operation. The key distinction from Volume Rendering or Glyph Placement is that this operation defines the visual encoding rule, not the geometry.
83
+
84
+ ---
85
+
86
+ ## 7. Geometric & Topological Transformation
87
+
88
+ **Brief:** Modify the geometry or connectivity structure of a dataset.
89
+
90
+ **Detailed:** This operation covers transformations that change the shape, position, or topological structure of data without computing new scalar or vector attributes. Geometric transforms include translation, rotation, scaling, deformation, and warping of vertices. Topological transforms include triangulation or tessellation of polygons, mesh refinement or coarsening, cell-type conversion, and boundary extraction (deriving a surface mesh from a volume). These operations alter how the data is structured spatially but do not derive new field values.
91
+
92
+ ---
93
+
94
+ ## 8. Dataset Restructuring
95
+
96
+ **Brief:** Combine, partition, or reorganize multiple datasets or data blocks.
97
+
98
+ **Detailed:** This operation covers structural changes to how datasets are organized at the block or file level, rather than modifying geometry or attributes. It includes merging two or more datasets into a single output, appending new data blocks, splitting or partitioning a dataset along boundaries, and format or type conversion between file structures (e.g., structured to unstructured grid). The defining characteristic is that the operation reorganizes data provenance or container structure rather than transforming geometry or computing attributes.
99
+
100
+ ---
101
+
102
+ ## 9. Field Computation
103
+
104
+ **Brief:** Derive new scalar, vector, or tensor fields from existing data attributes.
105
+
106
+ **Detailed:** This operation covers all calculations that produce new attribute arrays from existing ones. It includes gradient, divergence, curl, and vorticity computation; curvature calculation and normal generation; arithmetic operations on fields such as addition, subtraction, and multiplication; vector magnitude computation and component extraction; field aggregation and statistical summaries (min, max, mean, standard deviation); tensor operations such as eigenvalue and eigenvector decomposition; interpolation between fields; and distance computations. Critical point detection also falls here, as it derives point locations and classifications from scalar field topology.
107
+
108
+ ---
109
+
110
+ ## 10. Temporal Processing
111
+
112
+ **Brief:** Perform computations or navigation that involve the time dimension of data.
113
+
114
+ **Detailed:** This operation covers all actions that explicitly use or traverse the temporal axis of time-varying data. It includes temporal interpolation between timesteps, particle tracing or trajectory computation through time, flow integration to produce streamlines, pathlines, streaklines, or timelines, temporal statistics or aggregation across multiple timesteps, flow map computation, and navigating or selecting specific timesteps in a time series. The defining feature is that time is an active dimension in the operation, distinguishing it from static spatial analysis.
115
+
116
+ ---
117
+
118
+ ## 11. Feature Identification & Segmentation (Or Feature Extraction & Tracking?)
119
+
120
+ **Brief:** Detect, extract, or label discrete structures or regions in data.
121
+
122
+ **Detailed:** This operation covers computational methods that identify and classify meaningful structures within a dataset. It includes connected component labeling, object detection and identification, region segmentation, feature extraction such as vortices or boundaries, topology-based feature classification (e.g., critical point types), and tissue or structure classification from intensity distributions. The output is a set of labeled objects or regions — a computational result — as distinct from Scientific Insight Derivation, which interprets those results to answer a domain question.
123
+
124
+ ---
125
+
126
+ ## 12. Data Smoothing & Filtering
127
+
128
+ **Brief:** Reduce noise, enhance features, or apply statistical filters to data.
129
+
130
+ **Detailed:** This operation covers preprocessing steps that modify attribute values to improve quality or visual clarity without changing geometry or topology. It includes surface smoothing algorithms such as Laplacian or Gaussian smoothing, noise reduction on scalar or vector fields, interpolation to fill missing data gaps, edge enhancement or detection, feature sharpening, outlier removal, and statistical filtering. The goal is to condition the data for cleaner analysis or visualization, as distinct from Field Computation which derives fundamentally new quantities.
131
+
132
+ ---
133
+
134
+ ## 13. View & Camera Control
135
+
136
+ **Brief:** Adjust camera position, orientation, zoom, or lighting for the visualization.
137
+
138
+ **Detailed:** This operation covers all manipulations of the viewing context rather than the data itself. It includes camera rotation, zoom, and panning; setting specific viewpoints such as isometric, orthographic, or axis-aligned views; adjusting light position and lighting mode; switching between 2D and 3D view modes; and resetting the camera to default. In molecular visualization, this includes centering on a specific residue or region and adjusting the viewing angle to show a particular structural feature.
139
+
140
+ ---
141
+
142
+ ## 14. Plot & Chart Generation
143
+
144
+ **Brief:** Produce 2D statistical plots, histograms, or line charts from data.
145
+
146
+ **Detailed:** This operation covers the creation of traditional 2D chart representations from dataset attributes. It includes histogram generation from scalar distributions, line plot extraction, such as intensity profiles or time series, bar charts, and other standard statistical visualizations. This is distinct from Volume Rendering or Surface Extraction because the output is a 2D chart rather than a 3D visual representation of spatial data. It is also distinct from Field Computation because the operation produces a visual artifact (the chart) rather than a new data field.
147
+
148
+ ---
149
+
150
+ ## 15. Scientific Insight Derivation
151
+
152
+ **Brief:** Interpret visualization or analysis results to answer domain-specific questions.
153
+
154
+ **Detailed:** This operation covers tasks where the goal is not to produce a particular visual output or labeled data, but to use visualization or analysis to answer a scientific question or derive a domain-relevant conclusion. Examples include determining whether water molecules penetrate a lipid membrane, assessing whether a rendered volume shows a specific anatomical structure, or validating the physical plausibility of simulation results. The defining characteristic is that the output is knowledge or a decision, not a visualization or data artifact. This operation frequently co-occurs with Feature Identification & Segmentation or other operations that provide the analytical basis for the insight.
155
+
156
+ ---
157
+
158
+ ## Mapping from Previous Tags
159
+
160
+ | Previous Tag | New Tag(s) |
161
+ |---|---|
162
+ | Spatial/temporal Extraction | Data Subsetting & Extraction |
163
+ | Value-Based Selection | Data Subsetting & Extraction |
164
+ | Sampling | Data Sampling & Resolution Control |
165
+ | Geometric Primitives | Surface & Contour Extraction |
166
+ | Volume Representation | Volume Rendering |
167
+ | Glyph-Based Representation | Glyph & Marker Placement |
168
+ | Color Mapping | Color & Opacity Mapping |
169
+ | Geometric Modification | Geometric & Topological Transform |
170
+ | Topological Changes | Geometric & Topological Transform |
171
+ | Structural Operations | Dataset Restructuring |
172
+ | Field Derivatives | Field Computation |
173
+ | Scalar Operations | Field Computation |
174
+ | Advanced Computations | Field Computation |
175
+ | Time-Dependent Processing | Temporal Processing |
176
+ | Object identification | Feature Identification & Segmentation |
177
+ | Smoothing & enhancement | Data Smoothing & Filtering |
178
+ | View / Rendering Manipulation | View & Camera Control |
179
+ | Plot Drawing | Plot & Chart Generation |
180
+
181
+