SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2609.02212 · September 2026

FuDU: A Fuzzy Dual-dimensional Uncertainty Framework for Streaming Active Learning in Industrial Defect Detection

Zhaoyang Wang, Binyi Su, Haiyong Chen, Xinwei Lyu

arXiv · PDF · Open in the Atlas

Code that ran

7 of 8 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 6 failures of our instrument; 1 no recorded run), measured 2026-11-24; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2609.02212.json · badge: /api/ran/2609.02212.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
wangzhaoyang-508/FuDU canonical (classifier label)
classifier basis: census
7 ran · 1 no recorded run
FunctionStatusWhere it lives
box_uncertainty Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
wangzhaoyang-508/FuDU/src/fudu/uncertainty.py
code served (permissive licence) · get_code("57cc486d37f7858e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Set random seed for reproducibility
np.random.seed(0)

# Create valid arguments for box_uncertainty function
class_probs = np.array([0.7, 0.2, 0.1])  # Valid probability distribution for 3 classes
confidence = 0.75  # Confidence score between 0 and 1
loc_probs = np.array([[0.6, 0.3, 0.1], [0.5, 0.3, 0.2], [0.4, 0.4, 0.2], [0.7, 0.2, 0.1]])  # 4x3 localization bins for 4 dimensions (left/top/right/bottom) with 3 bins each
class_entropy_norm = 0.5  # Normalized classification entropy
loc_entropy_norm = 0.4  # Normalized localization entropy
w_cls = 1.0  # Weight for classification entropy
w_loc = 2.0  # Weight for localization entropy
divisor = 'paper'  # Use the paper's divisor (3.0)
clip = True  # Clip output to [0, 1]

ARGS = {
    'class_probs': class_probs,
    'confidence': confidence,
    'loc_probs': loc_probs,
    'class_entropy_norm': class_entropy_norm,
    'loc_entropy_norm': loc_entropy_norm,
    'w_cls': w_cls,
    'w_loc': w_loc,
    'divisor': divisor,
    'clip': clip,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
classification_entropy Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
wangzhaoyang-508/FuDU/src/fudu/uncertainty.py
code served (permissive licence) · get_code("754350b90a5a9575")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

ARGS = {
    "class_probs": np.array([0.5, 0.3, 0.2]),
    "normalize": True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
localization_entropy Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
wangzhaoyang-508/FuDU/src/fudu/uncertainty.py
code served (permissive licence) · get_code("af413e21336959a2")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create test data for localization_entropy function
# The function accepts loc_probs which can be:
# - 1D array of shape (K,) for a single localization distribution
# - 2D array of shape (4, K) for left/top/right/bottom bins

# Test case 1: 1D array (K,) - single localization distribution
loc_probs_1d = np.array([0.1, 0.3, 0.4, 0.2])

# Test case 2: 2D array (4, K) - four localization distributions for left/top/right/bottom
loc_probs_2d = np.array([
    [0.25, 0.25, 0.25, 0.25],
    [0.1, 0.2, 0.3, 0.4],
    [0.5, 0.3, 0.15, 0.05],
    [0.2, 0.2, 0.2, 0.4]
])

# Use the 2D case as it's more representative of the function's typical usage
ARGS = {
    "loc_probs": loc_probs_2d,
    "normalize": True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
read_detection_jsonl Ran
ran; our contract draft was wrong, not the code
wangzhaoyang-508/FuDU/src/fudu/io.py
code served (permissive licence) · get_code("cddc1371fd0a9893")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import json
import tempfile
from pathlib import Path

# Create a temporary JSONL file with detection data
temp_dir = tempfile.TemporaryDirectory()
temp_path = Path(temp_dir.name) / "detections.jsonl"

# Write sample detection data in JSONL format
with open(temp_path, 'w', encoding='utf-8') as f:
    # First line: image with boxes
    f.write(json.dumps({
        "image_id": "img_001",
        "boxes": [
            {"x": 10, "y": 20, "width": 100, "height": 150},
            {"x": 200, "y": 50, "width": 80, "height": 120}
        ]
    }) + '\n')
    
    # Second line: image with class_probs and loc_probs
    f.write(json.dumps({
        "image_id": "img_002",
        "class_probs": [0.9, 0.1],
        "loc_probs": [0.85, 0.15]
    }) + '\n')
    
    # Third line: another image with boxes
    f.write(json.dumps({
        "image_id": "img_003",
        "boxes": [
            {"confidence": 0.95, "label": "cat"}
        ]
    }) + '\n')

ARGS = {
    "path": temp_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
read_feature_csv Ran
ran; our contract draft was wrong, not the code
wangzhaoyang-508/FuDU/src/fudu/io.py
code served (permissive licence) · get_code("2bbc01524f6b9d93")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned FeatureTable. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
import csv
from pathlib import Path
import numpy as np

# Create a temporary CSV file with valid feature data
temp_dir = tempfile.TemporaryDirectory()
csv_path = Path(temp_dir.name) / "features.csv"

# Write a valid feature CSV
with open(csv_path, 'w', newline='', encoding='utf-8') as f:
    writer = csv.DictWriter(f, fieldnames=['image_id', 'label', 'image_path', 'f0', 'f1', 'f2'])
    writer.writeheader()
    writer.writerow({
        'image_id': 'img_001',
        'label': 'cat',
        'image_path': '/path/to/img_001.jpg',
        'f0': '0.1',
        'f1': '0.2',
        'f2': '0.3'
    })
    writer.writerow({
        'image_id': 'img_002',
        'label': 'dog',
        'image_path': '/path/to/img_002.jpg',
        'f0': '0.4',
        'f1': '0.5',
        'f2': '0.6'
    })

ARGS = {
    'path': csv_path,
    'require_labels': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type FeatureTable — a FeatureTable output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a FeatureTable output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
read_scores_csv Ran
ran; our contract draft was wrong, not the code
wangzhaoyang-508/FuDU/src/fudu/io.py
code served (permissive licence) · get_code("c121799556fbb68b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import csv
from pathlib import Path
import tempfile

# Create a temporary CSV file with valid content
temp_dir = tempfile.TemporaryDirectory()
csv_path = Path(temp_dir.name) / "scores.csv"

# Write a sample CSV file
with csv_path.open('w', newline='', encoding='utf-8') as f:
    writer = csv.DictWriter(f, fieldnames=['name', 'score', 'timestamp'])
    writer.writeheader()
    writer.writerow({'name': 'Alice', 'score': '95', 'timestamp': '2024-01-01'})
    writer.writerow({'name': 'Bob', 'score': '87', 'timestamp': '2024-01-02'})

ARGS = {
    'path': csv_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
trapezoid Ran
ran, honoured the contract we drafted
wangzhaoyang-508/FuDU/src/fudu/fuzzy.py
code served (permissive licence) · get_code("72a7be04b2fd34c5")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# The trapezoid function takes 5 float parameters: x, a, b, c, d
# It computes a trapezoidal membership function where a <= b <= c <= d
# We need to construct valid arguments satisfying the constraint

ARGS = {
    'x': 2.5,      # test point within the trapezoid domain
    'a': 1.0,      # left point (support begins)
    'b': 2.0,      # left plateau point
    'c': 3.0,      # right plateau point
    'd': 4.0,      # right point (support ends)
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
build_prototype_library Not yet run
unverified (harvested, no recorded run)
wangzhaoyang-508/FuDU/src/fudu/prototypes.py
code served (permissive licence) · get_code("9f9a413cdfd41904")
How it ran

no invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 8 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Ensuring the reliability of deep learning models in real-time industrial defect detection is critical for high-stakes quality inspection. To mine uncertain samples within continuous industrial media streams, thereby enhancing the reliability of the detection system, this paper proposes a streaming active learning method based on the Fuzzy Dual-dimensional Uncertainty (FuDU) framework. Specifically, we first design a Prototype-based Global Uncertainty Quantification (PGUQ) module on the backbone to evaluate image-level uncertainty via normal/defective feature prototypes. A Dual-entropy defect Uncertainty Evaluator (DeUE) is then integrated into the detection head to quantify box-level uncertainty. Finally, by modeling uncertainty as systematic error, we propose a fuzzy dual-dimensional uncertainty-aware strategy that leverages fuzzy inference to fuse dual-dimensional uncertainties, enabling expert knowledge-driven adaptive sampling decisions. Comprehensive experiments demonstrate that FuDU is efficient and flexible, making it well-suited for challenging industrial inspection tasks such as the detection of nuclear fuel rod defects. Our code is publicly available at: https://github.com/wangzhaoyang-508/FuDU.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2609.02212")
get_code_for_paper("2609.02212")
have("2609.02212")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2609.02212.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2609.02212.svg)](https://syntology.ai/paper/2609.02212)

Connect an agent — have() is free.