A Novel Sentiment Correlation-based Method with Dual Transformer Model for Stock Price Prediction | 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 Novel Sentiment Correlation-based Method with Dual Transformer Model for Stock Price Prediction Qizhao Chen, Hiroaki Kawashima This is a preprint; it has not been peer reviewed by a journal. https://doi.org/ 10.21203/rs.3.rs-6479946/v2 This work is licensed under a CC BY 4.0 License Status: Published Journal Publication published 02 Dec, 2025 Read the published version in International Journal of Data Science and Analytics → Version 2 posted 7 You are reading this latest preprint version Show more versions Abstract In real-world financial markets, a company's stock performance is often influenced by its competitors, partners, and other connected firms. However, traditional sentiment-based approaches typically focus only on the target company's sentiment, overlooking the broader network of influence. To address this limitation, this paper proposes a Dual Transformer architecture that integrates sentiment signals from connected companies to enhance prediction accuracy. This approach aims to bridge a critical gap in financial sentiment analysis by capturing inter-company relationships and their impact on stock price movements. The Dual Transformer comprises two transformer structures, the Enhancement Transformer and the Forecast Transformer. The Enhancement Transformer is used to enhance the correlation strengths between related companies, while the Forecast Transformer is used for stock price forecasting. Eight companies from various industries and financial markets are selected for analysis. The model utilizes the polarity scores of these related companies, combined with historical closing prices from 2015 to 2024, to forecast the next day's closing price. Prediction performance is evaluated using the Mean Squared Error (MSE). Experimental results demonstrate that incorporating the news sentiment of related companies improves the prediction of the target company’s stock price when using the proposed Dual Transformer model. In addition, the Dual Transformer model can outperform existing models such as Temporal Fusion Transformer, N-Beats, Informer and LSTM by achieving consistently lower MSE values across all eight companies. Full Text Additional Declarations No competing interests reported. Cite Share Download PDF Status: Published Journal Publication published 02 Dec, 2025 Read the published version in International Journal of Data Science and Analytics → Version 2 posted Editorial decision: Accepted 16 Sep, 2025 Reviews received at journal 06 Aug, 2025 Reviewers agreed at journal 13 Jul, 2025 Reviewers agreed at journal 09 Jul, 2025 Reviewers invited by journal 09 Jul, 2025 Submission checks completed at journal 09 Jul, 2025 First submitted to journal 08 Jul, 2025 You are reading this latest preprint version Show more versions 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-6479946","acceptedTermsAndConditions":true,"allowDirectSubmit":false,"archivedVersions":[],"articleType":"Research Article","associatedPublications":[],"authors":[{"id":484636315,"identity":"1ce08953-37a3-4d6a-970c-856bfe5e9b24","order_by":0,"name":"Qizhao Chen","email":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAAyAQMAAABI0h/eAAAABlBMVEX///8AAABVwtN+AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAA+0lEQVRIiWNgGAWjYBACAxDBA2Gw//j4zwbIZGw8QKwWBskZbGkgLQ3Ea5HmYTsMFsWrxVz68LMHbyruyJuznz1gOIPnvN3a9sNAW2psonFpsexLMzecc+aZ4c6evISEDxK3k7edSQRqOZaW24DLYWcYzKR52w4nGBzIMTg4w+B2stkBoBbGhsN4tLB/g2g5/8awmSfhXLLZ+YeEtPBAbbmRY8zMc+CAndkNArZY9vCUSc45c9hww403ZowzG5ITzG4AbUnA4xdzHvZtEm8qDssbnM8xY/jYYGdvdj794YMPNTY4tWCARLDKBGKVg4A9KYpHwSgYBaNgZAAAtWll8YGAmvIAAAAASUVORK5CYII=","orcid":"","institution":"University of Hyogo","correspondingAuthor":true,"prefix":"","firstName":"Qizhao","middleName":"","lastName":"Chen","suffix":""},{"id":484636316,"identity":"03dd7937-f03b-4db9-940f-d363a86c2a3d","order_by":1,"name":"Hiroaki Kawashima","email":"","orcid":"","institution":"University of Hyogo","correspondingAuthor":false,"prefix":"","firstName":"Hiroaki","middleName":"","lastName":"Kawashima","suffix":""}],"badges":[],"createdAt":"2025-04-18 15:08:07","currentVersionCode":2,"declarations":"","doi":"10.21203/rs.3.rs-6479946/v2","doiUrl":"https://doi.org/10.21203/rs.3.rs-6479946/v2","draftVersion":[],"editorialEvents":[{"content":"https://doi.org/10.1007/s41060-025-00932-7","type":"published","date":"2025-12-02T15:58:25+00:00"}],"editorialNote":"","failedWorkflow":false,"files":[{"id":97724160,"identity":"c615c305-2848-4cfa-b1ad-674fb88e3f76","added_by":"auto","created_at":"2025-12-08 16:12:11","extension":"pdf","order_by":1,"title":"","display":"","copyAsset":false,"role":"manuscript-pdf","size":1642917,"visible":true,"origin":"","legend":"","description":"","filename":"manuscript.pdf","url":"https://assets-eu.researchsquare.com/files/rs-6479946/v2_covered_6bad6650-63d1-482a-9e0a-bc4e50a86eb5.pdf"}],"financialInterests":"No competing interests reported.","formattedTitle":"A Novel Sentiment Correlation-based Method with Dual Transformer Model for Stock Price Prediction","fulltext":[],"fulltextSource":"","fullText":"","funders":[],"hasAdminPriorityOnWorkflow":false,"hasManuscriptDocX":false,"hasOptedInToPreprint":true,"hasPassedJournalQc":"","hasAnyPriority":false,"hideJournal":false,"highlight":"","institution":"","isAcceptedByJournal":true,"isAuthorSuppliedPdf":true,"isDeskRejected":"","isHiddenFromSearch":false,"isInQc":false,"isInWorkflow":false,"isPdf":true,"isPdfUpToDate":true,"isWithdrawnOrRetracted":false,"journal":{"display":true,"email":"
[email protected]","identity":"international-journal-of-data-science-and-analytics","isNatureJournal":false,"hasQc":true,"allowDirectSubmit":false,"externalIdentity":"jdsa","sideBox":"Learn more about [International Journal of Data Science and Analytics](http://link.springer.com/journal/41060)","snPcode":"41060","submissionUrl":"https://submission.nature.com/new-submission/41060/3","title":"International Journal of Data Science and Analytics","twitterHandle":"","acdcEnabled":true,"dfaEnabled":true,"editorialSystem":"em","reportingPortfolio":"Springer Hybrid","inReviewEnabled":true,"inReviewRevisionsEnabled":false},"keywords":"","lastPublishedDoi":"10.21203/rs.3.rs-6479946/v2","lastPublishedDoiUrl":"https://doi.org/10.21203/rs.3.rs-6479946/v2","license":{"name":"CC BY 4.0","url":"https://creativecommons.org/licenses/by/4.0/"},"manuscriptAbstract":"In real-world financial markets, a company's stock performance is often influenced by its competitors, partners, and other connected firms. However, traditional sentiment-based approaches typically focus only on the target company's sentiment, overlooking the broader network of influence. To address this limitation, this paper proposes a Dual Transformer architecture that integrates sentiment signals from connected companies to enhance prediction accuracy. This approach aims to bridge a critical gap in financial sentiment analysis by capturing inter-company relationships and their impact on stock price movements. The Dual Transformer comprises two transformer structures, the Enhancement Transformer and the Forecast Transformer. The Enhancement Transformer is used to enhance the correlation strengths between related companies, while the Forecast Transformer is used for stock price forecasting. Eight companies from various industries and financial markets are selected for analysis. The model utilizes the polarity scores of these related companies, combined with historical closing prices from 2015 to 2024, to forecast the next day's closing price. Prediction performance is evaluated using the Mean Squared Error (MSE). Experimental results demonstrate that incorporating the news sentiment of related companies improves the prediction of the target company’s stock price when using the proposed Dual Transformer model. In addition, the Dual Transformer model can outperform existing models such as Temporal Fusion Transformer, N-Beats, Informer and LSTM by achieving consistently lower MSE values across all eight companies.","manuscriptTitle":"A Novel Sentiment Correlation-based Method with Dual Transformer Model for Stock Price Prediction","msid":"","msnumber":"","nonDraftVersions":[{"code":2,"date":"2025-07-17 20:21:50","doi":"10.21203/rs.3.rs-6479946/v2","editorialEvents":[{"type":"communityComments","content":0},{"type":"decision","content":"Accepted","date":"2025-09-16T08:13:01+00:00","index":"","fulltext":""},{"type":"editorInvitedReview","content":"","date":"2025-08-06T08:16:22+00:00","index":"hide","fulltext":""},{"type":"reviewerAgreed","content":"239641498491939230285436374080934236429","date":"2025-07-13T10:20:31+00:00","index":"hide","fulltext":""},{"type":"reviewerAgreed","content":"93259855679636886995421304886063581938","date":"2025-07-10T01:35:32+00:00","index":"hide","fulltext":""},{"type":"reviewersInvited","content":"","date":"2025-07-10T01:08:08+00:00","index":"","fulltext":""},{"type":"checksComplete","content":"","date":"2025-07-09T07:34:51+00:00","index":"","fulltext":""},{"type":"submitted","content":"International Journal of Data Science and Analytics","date":"2025-07-09T02:07:17+00:00","index":"","fulltext":""}],"status":"published","journal":{"display":true,"email":"
[email protected]","identity":"international-journal-of-data-science-and-analytics","isNatureJournal":false,"hasQc":true,"allowDirectSubmit":false,"externalIdentity":"jdsa","sideBox":"Learn more about [International Journal of Data Science and Analytics](http://link.springer.com/journal/41060)","snPcode":"41060","submissionUrl":"https://submission.nature.com/new-submission/41060/3","title":"International Journal of Data Science and Analytics","twitterHandle":"","acdcEnabled":true,"dfaEnabled":true,"editorialSystem":"em","reportingPortfolio":"Springer Hybrid","inReviewEnabled":true,"inReviewRevisionsEnabled":false}},{"code":1,"date":"2025-05-12 08:54:32","doi":"10.21203/rs.3.rs-6479946/v1","editorialEvents":[{"type":"communityComments","content":0},{"type":"decision","content":"Revision requested","date":"2025-06-16T00:57:33+00:00","index":"","fulltext":""},{"type":"editorInvitedReview","content":"","date":"2025-06-13T08:24:10+00:00","index":"hide","fulltext":""},{"type":"editorInvitedReview","content":"","date":"2025-05-14T08:18:15+00:00","index":"hide","fulltext":""},{"type":"reviewerAgreed","content":"239641498491939230285436374080934236429","date":"2025-05-08T06:31:18+00:00","index":"hide","fulltext":""},{"type":"reviewerAgreed","content":"93259855679636886995421304886063581938","date":"2025-05-07T11:13:33+00:00","index":"hide","fulltext":""},{"type":"reviewersInvited","content":"","date":"2025-05-07T09:37:32+00:00","index":"","fulltext":""},{"type":"editorAssigned","content":"","date":"2025-05-05T20:31:38+00:00","index":"","fulltext":""},{"type":"checksComplete","content":"","date":"2025-04-21T09:47:26+00:00","index":"","fulltext":""},{"type":"submitted","content":"International Journal of Data Science and Analytics","date":"2025-04-18T14:54:51+00:00","index":"","fulltext":""}],"status":"published","journal":{"display":true,"email":"
[email protected]","identity":"international-journal-of-data-science-and-analytics","isNatureJournal":false,"hasQc":true,"allowDirectSubmit":false,"externalIdentity":"jdsa","sideBox":"Learn more about [International Journal of Data Science and Analytics](http://link.springer.com/journal/41060)","snPcode":"41060","submissionUrl":"https://submission.nature.com/new-submission/41060/3","title":"International Journal of Data Science and Analytics","twitterHandle":"","acdcEnabled":true,"dfaEnabled":true,"editorialSystem":"em","reportingPortfolio":"Springer Hybrid","inReviewEnabled":true,"inReviewRevisionsEnabled":false}}],"origin":"","ownerIdentity":"2632afae-e9ee-4516-a549-ec88892705da","owner":[],"postedDate":"July 17th, 2025","published":true,"recentEditorialEvents":[],"rejectedJournal":[],"revision":"","amendment":"","status":"published-in-journal","subjectAreas":[],"tags":[],"updatedAt":"2025-12-08T16:07:52+00:00","versionOfRecord":{"articleIdentity":"rs-6479946","link":"https://doi.org/10.1007/s41060-025-00932-7","journal":{"identity":"international-journal-of-data-science-and-analytics","isVorOnly":false,"title":"International Journal of Data Science and Analytics"},"publishedOn":"2025-12-02 15:58:25","publishedOnDateReadable":"December 2nd, 2025"},"versionCreatedAt":"2025-07-17 20:21:50","video":"","vorDoi":"10.1007/s41060-025-00932-7","vorDoiUrl":"https://doi.org/10.1007/s41060-025-00932-7","workflowStages":[]},"version":"v2","identity":"rs-6479946","journalConfig":"researchsquare"},"__N_SSP":true},"page":"/article/[identity]/[[...version]]","query":{"redirect":"/article/rs-6479946","identity":"rs-6479946","version":["v2"]},"buildId":"8U1c8b4HqxoKbykW_rLl7","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.