HSI-AgriFoodAnomaly: A Hyperspectral Dataset for Anomaly Detection in the Agri-Food Industrial Inspection | Research Square window.SnipcartSettings = { analytics: { enabled: false } }; (function() { var accessVector = localStorage.getItem('access_vector') || ''; window.dataLayer = window.dataLayer || []; if (accessVector) { window.dataLayer.push({ user: { profile: { profileInfo: { snid: accessVector } } } }); } })(); (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-K279D39R'); Browse Preprints In Review Journals COVID-19 Preprints AJE Video Bytes Research Tools Research Promotion AJE Professional Editing AJE Rubriq About Preprint Platform In Review Editorial Policies Our Team Advisory Board Help Center Sign In Submit a Preprint Cite Share Download PDF data-descriptor HSI-AgriFoodAnomaly: A Hyperspectral Dataset for Anomaly Detection in the Agri-Food Industrial Inspection Moahammed El Amine BECHAR, Nadine Abdallah Saab, Olga Assainova, and 3 more This is a preprint; it has not been peer reviewed by a journal. https://doi.org/ 10.21203/rs.3.rs-7819435/v1 This work is licensed under a CC BY 4.0 License Status: Posted Version 1 posted You are reading this latest preprint version Abstract Ensuring food safety in agri-food production requires rapid and accurate anomaly detection. Hyperspectral imaging (HSI) is a promising modality for this task due to its rich spectral information; however, progress has been limited by the absence of realistic, publicly available datasets. This work introduces \textit{HSI-AgriFoodAnomaly}, the first open-access hyperspectral benchmark specifically designed for foreign objects anomaly detection in conveyor-based agri-food inspection. The dataset comprises 147 pixel-wise annotated HSI-cubes acquired under industrial-like conditions, covering the spectral range from 400 nm to 1000 nm and capturing 300 contiguous spectral bands, featuring a diverse set of anomaly categories including plastics, textiles, metals, glass, and paper. It supports multiple vision tasks such as binary classification, object detection, and semantic segmentation. To validate the dataset’s utility, we propose a baseline detection framework based on 2D convolutional neural networks adapted to full-spectrum HSI-cubes (300 bands). Experimental results demonstrate that models trained on HSI-cubes consistently outperform their RGB images, particularly in detecting subtle or previously unseen anomalies. The proposed dataset and baseline provide a solid foundation for advancing HSI-based food quality inspection systems. The dataset and source code are publicly available at: https://github.com/lsllabisen/HSI-AgriFoodAnomaly-Dataset.git. Full Text Additional Declarations No competing interests reported. Cite Share Download PDF Status: Posted Version 1 posted You are reading this latest preprint version Research Square lets you share your work early, gain feedback from the community, and start making changes to your manuscript prior to peer review in a journal. As a division of Research Square Company, we’re committed to making research communication faster, fairer, and more useful. We do this by developing innovative software and high quality services for the global research community. Our growing team is made up of researchers and industry professionals working together to solve the most critical problems facing scientific publishing. Also discoverable on Platform About Our Team In Review Editorial Policies Advisory Board Help Center Resources Author Services Accessibility API Access RSS feed Manage Cookie Preferences © Research Square 2026 | ISSN 2693-5015 (online) Privacy Policy Terms of Service Do Not Sell My Personal Information {"props":{"pageProps":{"initialData":{"identity":"rs-7819435","acceptedTermsAndConditions":true,"allowDirectSubmit":true,"archivedVersions":[],"articleType":"data-descriptor","associatedPublications":[],"authors":[{"id":577476963,"identity":"b3cb8f28-eae3-4994-81b0-15befaf48df8","order_by":0,"name":"Moahammed El Amine BECHAR","email":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAAyAQMAAABI0h/eAAAABlBMVEX///8AAABVwtN+AAAACXBIWXMAAA7EAAAOxAGVKw4bAAABfklEQVRIie2RP0sDMRTAEwLekuutV47iJxAigVOx1K9iCHRqVXAUNKVwXVpubQe/Q6fDrTlvuKXY9cSlh4NTQXRpKf55baUFLdhR5H5DQh755eW9h1BGxp+EzlesEFGw24sIHJFFflXwNyVfX95ZyfinglYK0+uVnUYrfLmvFAvKqCk0qeyfWMgMh5Ob0imPjfTxDBWFbw00MSFiGRoUt38nnWpQ5oqGCrcC+zyvcnK31ZcHQUQ5b6Oy6LQlIiZEOs3jmZJUGCiR6CWiMTYDW3Q1dR3sEeZGdMsx3yPRTQgonmZMHxtzhU+rwYdQ26nCb6D0NN2bYu+K8brxNKUIXhtEC+VoMFxkcSGLFsrGisyzIOoS7EWMEeSSmdJF8iuLPf9Yv+8eVgMJtQhFCqC0o5zMt7yY2VCLQ1GZtxPJwmtPMjtJa6DETf5QDUrQsUjjUXApfOjh88S7YJYfp68UFQu+H6bDkVeCiAzXznbt0G+X49sYPN78bkZGRsZ/4xPWy5QTObgesAAAAABJRU5ErkJggg==","orcid":"","institution":"ISEN Ouest","correspondingAuthor":true,"prefix":"","firstName":"Moahammed","middleName":"El Amine","lastName":"BECHAR","suffix":""},{"id":577476964,"identity":"c4fb946b-a4a6-4d51-aea9-cf00f2826161","order_by":1,"name":"Nadine Abdallah Saab","email":"","orcid":"","institution":"ISEN Ouest","correspondingAuthor":false,"prefix":"","firstName":"Nadine","middleName":"Abdallah","lastName":"Saab","suffix":""},{"id":577476965,"identity":"69cfc214-3349-4baa-8dd2-5aa40bc458e1","order_by":2,"name":"Olga Assainova","email":"","orcid":"","institution":"ISEN Ouest","correspondingAuthor":false,"prefix":"","firstName":"Olga","middleName":"","lastName":"Assainova","suffix":""},{"id":577476966,"identity":"bee16f08-0c9a-4a9a-a833-fe87f46df0b2","order_by":3,"name":"Hafsa El Hafyani","email":"","orcid":"","institution":"ISEN Ouest","correspondingAuthor":false,"prefix":"","firstName":"Hafsa","middleName":"El","lastName":"Hafyani","suffix":""},{"id":577476967,"identity":"a3a44050-69f0-4025-8a1f-c02cf30fa47b","order_by":4,"name":"Nesma Settouti","email":"","orcid":"","institution":"ISEN Ouest","correspondingAuthor":false,"prefix":"","firstName":"Nesma","middleName":"","lastName":"Settouti","suffix":""},{"id":577476968,"identity":"aee6515e-ed54-4840-b44e-8ecd4c2a290e","order_by":5,"name":"Marwa El Bouz","email":"","orcid":"","institution":"ISEN Ouest","correspondingAuthor":false,"prefix":"","firstName":"Marwa","middleName":"El","lastName":"Bouz","suffix":""}],"badges":[],"createdAt":"2025-10-09 15:53:20","currentVersionCode":1,"declarations":"","doi":"10.21203/rs.3.rs-7819435/v1","doiUrl":"https://doi.org/10.21203/rs.3.rs-7819435/v1","draftVersion":[],"editorialEvents":[],"editorialNote":"","failedWorkflow":false,"files":[{"id":100849953,"identity":"3dfd4b59-a423-4dec-97ac-87db0ee815e8","added_by":"auto","created_at":"2026-01-22 05:45:38","extension":"json","order_by":0,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":8075,"visible":true,"origin":"","legend":"","description":"","filename":"4bcacbe1f5f942efa7c73083fbe0b414.json","url":"https://assets-eu.researchsquare.com/files/rs-7819435/v1/16e737a51398d295c51ac358.json"},{"id":100849958,"identity":"ca001a9c-3595-4d5e-97d5-657672221e9d","added_by":"auto","created_at":"2026-01-22 05:45:39","extension":"png","order_by":1,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":5013665,"visible":true,"origin":"","legend":"","description":"","filename":"Convoyeur3.png","url":"https://assets-eu.researchsquare.com/files/rs-7819435/v1/a1cd3bfae98002fe7b5550f8.png"},{"id":100849954,"identity":"b76f6d0e-e740-44fa-a154-296043127f78","added_by":"auto","created_at":"2026-01-22 05:45:38","extension":"pdf","order_by":2,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":35076,"visible":true,"origin":"","legend":"","description":"","filename":"CoverLetter.pdf","url":"https://assets-eu.researchsquare.com/files/rs-7819435/v1/46fe635d8d96149c9ea4b758.pdf"},{"id":100850003,"identity":"863a382e-7f94-49d4-b8f6-b2c5095a058c","added_by":"auto","created_at":"2026-01-22 05:45:41","extension":"pdf","order_by":3,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":50127740,"visible":true,"origin":"","legend":"","description":"","filename":"DataSetSIIRI.pdf","url":"https://assets-eu.researchsquare.com/files/rs-7819435/v1/59c0603e552af1ce02e1635c.pdf"},{"id":100849988,"identity":"dd77526a-5940-42b5-9aa1-311a368034e0","added_by":"auto","created_at":"2026-01-22 05:45:40","extension":"png","order_by":4,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1343174,"visible":true,"origin":"","legend":"","description":"","filename":"HSIInf2.png","url":"https://assets-eu.researchsquare.com/files/rs-7819435/v1/a5334ffcc875a384d10cbec0.png"},{"id":100849955,"identity":"d705e6da-7c30-4795-8dfe-5e61601da92c","added_by":"auto","created_at":"2026-01-22 05:45:38","extension":"png","order_by":5,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1286097,"visible":true,"origin":"","legend":"","description":"","filename":"HSIL158.png","url":"https://assets-eu.researchsquare.com/files/rs-7819435/v1/7f81b9c31e826f7c3a5430b3.png"},{"id":100849990,"identity":"be270cf5-952f-41cc-8f03-86451599e1a3","added_by":"auto","created_at":"2026-01-22 05:45:40","extension":"png","order_by":6,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1345205,"visible":true,"origin":"","legend":"","description":"","filename":"HSIL68.png","url":"https://assets-eu.researchsquare.com/files/rs-7819435/v1/0d25cfa45cb8e3847510b4b2.png"},{"id":100849957,"identity":"45e5dca6-706b-4e58-8d9f-e9529b241fc0","added_by":"auto","created_at":"2026-01-22 05:45:39","extension":"png","order_by":7,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1351640,"visible":true,"origin":"","legend":"","description":"","filename":"HSINL1.png","url":"https://assets-eu.researchsquare.com/files/rs-7819435/v1/f6184083a72c68ab0aae9970.png"},{"id":100849996,"identity":"b26064f3-fdae-4fd3-98d1-67ab9d50d5fa","added_by":"auto","created_at":"2026-01-22 05:45:41","extension":"png","order_by":8,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1147411,"visible":true,"origin":"","legend":"","description":"","filename":"Metal1.png","url":"https://assets-eu.researchsquare.com/files/rs-7819435/v1/e68ac201ff0cb1af80113841.png"},{"id":100849982,"identity":"f9bda14b-cad1-4a46-bc3c-54f28a151f8b","added_by":"auto","created_at":"2026-01-22 05:45:40","extension":"png","order_by":9,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1089710,"visible":true,"origin":"","legend":"","description":"","filename":"Metal2.png","url":"https://assets-eu.researchsquare.com/files/rs-7819435/v1/4bcf31ef6fbfa1e5351d20ca.png"},{"id":100849956,"identity":"fcc14321-a2cf-447e-904b-5fa0ec5e5655","added_by":"auto","created_at":"2026-01-22 05:45:38","extension":"png","order_by":10,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1142874,"visible":true,"origin":"","legend":"","description":"","filename":"MineralGlass1.png","url":"https://assets-eu.researchsquare.com/files/rs-7819435/v1/c7d50c778a75c38316f8b63e.png"},{"id":100949444,"identity":"ad21d1fd-73bd-4483-b193-75d52e0f9d6e","added_by":"auto","created_at":"2026-01-23 07:02:29","extension":"png","order_by":11,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1108091,"visible":true,"origin":"","legend":"","description":"","filename":"MineralGlass2.png","url":"https://assets-eu.researchsquare.com/files/rs-7819435/v1/988b55af4cc7b866cdee227f.png"},{"id":100849966,"identity":"ba85194a-ae57-437f-aafd-4797fc4bd495","added_by":"auto","created_at":"2026-01-22 05:45:39","extension":"png","order_by":12,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1337825,"visible":true,"origin":"","legend":"","description":"","filename":"Overlap1.png","url":"https://assets-eu.researchsquare.com/files/rs-7819435/v1/c18df05ebf03f66d44bacf35.png"},{"id":100849961,"identity":"f5cb13db-1e59-4ef3-8f17-a18202db55f3","added_by":"auto","created_at":"2026-01-22 05:45:39","extension":"png","order_by":13,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1330058,"visible":true,"origin":"","legend":"","description":"","filename":"Overlap2.png","url":"https://assets-eu.researchsquare.com/files/rs-7819435/v1/9868f57e56702f8d7e611df0.png"},{"id":100949452,"identity":"ad550d88-0d8e-49c1-b383-b4475889d11e","added_by":"auto","created_at":"2026-01-23 07:02:34","extension":"png","order_by":14,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1362992,"visible":true,"origin":"","legend":"","description":"","filename":"Overlap3.png","url":"https://assets-eu.researchsquare.com/files/rs-7819435/v1/9090044cd544162332b6b931.png"},{"id":100849964,"identity":"74ed2b9c-6545-4d05-b76b-cc8ab694dcb2","added_by":"auto","created_at":"2026-01-22 05:45:39","extension":"png","order_by":15,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1354114,"visible":true,"origin":"","legend":"","description":"","filename":"Overlap4.png","url":"https://assets-eu.researchsquare.com/files/rs-7819435/v1/d4360ed54c3dba350b40b50a.png"},{"id":100850009,"identity":"4c733f01-5bd2-492e-ae4a-6f7882cdf8fc","added_by":"auto","created_at":"2026-01-22 05:45:42","extension":"png","order_by":16,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1361973,"visible":true,"origin":"","legend":"","description":"","filename":"Overlap5.png","url":"https://assets-eu.researchsquare.com/files/rs-7819435/v1/e577d70dff7742a765f8d8ec.png"},{"id":100849997,"identity":"d61d7bf7-8b0d-4c60-bae7-8373b6b04a35","added_by":"auto","created_at":"2026-01-22 05:45:41","extension":"png","order_by":17,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1132182,"visible":true,"origin":"","legend":"","description":"","filename":"Paper1.png","url":"https://assets-eu.researchsquare.com/files/rs-7819435/v1/f2e5e15e1d755c6f961bd8d2.png"},{"id":100850007,"identity":"b90afe43-7431-4483-b41e-aa8854c65223","added_by":"auto","created_at":"2026-01-22 05:45:42","extension":"png","order_by":18,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1135081,"visible":true,"origin":"","legend":"","description":"","filename":"Paper2.png","url":"https://assets-eu.researchsquare.com/files/rs-7819435/v1/1ba20795ccf6bab34397368b.png"},{"id":100849989,"identity":"1c07440f-dd85-4c69-89fd-d2ebf6ca142b","added_by":"auto","created_at":"2026-01-22 05:45:40","extension":"png","order_by":19,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1171539,"visible":true,"origin":"","legend":"","description":"","filename":"Plastic1.png","url":"https://assets-eu.researchsquare.com/files/rs-7819435/v1/80ce0e19c7314c168854e9e6.png"},{"id":100949616,"identity":"bf2f90c9-dc9b-43ff-a461-8bda999a852b","added_by":"auto","created_at":"2026-01-23 07:04:37","extension":"png","order_by":20,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1118771,"visible":true,"origin":"","legend":"","description":"","filename":"Plastic2.png","url":"https://assets-eu.researchsquare.com/files/rs-7819435/v1/e1a8517de3d8227c3af3e959.png"},{"id":101397605,"identity":"222e22dc-e5f5-4b27-973e-c8f8fbb50384","added_by":"auto","created_at":"2026-01-29 09:32:17","extension":"png","order_by":21,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1088984,"visible":true,"origin":"","legend":"","description":"","filename":"Plastic3.png","url":"https://assets-eu.researchsquare.com/files/rs-7819435/v1/30db19f8636935df3dd9ba50.png"},{"id":100849960,"identity":"9926d7c5-8137-43e1-9bd7-d08328f5480f","added_by":"auto","created_at":"2026-01-22 05:45:39","extension":"png","order_by":22,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1156804,"visible":true,"origin":"","legend":"","description":"","filename":"Plastic4.png","url":"https://assets-eu.researchsquare.com/files/rs-7819435/v1/da75ecb68ee61cdb04607c7b.png"},{"id":100849993,"identity":"7693aaf4-061d-4d3b-839b-61f47e5df907","added_by":"auto","created_at":"2026-01-22 05:45:40","extension":"png","order_by":23,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1137966,"visible":true,"origin":"","legend":"","description":"","filename":"RGB1.png","url":"https://assets-eu.researchsquare.com/files/rs-7819435/v1/a890abc65818fa17016e4ba0.png"},{"id":100859314,"identity":"04065e3b-3f3d-4e19-af57-4c78434f8f2d","added_by":"auto","created_at":"2026-01-22 07:26:27","extension":"png","order_by":24,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1110701,"visible":true,"origin":"","legend":"","description":"","filename":"RGB2.png","url":"https://assets-eu.researchsquare.com/files/rs-7819435/v1/eab0b93dfa5f9be20c936661.png"},{"id":100859354,"identity":"33f4d659-1065-4642-aa65-03139b14a4f6","added_by":"auto","created_at":"2026-01-22 07:27:06","extension":"png","order_by":25,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1140827,"visible":true,"origin":"","legend":"","description":"","filename":"RGB3.png","url":"https://assets-eu.researchsquare.com/files/rs-7819435/v1/56d6d4c48c9497b110a5ce94.png"},{"id":100849977,"identity":"977cde0b-6292-4539-849e-4d47b2257bd0","added_by":"auto","created_at":"2026-01-22 05:45:40","extension":"png","order_by":26,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1122283,"visible":true,"origin":"","legend":"","description":"","filename":"RGB4.png","url":"https://assets-eu.researchsquare.com/files/rs-7819435/v1/db6521e9bee5d0fd3c4d8d50.png"},{"id":100849979,"identity":"42b6afb4-7d8b-4ab7-9abf-a1bab834e07d","added_by":"auto","created_at":"2026-01-22 05:45:40","extension":"png","order_by":27,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1151484,"visible":true,"origin":"","legend":"","description":"","filename":"RGB5.png","url":"https://assets-eu.researchsquare.com/files/rs-7819435/v1/3d51123df2d1ab0a709f0275.png"},{"id":100849970,"identity":"5a450a2b-3b96-4e4b-88d9-0540fd29f752","added_by":"auto","created_at":"2026-01-22 05:45:39","extension":"png","order_by":28,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":931882,"visible":true,"origin":"","legend":"","description":"","filename":"TextileFiber1.png","url":"https://assets-eu.researchsquare.com/files/rs-7819435/v1/c81e578d8056e50088a1d3e6.png"},{"id":100949478,"identity":"5704b09c-9e61-40d4-8b74-a5775cb61fb0","added_by":"auto","created_at":"2026-01-23 07:02:59","extension":"png","order_by":29,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1154031,"visible":true,"origin":"","legend":"","description":"","filename":"TextileFiber2.png","url":"https://assets-eu.researchsquare.com/files/rs-7819435/v1/062ca05a14cfed37f033e8b7.png"},{"id":100849995,"identity":"f95efe81-cc47-4f26-8b5c-36bc8a794230","added_by":"auto","created_at":"2026-01-22 05:45:41","extension":"png","order_by":30,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1166795,"visible":true,"origin":"","legend":"","description":"","filename":"TextileFiber3.png","url":"https://assets-eu.researchsquare.com/files/rs-7819435/v1/e9b5bde688918a56083070b2.png"},{"id":100850010,"identity":"d3a0759c-3343-438d-8223-14d18b379dbf","added_by":"auto","created_at":"2026-01-22 05:45:42","extension":"png","order_by":31,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1172509,"visible":true,"origin":"","legend":"","description":"","filename":"TextileFiber4.png","url":"https://assets-eu.researchsquare.com/files/rs-7819435/v1/f95b6b3aa708935088eaf2e0.png"},{"id":100849973,"identity":"e5c46c14-7563-4bdf-a988-e0c95f06bcb6","added_by":"auto","created_at":"2026-01-22 05:45:39","extension":"png","order_by":32,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1109070,"visible":true,"origin":"","legend":"","description":"","filename":"TextileFiber5.png","url":"https://assets-eu.researchsquare.com/files/rs-7819435/v1/086903ace389790a34943ec6.png"},{"id":100849981,"identity":"dbf6e496-79d1-468e-a665-330431646d86","added_by":"auto","created_at":"2026-01-22 05:45:40","extension":"png","order_by":33,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1154087,"visible":true,"origin":"","legend":"","description":"","filename":"TextileFiber6.png","url":"https://assets-eu.researchsquare.com/files/rs-7819435/v1/59583d9704db6b4612b46a8b.png"},{"id":100849967,"identity":"86dacf94-6de8-4252-9a1c-24c0738a51d4","added_by":"auto","created_at":"2026-01-22 05:45:39","extension":"png","order_by":34,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1123145,"visible":true,"origin":"","legend":"","description":"","filename":"TextileFiber7.png","url":"https://assets-eu.researchsquare.com/files/rs-7819435/v1/293db6d650205e8395b9c3bc.png"},{"id":100849985,"identity":"8c36d400-5b77-4304-bd56-9977ecda896b","added_by":"auto","created_at":"2026-01-22 05:45:40","extension":"png","order_by":35,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1057080,"visible":true,"origin":"","legend":"","description":"","filename":"TextileFiber8.png","url":"https://assets-eu.researchsquare.com/files/rs-7819435/v1/b40d361560c432419b031c77.png"},{"id":100859450,"identity":"4cca1097-f732-47e3-a1b7-5b6e378a2fa3","added_by":"auto","created_at":"2026-01-22 07:28:10","extension":"png","order_by":36,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1135565,"visible":true,"origin":"","legend":"","description":"","filename":"WoodPlant1.png","url":"https://assets-eu.researchsquare.com/files/rs-7819435/v1/f1ff3d4be1a0563b9da1c2b9.png"},{"id":101202462,"identity":"b1110789-cc61-4713-a27f-54af13e7e2e1","added_by":"auto","created_at":"2026-01-27 09:33:48","extension":"png","order_by":37,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1078675,"visible":true,"origin":"","legend":"","description":"","filename":"WoodPlant2.png","url":"https://assets-eu.researchsquare.com/files/rs-7819435/v1/b4f02efd98a5dfa4a11a7b8f.png"},{"id":100949523,"identity":"e87cfdfa-b6b8-47e3-b7c4-b98a4521939a","added_by":"auto","created_at":"2026-01-23 07:03:58","extension":"png","order_by":38,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":10036,"visible":true,"origin":"","legend":"","description":"","filename":"mask1.png","url":"https://assets-eu.researchsquare.com/files/rs-7819435/v1/3d833682f8553eb869166983.png"},{"id":101296771,"identity":"e3caf85a-7574-45e7-819b-09cde8505a3e","added_by":"auto","created_at":"2026-01-28 09:20:24","extension":"png","order_by":39,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":10151,"visible":true,"origin":"","legend":"","description":"","filename":"mask2.png","url":"https://assets-eu.researchsquare.com/files/rs-7819435/v1/0031be4db1892bcccac5fbda.png"},{"id":100859325,"identity":"88a725af-1853-46bc-b558-97193977e5d5","added_by":"auto","created_at":"2026-01-22 07:26:40","extension":"png","order_by":40,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":9580,"visible":true,"origin":"","legend":"","description":"","filename":"mask3.png","url":"https://assets-eu.researchsquare.com/files/rs-7819435/v1/77f931aa20eb7ef7e7d4f74d.png"},{"id":100849963,"identity":"a247fa12-2560-49e5-a37c-00a478233bb2","added_by":"auto","created_at":"2026-01-22 05:45:39","extension":"png","order_by":41,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":11557,"visible":true,"origin":"","legend":"","description":"","filename":"mask4.png","url":"https://assets-eu.researchsquare.com/files/rs-7819435/v1/aacce3a0fa64e074d206f357.png"},{"id":100850008,"identity":"12bb62a0-837f-42da-b97b-60c52ff49167","added_by":"auto","created_at":"2026-01-22 05:45:42","extension":"png","order_by":42,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":11319,"visible":true,"origin":"","legend":"","description":"","filename":"mask5.png","url":"https://assets-eu.researchsquare.com/files/rs-7819435/v1/a6fbc3092405863024ce597c.png"},{"id":100849976,"identity":"62962d55-5aff-4651-a284-14bfd9eec71b","added_by":"auto","created_at":"2026-01-22 05:45:39","extension":"png","order_by":43,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1341999,"visible":true,"origin":"","legend":"","description":"","filename":"rgbInf2.png","url":"https://assets-eu.researchsquare.com/files/rs-7819435/v1/c79bcb352d704780c133eec4.png"},{"id":100849986,"identity":"bc79ec03-3eec-447e-834d-d9e751b2a6c1","added_by":"auto","created_at":"2026-01-22 05:45:40","extension":"png","order_by":44,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1282651,"visible":true,"origin":"","legend":"","description":"","filename":"rgbL158.png","url":"https://assets-eu.researchsquare.com/files/rs-7819435/v1/5bc298022528c93c33a462d7.png"},{"id":100949565,"identity":"6b1d3e14-0593-4721-b6ba-9fd0f250c239","added_by":"auto","created_at":"2026-01-23 07:04:18","extension":"png","order_by":45,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1358118,"visible":true,"origin":"","legend":"","description":"","filename":"rgbL68.png","url":"https://assets-eu.researchsquare.com/files/rs-7819435/v1/66ea988551df5af30c82d49c.png"},{"id":100859256,"identity":"fd1f5176-83e3-4860-89e1-fc6d1f3ce3e0","added_by":"auto","created_at":"2026-01-22 07:25:52","extension":"png","order_by":46,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1350416,"visible":true,"origin":"","legend":"","description":"","filename":"rgbNL1.png","url":"https://assets-eu.researchsquare.com/files/rs-7819435/v1/9ac296b8a0d51f5c757bcfd5.png"},{"id":100849975,"identity":"79f6a01f-bb5c-4a29-8c64-26d2cf5f3d3d","added_by":"auto","created_at":"2026-01-22 05:45:39","extension":"png","order_by":47,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1916607,"visible":true,"origin":"","legend":"","description":"","filename":"training2.png","url":"https://assets-eu.researchsquare.com/files/rs-7819435/v1/ae8f7bb82d70e68eab0ee17b.png"},{"id":100859395,"identity":"df984b46-f07c-48c1-b016-ae6ba3d90a21","added_by":"auto","created_at":"2026-01-22 07:27:40","extension":"xml","order_by":48,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":142294,"visible":true,"origin":"","legend":"","description":"","filename":"4bcacbe1f5f942efa7c73083fbe0b4141structuring.xml","url":"https://assets-eu.researchsquare.com/files/rs-7819435/v1/1561aa6df0223a033b255c87.xml"},{"id":101751164,"identity":"e5a8f606-82f2-4956-991b-c6a94a3202d5","added_by":"auto","created_at":"2026-02-03 10:17:10","extension":"pdf","order_by":1,"title":"","display":"","copyAsset":false,"role":"manuscript-pdf","size":3852105,"visible":true,"origin":"","legend":"","description":"","filename":"DataSetSIIRI.pdf","url":"https://assets-eu.researchsquare.com/files/rs-7819435/v1_covered_dbec876a-de19-4f8f-b67c-755b3a866e2a.pdf"}],"financialInterests":"No competing interests reported.","formattedTitle":"HSI-AgriFoodAnomaly: A Hyperspectral Dataset for Anomaly Detection in the Agri-Food Industrial Inspection","fulltext":[],"fulltextSource":"","fullText":"","funders":[],"hasAdminPriorityOnWorkflow":false,"hasManuscriptDocX":false,"hasOptedInToPreprint":true,"hasPassedJournalQc":"","hasAnyPriority":false,"hideJournal":true,"highlight":"","institution":"","isAcceptedByJournal":false,"isAuthorSuppliedPdf":true,"isDeskRejected":"","isHiddenFromSearch":false,"isInQc":false,"isInWorkflow":false,"isPdf":true,"isPdfUpToDate":true,"isWithdrawnOrRetracted":false,"journal":{"display":true,"email":"
[email protected]","identity":"researchsquare","isNatureJournal":false,"hasQc":true,"allowDirectSubmit":true,"externalIdentity":"","sideBox":"","snPcode":"","submissionUrl":"/submission","title":"Research Square","twitterHandle":"researchsquare","acdcEnabled":true,"dfaEnabled":false,"editorialSystem":"","reportingPortfolio":"","inReviewEnabled":false,"inReviewRevisionsEnabled":true},"keywords":"","lastPublishedDoi":"10.21203/rs.3.rs-7819435/v1","lastPublishedDoiUrl":"https://doi.org/10.21203/rs.3.rs-7819435/v1","license":{"name":"CC BY 4.0","url":"https://creativecommons.org/licenses/by/4.0/"},"manuscriptAbstract":"\u003cp\u003eEnsuring food safety in agri-food production requires rapid and accurate anomaly detection. Hyperspectral imaging (HSI) is a promising modality for this task due to its rich spectral information; however, progress has been limited by the absence of realistic, publicly available datasets. This work introduces \\textit{HSI-AgriFoodAnomaly}, the first open-access hyperspectral benchmark specifically designed for foreign objects anomaly detection in conveyor-based agri-food inspection. The dataset comprises 147 pixel-wise annotated HSI-cubes acquired under industrial-like conditions, covering the spectral range from 400 nm to 1000 nm and capturing 300 contiguous spectral bands, featuring a diverse set of anomaly categories including plastics, textiles, metals, glass, and paper. It supports multiple vision tasks such as binary classification, object detection, and semantic segmentation. To validate the dataset’s utility, we propose a baseline detection framework based on 2D convolutional neural networks adapted to full-spectrum HSI-cubes (300 bands). Experimental results demonstrate that models trained on HSI-cubes consistently outperform their RGB images, particularly in detecting subtle or previously unseen anomalies. The proposed dataset and baseline provide a solid foundation for advancing HSI-based food quality inspection systems. The dataset and source code are publicly available at: https://github.com/lsllabisen/HSI-AgriFoodAnomaly-Dataset.git.\u003c/p\u003e","manuscriptTitle":"HSI-AgriFoodAnomaly: A Hyperspectral Dataset for Anomaly Detection in the Agri-Food Industrial Inspection","msid":"","msnumber":"","nonDraftVersions":[{"code":1,"date":"2026-01-22 05:45:24","doi":"10.21203/rs.3.rs-7819435/v1","editorialEvents":[{"type":"communityComments","content":0}],"status":"published","journal":{"display":true,"email":"
[email protected]","identity":"researchsquare","isNatureJournal":false,"hasQc":true,"allowDirectSubmit":true,"externalIdentity":"","sideBox":"","snPcode":"","submissionUrl":"/submission","title":"Research Square","twitterHandle":"researchsquare","acdcEnabled":true,"dfaEnabled":false,"editorialSystem":"","reportingPortfolio":"","inReviewEnabled":false,"inReviewRevisionsEnabled":true}}],"origin":"","ownerIdentity":"77e37e56-416c-4ccc-8237-ea10146dc9de","owner":[],"postedDate":"January 22nd, 2026","published":true,"recentEditorialEvents":[],"rejectedJournal":[],"revision":"","amendment":"","status":"posted","subjectAreas":[],"tags":[],"updatedAt":"2026-05-18T16:23:29+00:00","versionOfRecord":[],"versionCreatedAt":"2026-01-22 05:45:24","video":"","vorDoi":"","vorDoiUrl":"","workflowStages":[]},"version":"v1","identity":"rs-7819435","journalConfig":"researchsquare"},"__N_SSP":true},"page":"/article/[identity]/[[...version]]","query":{"redirect":"/article/rs-7819435","identity":"rs-7819435","version":["v1"]},"buildId":"XKTyCvWXoU3ODBz1xrDgd","isFallback":false,"isExperimentalCompile":false,"dynamicIds":[84888],"gssp":true,"scriptLoader":[]}
Text is read by the "Ask this paper" AI Q&A widget below.
Extraction quality varies by source — PMC NXML preserves structure
cleanly, OA-HTML may include some navigation residue, and OA-PDF can
have broken hyphenation. The publisher copy
(via DOI)
is the canonical version.