-C Höhne, Majharulislam Babor, Giacomo Rossi, Annalisa Altavilla, Oliver Schlüter
We lifted 4 functions out of this paper's own repositories and ran 4 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.
| Repository | Role | Ran |
|---|---|---|
| majharB/bisn | canonical | 4 of 4 |
| Function | Status | Where it lives |
|---|---|---|
| get_lambda | Ran | majharB/bisn/src/grl.py code served (permissive licence) · get_code("4f05c8f31e82aa0c") |
| sg_derivative_rows | Ran | majharB/bisn/src/preprocessing.py code served (permissive licence) · get_code("1849c8f1657715aa") |
| snv | Ran | majharB/bisn/src/preprocessing.py code served (permissive licence) · get_code("0b61bf49a15f0a65") |
| use_pub_font | Ran | majharB/bisn/src/preprocessing.py code served (permissive licence) · get_code("e6ac32ac8284ef4d") |
Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.
Edible insects offer an efficient source of alternative protein, requiring less land, water and emitting less greenhouse gas than conventional livestock. However, their successful integration into the food supply chain demands reliable species authentication to control allergen exposure, prevent adulteration, and meet regulatory standards. Near-infrared spectroscopy provides a rapid analytical tool, but its performance drops when applied to production batches unseen during training due to batch-to-batch variation in spectral measurements. We introduce the Batch-Invariant Spectral Network (BISN), an end-to-end framework that combines a learnable preprocessing module, initialised with Savitzky-Golay filtering, with an entropy-regularised adversarial objective to suppress batch-specific spectral variation. Rather than explicitly training a discriminator to predict batch labels, BISN drives batch predictions toward a uniform distribution by removing batch-identifying information from the learned representation. In contrast to Domain-Adversarial Neural Networks, which enforce domain adaptation only after feature extraction, BISN suppress batch-effects before speciesspecific features are learned. Using 2,700 spectra from three species (Acheta domesticus, Hermetia illucens, and Tenebrio molitor) collected across three independent production batches, BISN achieves a mean leave-one-batch-out accuracy of 0.93 (standard deviation 0.04), outperforming the strongest baseline by four percent (𝑝 < 10 -6 ). Further insights gained by using explainable AI confirm that model decisions consistently rely on the lipid and protein absorption regions across all folds, connecting predictive performance to known insect biochemistry. BISN addresses both cross-batch robustness and biochemical interpretability for automated insect species authentication under realistic industrial conditions. The source code and dataset are publicly available at https://github.com/majharB/bisn.
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2606.26757")
get_code_for_paper("2606.26757")
have("2606.26757")
Connect an agent — have() is free.