A Generative-Transformer Framework for SORS-based Butter Adulteration Quantification

preprint OA: closed CC-BY-4.0
📄 Open PDF Full text JSON View at publisher

Abstract

Abstract The widespread use of packaging in commercial food products introduces optical occlusion and spectral mixing that hinder non-destructive internal quality assessment. Therefore, we designed an integrated spatially offset Raman spectroscopy (SORS)-deep learning pipeline and validated its effectiveness using butter-adulteration quantification as a representative through-packaging application. First, adulterated mixtures (10–90% w/w margarine,10% increments), measured both unpackaged and under representative packaging, were acquired with a line-scan SORS system and the resulting scattering regions were subjected to signal-to-noise ratio optimization. Second, an Attention-Gated U-Net (AGUNet) was constructed to generate Raman spectra, aiming to strengthen sparse and low-intensity Raman data. Finally, the processed spectra were fed into a Multiscale Dilated Transformer network (MDTNet), which leverages the receptive-field expansion of dilated convolutions and incorporates a spectral-angle loss to enable accurate quantitative prediction of margarine content. Experiments across four representative packaging types demonstrate that the proposed AGUNet generator followed by the MDTNet regressor outperforms alternative generative strategies and a suite of machine and deep baselines in both spectral-reconstruction fidelity and concentration-estimation accuracy and robustness. Moreover, systematic evaluation of the model's performance under reduced experimental sample sizes demonstrates that synthetically generated spectra can effectively compensate for the loss of information caused by packaging-induced signal attenuation, enabling high predictive accuracy even with substantially fewer experimental samples. Overall, the integrated SORS-deep learning framework provides a practical and scalable route for rapid, non-destructive assessment of product integrity in diverse packaged food systems.
Full text 15,432 characters · extracted from preprint-html · click to expand
A Generative-Transformer Framework for SORS-based Butter Adulteration Quantification | 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 Research Article A Generative-Transformer Framework for SORS-based Butter Adulteration Quantification Zhenfang Liu, Jinlei Li, Zhen Bi, Jungang Lou, Qing Shen, Xiongtao Zhang, and 1 more This is a preprint; it has not been peer reviewed by a journal. https://doi.org/ 10.21203/rs.3.rs-9363961/v1 This work is licensed under a CC BY 4.0 License Status: Under Review Version 1 posted 11 You are reading this latest preprint version Abstract The widespread use of packaging in commercial food products introduces optical occlusion and spectral mixing that hinder non-destructive internal quality assessment. Therefore, we designed an integrated spatially offset Raman spectroscopy (SORS)-deep learning pipeline and validated its effectiveness using butter-adulteration quantification as a representative through-packaging application. First, adulterated mixtures (10–90% w/w margarine,10% increments), measured both unpackaged and under representative packaging, were acquired with a line-scan SORS system and the resulting scattering regions were subjected to signal-to-noise ratio optimization. Second, an Attention-Gated U-Net (AGUNet) was constructed to generate Raman spectra, aiming to strengthen sparse and low-intensity Raman data. Finally, the processed spectra were fed into a Multiscale Dilated Transformer network (MDTNet), which leverages the receptive-field expansion of dilated convolutions and incorporates a spectral-angle loss to enable accurate quantitative prediction of margarine content. Experiments across four representative packaging types demonstrate that the proposed AGUNet generator followed by the MDTNet regressor outperforms alternative generative strategies and a suite of machine and deep baselines in both spectral-reconstruction fidelity and concentration-estimation accuracy and robustness. Moreover, systematic evaluation of the model's performance under reduced experimental sample sizes demonstrates that synthetically generated spectra can effectively compensate for the loss of information caused by packaging-induced signal attenuation, enabling high predictive accuracy even with substantially fewer experimental samples. Overall, the integrated SORS-deep learning framework provides a practical and scalable route for rapid, non-destructive assessment of product integrity in diverse packaged food systems. Spatially Offset Raman Spectroscopy Through-Packaging Detection Butter Adulteration Deep Spectral Generation Multiscale Transformer Regression Full Text Additional Declarations No competing interests reported. Cite Share Download PDF Status: Under Review Version 1 posted Reviews received at journal 06 May, 2026 Reviews received at journal 06 May, 2026 Reviews received at journal 05 May, 2026 Reviewers agreed at journal 01 May, 2026 Reviewers agreed at journal 01 May, 2026 Reviewers agreed at journal 29 Apr, 2026 Reviewers agreed at journal 20 Apr, 2026 Reviewers invited by journal 20 Apr, 2026 Editor assigned by journal 14 Apr, 2026 Submission checks completed at journal 13 Apr, 2026 First submitted to journal 09 Apr, 2026 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-9363961","acceptedTermsAndConditions":true,"allowDirectSubmit":false,"archivedVersions":[],"articleType":"Research Article","associatedPublications":[],"authors":[{"id":626557965,"identity":"7d46191a-e2ee-4712-accc-f3781f90063f","order_by":0,"name":"Zhenfang Liu","email":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAAyAQMAAABI0h/eAAAABlBMVEX///8AAABVwtN+AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAA0ElEQVRIiWNgGAWjYBACNv7m4z8+VDAwG4B4PMRo4Zc4liA54wwpWiQbcgykedsYGIjXYnDggIEB77w6dnOJBMYHb9sY5M0JajnckJAguY2N2XJGArPh3DYGw50NhG05cMBwGw+zwY0ENpALEwwOENSS2NiQOEcCpIX9N1FaJBuSmRkONhiAbWEmSgswkNkYG44lMBucedgsOeechOEGQlrY+Pu/Mf+pqUs2OJ588MObMht5grbAQDIDA2MDkJYgUj0Q2BGvdBSMglEwCkYcAACWED7uCVHPFAAAAABJRU5ErkJggg==","orcid":"","institution":"Huzhou University","correspondingAuthor":true,"prefix":"","firstName":"Zhenfang","middleName":"","lastName":"Liu","suffix":""},{"id":626557966,"identity":"64c13ffb-4639-4877-b6af-f97ae2cbd056","order_by":1,"name":"Jinlei Li","email":"","orcid":"","institution":"Huzhou University","correspondingAuthor":false,"prefix":"","firstName":"Jinlei","middleName":"","lastName":"Li","suffix":""},{"id":626557967,"identity":"0c9d4b10-5c5c-40f4-a1f6-b731b2d72912","order_by":2,"name":"Zhen Bi","email":"","orcid":"","institution":"Huzhou University","correspondingAuthor":false,"prefix":"","firstName":"Zhen","middleName":"","lastName":"Bi","suffix":""},{"id":626557968,"identity":"be107c50-075a-4f6c-aab4-6f9717c041f9","order_by":3,"name":"Jungang Lou","email":"","orcid":"","institution":"Huzhou University","correspondingAuthor":false,"prefix":"","firstName":"Jungang","middleName":"","lastName":"Lou","suffix":""},{"id":626557969,"identity":"6754cd2e-997c-430b-9e96-0510fdd53e8e","order_by":4,"name":"Qing Shen","email":"","orcid":"","institution":"Huzhou University","correspondingAuthor":false,"prefix":"","firstName":"Qing","middleName":"","lastName":"Shen","suffix":""},{"id":626557970,"identity":"677b12e9-99e1-4eea-8f08-ca5e4d3759f2","order_by":5,"name":"Xiongtao Zhang","email":"","orcid":"","institution":"Huzhou University","correspondingAuthor":false,"prefix":"","firstName":"Xiongtao","middleName":"","lastName":"Zhang","suffix":""},{"id":626557971,"identity":"624bc7ff-aceb-4760-b361-3eab9c4071d9","order_by":6,"name":"Xin Wang","email":"","orcid":"","institution":"Huaiyin Normal University","correspondingAuthor":false,"prefix":"","firstName":"Xin","middleName":"","lastName":"Wang","suffix":""}],"badges":[],"createdAt":"2026-04-09 06:23:30","currentVersionCode":1,"declarations":"","doi":"10.21203/rs.3.rs-9363961/v1","doiUrl":"https://doi.org/10.21203/rs.3.rs-9363961/v1","draftVersion":[],"editorialEvents":[],"editorialNote":"","failedWorkflow":false,"files":[{"id":108006754,"identity":"b964531a-a247-40e2-a22d-f5ac18a4ceda","added_by":"auto","created_at":"2026-04-28 12:56:45","extension":"pdf","order_by":1,"title":"","display":"","copyAsset":false,"role":"manuscript-pdf","size":1857090,"visible":true,"origin":"","legend":"","description":"","filename":"Manuscript.pdf","url":"https://assets-eu.researchsquare.com/files/rs-9363961/v1_covered_4a351649-2eb6-4f7b-9bd8-bf7b36290daf.pdf"}],"financialInterests":"No competing interests reported.","formattedTitle":"A Generative-Transformer Framework for SORS-based Butter Adulteration Quantification","fulltext":[],"fulltextSource":"","fullText":"","funders":[],"hasAdminPriorityOnWorkflow":false,"hasManuscriptDocX":false,"hasOptedInToPreprint":true,"hasPassedJournalQc":"","hasAnyPriority":false,"hideJournal":false,"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":"food-and-bioprocess-technology","isNatureJournal":false,"hasQc":true,"allowDirectSubmit":false,"externalIdentity":"","sideBox":"Learn more about [Food and Bioprocess Technology](https://www.springer.com/journal/11947)","snPcode":"11947","submissionUrl":"https://submission.nature.com/new-submission/11947/3","title":"Food and Bioprocess Technology","twitterHandle":"","acdcEnabled":true,"dfaEnabled":true,"editorialSystem":"stoa","reportingPortfolio":"Springer Hybrid","inReviewEnabled":true,"inReviewRevisionsEnabled":false},"keywords":"Spatially Offset Raman Spectroscopy, Through-Packaging Detection, Butter Adulteration, Deep Spectral Generation, Multiscale Transformer Regression","lastPublishedDoi":"10.21203/rs.3.rs-9363961/v1","lastPublishedDoiUrl":"https://doi.org/10.21203/rs.3.rs-9363961/v1","license":{"name":"CC BY 4.0","url":"https://creativecommons.org/licenses/by/4.0/"},"manuscriptAbstract":"\u003cp\u003eThe widespread use of packaging in commercial food products introduces optical occlusion and spectral mixing that hinder non-destructive internal quality assessment. Therefore, we designed an integrated spatially offset Raman spectroscopy (SORS)-deep learning pipeline and validated its effectiveness using butter-adulteration quantification as a representative through-packaging application. First, adulterated mixtures (10\u0026ndash;90% w/w margarine,10% increments), measured both unpackaged and under representative packaging, were acquired with a line-scan SORS system and the resulting scattering regions were subjected to signal-to-noise ratio optimization. Second, an Attention-Gated U-Net (AGUNet) was constructed to generate Raman spectra, aiming to strengthen sparse and low-intensity Raman data. Finally, the processed spectra were fed into a Multiscale Dilated Transformer network (MDTNet), which leverages the receptive-field expansion of dilated convolutions and incorporates a spectral-angle loss to enable accurate quantitative prediction of margarine content. Experiments across four representative packaging types demonstrate that the proposed AGUNet generator followed by the MDTNet regressor outperforms alternative generative strategies and a suite of machine and deep baselines in both spectral-reconstruction fidelity and concentration-estimation accuracy and robustness. Moreover, systematic evaluation of the model's performance under reduced experimental sample sizes demonstrates that synthetically generated spectra can effectively compensate for the loss of information caused by packaging-induced signal attenuation, enabling high predictive accuracy even with substantially fewer experimental samples. Overall, the integrated SORS-deep learning framework provides a practical and scalable route for rapid, non-destructive assessment of product integrity in diverse packaged food systems.\u003c/p\u003e","manuscriptTitle":"A Generative-Transformer Framework for SORS-based Butter Adulteration Quantification","msid":"","msnumber":"","nonDraftVersions":[{"code":1,"date":"2026-04-28 05:14:24","doi":"10.21203/rs.3.rs-9363961/v1","editorialEvents":[{"type":"communityComments","content":0},{"type":"editorInvitedReview","content":"","date":"2026-05-06T17:33:20+00:00","index":"hide","fulltext":""},{"type":"editorInvitedReview","content":"","date":"2026-05-06T11:01:04+00:00","index":"hide","fulltext":""},{"type":"editorInvitedReview","content":"","date":"2026-05-05T13:40:40+00:00","index":"hide","fulltext":""},{"type":"reviewerAgreed","content":"38139310000942243518378974782131324248","date":"2026-05-01T14:26:32+00:00","index":"hide","fulltext":""},{"type":"reviewerAgreed","content":"31379705325719278769926882900809949896","date":"2026-05-01T06:37:43+00:00","index":"hide","fulltext":""},{"type":"reviewerAgreed","content":"202152979861396258322246329872027227278","date":"2026-04-29T13:10:15+00:00","index":"hide","fulltext":""},{"type":"reviewerAgreed","content":"38524836928099521879193223076054567154","date":"2026-04-20T07:58:44+00:00","index":"hide","fulltext":""},{"type":"reviewersInvited","content":"","date":"2026-04-20T07:33:08+00:00","index":"","fulltext":""},{"type":"editorAssigned","content":"","date":"2026-04-14T08:19:40+00:00","index":"","fulltext":""},{"type":"checksComplete","content":"","date":"2026-04-14T01:15:00+00:00","index":"","fulltext":""},{"type":"submitted","content":"Food and Bioprocess Technology","date":"2026-04-09T06:15:02+00:00","index":"","fulltext":""}],"status":"published","journal":{"display":true,"email":"[email protected]","identity":"food-and-bioprocess-technology","isNatureJournal":false,"hasQc":true,"allowDirectSubmit":false,"externalIdentity":"","sideBox":"Learn more about [Food and Bioprocess Technology](https://www.springer.com/journal/11947)","snPcode":"11947","submissionUrl":"https://submission.nature.com/new-submission/11947/3","title":"Food and Bioprocess Technology","twitterHandle":"","acdcEnabled":true,"dfaEnabled":true,"editorialSystem":"stoa","reportingPortfolio":"Springer Hybrid","inReviewEnabled":true,"inReviewRevisionsEnabled":false}}],"origin":"","ownerIdentity":"fd281cfa-9b2b-4607-9115-df3623a9a7fc","owner":[],"postedDate":"April 28th, 2026","published":true,"recentEditorialEvents":[{"type":"editorInvitedReview","content":"","date":"2026-05-06T17:33:20+00:00","index":47,"fulltext":""},{"type":"editorInvitedReview","content":"","date":"2026-05-06T11:01:04+00:00","index":46,"fulltext":""},{"type":"editorInvitedReview","content":"","date":"2026-05-05T13:40:40+00:00","index":45,"fulltext":""},{"type":"reviewerAgreed","content":"38139310000942243518378974782131324248","date":"2026-05-01T14:26:32+00:00","index":42,"fulltext":""},{"type":"reviewerAgreed","content":"31379705325719278769926882900809949896","date":"2026-05-01T06:37:43+00:00","index":41,"fulltext":""},{"type":"reviewerAgreed","content":"202152979861396258322246329872027227278","date":"2026-04-29T13:10:15+00:00","index":38,"fulltext":""}],"rejectedJournal":[],"revision":"","amendment":"","status":"under-review","subjectAreas":[],"tags":[],"updatedAt":"2026-04-28T05:14:25+00:00","versionOfRecord":[],"versionCreatedAt":"2026-04-28 05:14:24","video":"","vorDoi":"","vorDoiUrl":"","workflowStages":[]},"version":"v1","identity":"rs-9363961","journalConfig":"researchsquare"},"__N_SSP":true},"page":"/article/[identity]/[[...version]]","query":{"redirect":"/article/rs-9363961","identity":"rs-9363961","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.

My notes (saved in your browser only)

Ask this paper AI returns verbatim quotes from the full text · source: preprint-html

Answers must be backed by verbatim quotes from this paper's full text. Hallucinated quotes are dropped automatically; if no verbatim passage answers the question, we say so. How this works

Citation neighborhood (no data yet)

We don't have any in-corpus citations linked to this paper yet. This is a recent paper (2026) — citers typically take a year or two to land, and the OpenAlex reference graph may still be filling in.

Source provenance

europepmc
last seen: 2026-05-20T01:45:00.602351+00:00
unpaywall
last seen: 2026-05-30T02:00:01.510937+00:00
License: CC-BY-4.0