{"paper_id":"28d96cbc-d8ad-4055-80f2-063ca3dcfb35","body_text":"Real-Time Hand Movement Detection using a Custom-Built EEG System | 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 Article Real-Time Hand Movement Detection using a Custom-Built EEG System Nashwa Mosaad, Mohamad K. Refai, Khalid A. Elshafey, Basim M. Ayoub This is a preprint; it has not been peer reviewed by a journal. https://doi.org/ 10.21203/rs.3.rs-8264438/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 Spinal cord injury causes great disruption of voluntary hand movement, with consequent restrictions in functional independence. This work presents a real-time EEG-based detection system for hand opening and closing movements using a custom-built low-cost acquisition device. The proposed system includes eight EEG channels over motor-related cortical regions, amplified by AD620 instrumentation amplifiers, filtered through analog stages, and digitized with a 16-bit ADS1115 converter. EEG signals were recorded from healthy volunteers who continuously performed forced hand-opening and hand-closing tasks to capture clear cortical patterns associated with both states. Preprocessing included the reduction of artifacts, normalization, and feature selection based on signal variance to enhance the signal. Afterwards, a transformer-based deep learning model was developed to identify the hand state in real time with high accuracy and good temporal stability of the results. The results demonstrate that the combination of lightweight hardware with advanced neural network models allows for reliable detection of motor intent from non-invasive EEG signals. The results showed that the system achieved an accuracy of 97.78% with a latency less than 200 ms. This approach leads to low-cost neurotechnology for real-time assistive applications, pointing out the potentiality of its adaptation for restoring hand functionality in individuals with SCI. Biological sciences/Biological techniques Physical sciences/Engineering Biological sciences/Neuroscience Spinal cord injury (SCI) Brain-Computer Interface (BCI) Extreme Gradient Boosting (XGBoost) SMOTE: Synthetic Minority Over-sampling Technique Motor Imagery Electroencephalogram (EEG) and Analog to Digital Converter (ADC) Full Text Additional Declarations No competing interests reported. Supplementary Files supplementaryfile.docx 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-8264438\",\"acceptedTermsAndConditions\":true,\"allowDirectSubmit\":true,\"archivedVersions\":[],\"articleType\":\"Article\",\"associatedPublications\":[],\"authors\":[{\"id\":563508129,\"identity\":\"c98c4008-6515-4c1f-b60a-8b0806d9549c\",\"order_by\":0,\"name\":\"Nashwa Mosaad\",\"email\":\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAAyAQMAAABI0h/eAAAABlBMVEX///8AAABVwtN+AAAACXBIWXMAAA7EAAAOxAGVKw4bAAABPElEQVRIie2QMWvCUBDH7xGIywXXJyn2KzwJqIWAX+WJkC6vIAilg4NQiEvQNcWhX6FS6JwSMIvUNSVQKoF0cbAI0sXQSKFUkrZ06/B+w3HH8eP4H4BE8j9RPzsKFxTJcADKx8wPtt8oc/NIcby/KMS2zJLLf1YapSCJsX9XPR77yxBUH7WrON50+09QLgkG6/OccuKIhoGzyGChZTQBfaxMLGa4sx5UnBUj7kNOYZ5QdaFG7RsKdQrUx9qEsw6qHFgomKLZeWXxkugijdrX42BLgfnYegzWPqYcWntlV6CEvK6f2VF74InsCreQuFi71OzsCs0UUqSs6vputM8iek3umUgc0VO0EUc6T7r3TkGWxWlScbdR9rFgGr6mtEWGwe0Gt7xaHnamz2/5jx3Cv/S4L94vgkQikUiKeQf3q2yiSUKI5QAAAABJRU5ErkJggg==\",\"orcid\":\"\",\"institution\":\"Al-Azhar University\",\"correspondingAuthor\":true,\"prefix\":\"\",\"firstName\":\"Nashwa\",\"middleName\":\"\",\"lastName\":\"Mosaad\",\"suffix\":\"\"},{\"id\":563508130,\"identity\":\"16fa1f5b-e746-4bbf-9472-9dc938693ab2\",\"order_by\":1,\"name\":\"Mohamad K. Refai\",\"email\":\"\",\"orcid\":\"\",\"institution\":\"Al-Azhar University\",\"correspondingAuthor\":false,\"prefix\":\"\",\"firstName\":\"Mohamad\",\"middleName\":\"K.\",\"lastName\":\"Refai\",\"suffix\":\"\"},{\"id\":563508134,\"identity\":\"bcd2a7ab-b6e6-4256-ab0f-dd759ace4099\",\"order_by\":2,\"name\":\"Khalid A. Elshafey\",\"email\":\"\",\"orcid\":\"\",\"institution\":\"Al-Azhar University\",\"correspondingAuthor\":false,\"prefix\":\"\",\"firstName\":\"Khalid\",\"middleName\":\"A.\",\"lastName\":\"Elshafey\",\"suffix\":\"\"},{\"id\":563508135,\"identity\":\"b8d3b1c3-fdc5-4a53-94c4-f3c6558ad86c\",\"order_by\":3,\"name\":\"Basim M. Ayoub\",\"email\":\"\",\"orcid\":\"\",\"institution\":\"Cairo University\",\"correspondingAuthor\":false,\"prefix\":\"\",\"firstName\":\"Basim\",\"middleName\":\"M.\",\"lastName\":\"Ayoub\",\"suffix\":\"\"}],\"badges\":[],\"createdAt\":\"2025-12-02 23:08:16\",\"currentVersionCode\":1,\"declarations\":\"\",\"doi\":\"10.21203/rs.3.rs-8264438/v1\",\"doiUrl\":\"https://doi.org/10.21203/rs.3.rs-8264438/v1\",\"draftVersion\":[],\"editorialEvents\":[],\"editorialNote\":\"\",\"failedWorkflow\":false,\"files\":[{\"id\":99308659,\"identity\":\"db9b16d8-4a8e-4f9d-a159-f4ee711650cc\",\"added_by\":\"auto\",\"created_at\":\"2025-12-31 16:08:53\",\"extension\":\"docx\",\"order_by\":0,\"title\":\"\",\"display\":\"\",\"copyAsset\":false,\"role\":\"acdc-reference\",\"size\":3431671,\"visible\":true,\"origin\":\"\",\"legend\":\"\",\"description\":\"\",\"filename\":\"Nashwacompletefulldesignforscientificreports.docx\",\"url\":\"https://assets-eu.researchsquare.com/files/rs-8264438/v1/db6d7a761fafec35fffd7f0a.docx\"},{\"id\":99309222,\"identity\":\"153b5022-131d-4abf-bac8-77244f2d8582\",\"added_by\":\"auto\",\"created_at\":\"2025-12-31 16:09:55\",\"extension\":\"json\",\"order_by\":1,\"title\":\"\",\"display\":\"\",\"copyAsset\":false,\"role\":\"acdc-reference\",\"size\":7164,\"visible\":true,\"origin\":\"\",\"legend\":\"\",\"description\":\"\",\"filename\":\"4bc765abd50f41369a50ace80a6748e0.json\",\"url\":\"https://assets-eu.researchsquare.com/files/rs-8264438/v1/0e3ac95fbfa0d6120e274d2b.json\"},{\"id\":98866459,\"identity\":\"fcacc0ee-58f0-4b3e-af5d-c23b057e11a4\",\"added_by\":\"auto\",\"created_at\":\"2025-12-23 10:58:28\",\"extension\":\"docx\",\"order_by\":2,\"title\":\"\",\"display\":\"\",\"copyAsset\":false,\"role\":\"acdc-reference\",\"size\":5627372,\"visible\":true,\"origin\":\"\",\"legend\":\"\",\"description\":\"\",\"filename\":\"supplementaryfile.docx\",\"url\":\"https://assets-eu.researchsquare.com/files/rs-8264438/v1/a136bfe78a4e62d251d61590.docx\"},{\"id\":99308800,\"identity\":\"46c1ed85-371f-453c-ab13-a34571347e81\",\"added_by\":\"auto\",\"created_at\":\"2025-12-31 16:09:14\",\"extension\":\"xml\",\"order_by\":3,\"title\":\"\",\"display\":\"\",\"copyAsset\":false,\"role\":\"acdc-reference\",\"size\":139940,\"visible\":true,\"origin\":\"\",\"legend\":\"\",\"description\":\"\",\"filename\":\"4bc765abd50f41369a50ace80a6748e01enriched.xml\",\"url\":\"https://assets-eu.researchsquare.com/files/rs-8264438/v1/9357b3d40764953162cc284c.xml\"},{\"id\":98866444,\"identity\":\"f375f441-c820-4446-81fc-21a6d087e815\",\"added_by\":\"auto\",\"created_at\":\"2025-12-23 10:58:28\",\"extension\":\"png\",\"order_by\":4,\"title\":\"\",\"display\":\"\",\"copyAsset\":false,\"role\":\"acdc-reference\",\"size\":40750,\"visible\":true,\"origin\":\"\",\"legend\":\"\",\"description\":\"\",\"filename\":\"floatimage1.png\",\"url\":\"https://assets-eu.researchsquare.com/files/rs-8264438/v1/39f558bb34a0646ca7ed2339.png\"},{\"id\":99309122,\"identity\":\"321e15ce-0bb3-448b-9d9a-fd0d5dad8e74\",\"added_by\":\"auto\",\"created_at\":\"2025-12-31 16:09:46\",\"extension\":\"jpeg\",\"order_by\":5,\"title\":\"\",\"display\":\"\",\"copyAsset\":false,\"role\":\"acdc-reference\",\"size\":840704,\"visible\":true,\"origin\":\"\",\"legend\":\"\",\"description\":\"\",\"filename\":\"floatimage10.jpeg\",\"url\":\"https://assets-eu.researchsquare.com/files/rs-8264438/v1/6db3eb9446d575ce3e7416d5.jpeg\"},{\"id\":99309000,\"identity\":\"7722a664-bdff-4b24-af0f-9ec71ae8efb5\",\"added_by\":\"auto\",\"created_at\":\"2025-12-31 16:09:38\",\"extension\":\"png\",\"order_by\":6,\"title\":\"\",\"display\":\"\",\"copyAsset\":false,\"role\":\"acdc-reference\",\"size\":390670,\"visible\":true,\"origin\":\"\",\"legend\":\"\",\"description\":\"\",\"filename\":\"floatimage11.png\",\"url\":\"https://assets-eu.researchsquare.com/files/rs-8264438/v1/bb1fad625979880ef9e931bb.png\"},{\"id\":98866448,\"identity\":\"a82e794d-5829-4793-b521-f9778e48bc54\",\"added_by\":\"auto\",\"created_at\":\"2025-12-23 10:58:28\",\"extension\":\"png\",\"order_by\":7,\"title\":\"\",\"display\":\"\",\"copyAsset\":false,\"role\":\"acdc-reference\",\"size\":334888,\"visible\":true,\"origin\":\"\",\"legend\":\"\",\"description\":\"\",\"filename\":\"floatimage12.png\",\"url\":\"https://assets-eu.researchsquare.com/files/rs-8264438/v1/e3bcc43f6251d3b1a71eae9a.png\"},{\"id\":99308649,\"identity\":\"f59704ff-d5a8-4689-8b9a-07d421c775df\",\"added_by\":\"auto\",\"created_at\":\"2025-12-31 16:08:53\",\"extension\":\"png\",\"order_by\":8,\"title\":\"\",\"display\":\"\",\"copyAsset\":false,\"role\":\"acdc-reference\",\"size\":22185,\"visible\":true,\"origin\":\"\",\"legend\":\"\",\"description\":\"\",\"filename\":\"floatimage13.png\",\"url\":\"https://assets-eu.researchsquare.com/files/rs-8264438/v1/1bc9f13022e48d561adaf9a3.png\"},{\"id\":99309137,\"identity\":\"5ebb08ed-aa9d-43ba-a52e-850c84ae0bdd\",\"added_by\":\"auto\",\"created_at\":\"2025-12-31 16:09:47\",\"extension\":\"png\",\"order_by\":9,\"title\":\"\",\"display\":\"\",\"copyAsset\":false,\"role\":\"acdc-reference\",\"size\":318491,\"visible\":true,\"origin\":\"\",\"legend\":\"\",\"description\":\"\",\"filename\":\"floatimage14.png\",\"url\":\"https://assets-eu.researchsquare.com/files/rs-8264438/v1/467ee2963e885c8ef7426df3.png\"},{\"id\":98866445,\"identity\":\"3729eaa4-29bf-4f2e-9f3b-7f93ac1a6681\",\"added_by\":\"auto\",\"created_at\":\"2025-12-23 10:58:28\",\"extension\":\"png\",\"order_by\":10,\"title\":\"\",\"display\":\"\",\"copyAsset\":false,\"role\":\"acdc-reference\",\"size\":310848,\"visible\":true,\"origin\":\"\",\"legend\":\"\",\"description\":\"\",\"filename\":\"floatimage15.png\",\"url\":\"https://assets-eu.researchsquare.com/files/rs-8264438/v1/7225b305a02b9e4459ce47b8.png\"},{\"id\":99309226,\"identity\":\"ef813c4a-658e-4088-9710-bdc22e9c478d\",\"added_by\":\"auto\",\"created_at\":\"2025-12-31 16:09:55\",\"extension\":\"png\",\"order_by\":11,\"title\":\"\",\"display\":\"\",\"copyAsset\":false,\"role\":\"acdc-reference\",\"size\":249899,\"visible\":true,\"origin\":\"\",\"legend\":\"\",\"description\":\"\",\"filename\":\"floatimage16.png\",\"url\":\"https://assets-eu.researchsquare.com/files/rs-8264438/v1/0c2ee062485d9c308db03de6.png\"},{\"id\":99309022,\"identity\":\"43ded813-911d-4b40-8547-7c2d6196e4ce\",\"added_by\":\"auto\",\"created_at\":\"2025-12-31 16:09:40\",\"extension\":\"jpeg\",\"order_by\":12,\"title\":\"\",\"display\":\"\",\"copyAsset\":false,\"role\":\"acdc-reference\",\"size\":262674,\"visible\":true,\"origin\":\"\",\"legend\":\"\",\"description\":\"\",\"filename\":\"floatimage17.jpeg\",\"url\":\"https://assets-eu.researchsquare.com/files/rs-8264438/v1/0fec96cfc1a5ae922a88a34d.jpeg\"},{\"id\":98866458,\"identity\":\"342e6981-b0e0-4449-bafd-d6a33dd16baa\",\"added_by\":\"auto\",\"created_at\":\"2025-12-23 10:58:28\",\"extension\":\"jpeg\",\"order_by\":13,\"title\":\"\",\"display\":\"\",\"copyAsset\":false,\"role\":\"acdc-reference\",\"size\":30476,\"visible\":true,\"origin\":\"\",\"legend\":\"\",\"description\":\"\",\"filename\":\"floatimage2.jpeg\",\"url\":\"https://assets-eu.researchsquare.com/files/rs-8264438/v1/b2b43c4b01bf67e391450616.jpeg\"},{\"id\":98866455,\"identity\":\"0c218157-e795-45d4-886b-76791253c27b\",\"added_by\":\"auto\",\"created_at\":\"2025-12-23 10:58:28\",\"extension\":\"jpeg\",\"order_by\":14,\"title\":\"\",\"display\":\"\",\"copyAsset\":false,\"role\":\"acdc-reference\",\"size\":19007,\"visible\":true,\"origin\":\"\",\"legend\":\"\",\"description\":\"\",\"filename\":\"floatimage3.jpeg\",\"url\":\"https://assets-eu.researchsquare.com/files/rs-8264438/v1/07a1500662f41059b2c2b457.jpeg\"},{\"id\":98866468,\"identity\":\"f91af793-f408-4d0d-adcf-a9a9629b0d72\",\"added_by\":\"auto\",\"created_at\":\"2025-12-23 10:58:28\",\"extension\":\"jpeg\",\"order_by\":15,\"title\":\"\",\"display\":\"\",\"copyAsset\":false,\"role\":\"acdc-reference\",\"size\":11519,\"visible\":true,\"origin\":\"\",\"legend\":\"\",\"description\":\"\",\"filename\":\"floatimage4.jpeg\",\"url\":\"https://assets-eu.researchsquare.com/files/rs-8264438/v1/9d6b673cd69470709dfd6b48.jpeg\"},{\"id\":99309216,\"identity\":\"a3e27119-35f7-49c3-86c4-840206233faa\",\"added_by\":\"auto\",\"created_at\":\"2025-12-31 16:09:54\",\"extension\":\"jpeg\",\"order_by\":16,\"title\":\"\",\"display\":\"\",\"copyAsset\":false,\"role\":\"acdc-reference\",\"size\":31597,\"visible\":true,\"origin\":\"\",\"legend\":\"\",\"description\":\"\",\"filename\":\"floatimage5.jpeg\",\"url\":\"https://assets-eu.researchsquare.com/files/rs-8264438/v1/b109e214a3e8d31a31cc613a.jpeg\"},{\"id\":99309250,\"identity\":\"fa26078f-7a64-45cd-b00e-55717079af1b\",\"added_by\":\"auto\",\"created_at\":\"2025-12-31 16:09:56\",\"extension\":\"jpeg\",\"order_by\":17,\"title\":\"\",\"display\":\"\",\"copyAsset\":false,\"role\":\"acdc-reference\",\"size\":159304,\"visible\":true,\"origin\":\"\",\"legend\":\"\",\"description\":\"\",\"filename\":\"floatimage6.jpeg\",\"url\":\"https://assets-eu.researchsquare.com/files/rs-8264438/v1/97ae133ad21bf6311c5cca4f.jpeg\"},{\"id\":98866466,\"identity\":\"a246d48b-7555-43f9-a21d-02d18e5a8d17\",\"added_by\":\"auto\",\"created_at\":\"2025-12-23 10:58:28\",\"extension\":\"jpeg\",\"order_by\":18,\"title\":\"\",\"display\":\"\",\"copyAsset\":false,\"role\":\"acdc-reference\",\"size\":181808,\"visible\":true,\"origin\":\"\",\"legend\":\"\",\"description\":\"\",\"filename\":\"floatimage7.jpeg\",\"url\":\"https://assets-eu.researchsquare.com/files/rs-8264438/v1/62b62513e208b5ebf73f1459.jpeg\"},{\"id\":99308798,\"identity\":\"da396a03-7808-4e7b-ad98-ab9621f2a1ac\",\"added_by\":\"auto\",\"created_at\":\"2025-12-31 16:09:14\",\"extension\":\"jpeg\",\"order_by\":19,\"title\":\"\",\"display\":\"\",\"copyAsset\":false,\"role\":\"acdc-reference\",\"size\":7684,\"visible\":true,\"origin\":\"\",\"legend\":\"\",\"description\":\"\",\"filename\":\"floatimage8.jpeg\",\"url\":\"https://assets-eu.researchsquare.com/files/rs-8264438/v1/dd44f4b780ea231879a74394.jpeg\"},{\"id\":98866470,\"identity\":\"f7084ff8-7d2c-4852-9cd8-45bf637b986d\",\"added_by\":\"auto\",\"created_at\":\"2025-12-23 10:58:28\",\"extension\":\"jpeg\",\"order_by\":20,\"title\":\"\",\"display\":\"\",\"copyAsset\":false,\"role\":\"acdc-reference\",\"size\":167756,\"visible\":true,\"origin\":\"\",\"legend\":\"\",\"description\":\"\",\"filename\":\"floatimage9.jpeg\",\"url\":\"https://assets-eu.researchsquare.com/files/rs-8264438/v1/eb8036105b69aadc472c833e.jpeg\"},{\"id\":98866472,\"identity\":\"d703c4e4-d3dd-4ec8-8ad1-fe37023fe2a1\",\"added_by\":\"auto\",\"created_at\":\"2025-12-23 10:58:28\",\"extension\":\"png\",\"order_by\":21,\"title\":\"\",\"display\":\"\",\"copyAsset\":false,\"role\":\"acdc-reference\",\"size\":8927,\"visible\":true,\"origin\":\"\",\"legend\":\"\",\"description\":\"\",\"filename\":\"Onlinefloatimage1.png\",\"url\":\"https://assets-eu.researchsquare.com/files/rs-8264438/v1/c421b7a90695ead2288cc833.png\"},{\"id\":98866467,\"identity\":\"e21c7d1f-cdc8-4c12-a52e-13f46fa4406b\",\"added_by\":\"auto\",\"created_at\":\"2025-12-23 10:58:28\",\"extension\":\"png\",\"order_by\":22,\"title\":\"\",\"display\":\"\",\"copyAsset\":false,\"role\":\"acdc-reference\",\"size\":205348,\"visible\":true,\"origin\":\"\",\"legend\":\"\",\"description\":\"\",\"filename\":\"Onlinefloatimage10.png\",\"url\":\"https://assets-eu.researchsquare.com/files/rs-8264438/v1/ec6f93f7b739630e0a9a5e32.png\"},{\"id\":99308820,\"identity\":\"e3f34614-38f8-4990-a5e0-4e166e5ccef2\",\"added_by\":\"auto\",\"created_at\":\"2025-12-31 16:09:16\",\"extension\":\"png\",\"order_by\":23,\"title\":\"\",\"display\":\"\",\"copyAsset\":false,\"role\":\"acdc-reference\",\"size\":384127,\"visible\":true,\"origin\":\"\",\"legend\":\"\",\"description\":\"\",\"filename\":\"Onlinefloatimage11.png\",\"url\":\"https://assets-eu.researchsquare.com/files/rs-8264438/v1/d0bd3a86982b219eb92d9277.png\"},{\"id\":98866469,\"identity\":\"e9670597-64a0-46b0-addc-5ffbc2a7ae84\",\"added_by\":\"auto\",\"created_at\":\"2025-12-23 10:58:28\",\"extension\":\"png\",\"order_by\":24,\"title\":\"\",\"display\":\"\",\"copyAsset\":false,\"role\":\"acdc-reference\",\"size\":329232,\"visible\":true,\"origin\":\"\",\"legend\":\"\",\"description\":\"\",\"filename\":\"Onlinefloatimage12.png\",\"url\":\"https://assets-eu.researchsquare.com/files/rs-8264438/v1/78105a00b54a4a638aa19105.png\"},{\"id\":99309055,\"identity\":\"04f88ebe-03f0-488b-bd27-83c3a731ddf4\",\"added_by\":\"auto\",\"created_at\":\"2025-12-31 16:09:41\",\"extension\":\"png\",\"order_by\":25,\"title\":\"\",\"display\":\"\",\"copyAsset\":false,\"role\":\"acdc-reference\",\"size\":7921,\"visible\":true,\"origin\":\"\",\"legend\":\"\",\"description\":\"\",\"filename\":\"Onlinefloatimage13.png\",\"url\":\"https://assets-eu.researchsquare.com/files/rs-8264438/v1/90a5fba995766ae64768b95e.png\"},{\"id\":98866477,\"identity\":\"a145eb66-a2e8-4b7a-b7c2-44a15ea91fe1\",\"added_by\":\"auto\",\"created_at\":\"2025-12-23 10:58:28\",\"extension\":\"png\",\"order_by\":26,\"title\":\"\",\"display\":\"\",\"copyAsset\":false,\"role\":\"acdc-reference\",\"size\":32951,\"visible\":true,\"origin\":\"\",\"legend\":\"\",\"description\":\"\",\"filename\":\"Onlinefloatimage14.png\",\"url\":\"https://assets-eu.researchsquare.com/files/rs-8264438/v1/fe60a776720fd1195d39029b.png\"},{\"id\":98866475,\"identity\":\"e34db7ba-77e3-4eab-8c08-39b1d3648566\",\"added_by\":\"auto\",\"created_at\":\"2025-12-23 10:58:28\",\"extension\":\"png\",\"order_by\":27,\"title\":\"\",\"display\":\"\",\"copyAsset\":false,\"role\":\"acdc-reference\",\"size\":31925,\"visible\":true,\"origin\":\"\",\"legend\":\"\",\"description\":\"\",\"filename\":\"Onlinefloatimage15.png\",\"url\":\"https://assets-eu.researchsquare.com/files/rs-8264438/v1/a535aa4c121ee554f7fce938.png\"},{\"id\":98866481,\"identity\":\"c66132f8-2ede-4501-bc34-202fbb0c6499\",\"added_by\":\"auto\",\"created_at\":\"2025-12-23 10:58:29\",\"extension\":\"png\",\"order_by\":28,\"title\":\"\",\"display\":\"\",\"copyAsset\":false,\"role\":\"acdc-reference\",\"size\":25948,\"visible\":true,\"origin\":\"\",\"legend\":\"\",\"description\":\"\",\"filename\":\"Onlinefloatimage16.png\",\"url\":\"https://assets-eu.researchsquare.com/files/rs-8264438/v1/c06693cfdea989dc52bd76d8.png\"},{\"id\":99308908,\"identity\":\"3fb30cc5-243e-45a1-a0a0-52fabf351c3c\",\"added_by\":\"auto\",\"created_at\":\"2025-12-31 16:09:27\",\"extension\":\"png\",\"order_by\":29,\"title\":\"\",\"display\":\"\",\"copyAsset\":false,\"role\":\"acdc-reference\",\"size\":447948,\"visible\":true,\"origin\":\"\",\"legend\":\"\",\"description\":\"\",\"filename\":\"Onlinefloatimage17.png\",\"url\":\"https://assets-eu.researchsquare.com/files/rs-8264438/v1/dc1b3bd1d436e98391d3de7f.png\"},{\"id\":98866471,\"identity\":\"34a9c2fd-97b5-4660-b890-d36158eed68a\",\"added_by\":\"auto\",\"created_at\":\"2025-12-23 10:58:28\",\"extension\":\"png\",\"order_by\":30,\"title\":\"\",\"display\":\"\",\"copyAsset\":false,\"role\":\"acdc-reference\",\"size\":49734,\"visible\":true,\"origin\":\"\",\"legend\":\"\",\"description\":\"\",\"filename\":\"Onlinefloatimage2.png\",\"url\":\"https://assets-eu.researchsquare.com/files/rs-8264438/v1/755ccbee3139e086b8618702.png\"},{\"id\":98866460,\"identity\":\"873c0e5d-60af-4863-9b24-3f458c14b11d\",\"added_by\":\"auto\",\"created_at\":\"2025-12-23 10:58:28\",\"extension\":\"png\",\"order_by\":31,\"title\":\"\",\"display\":\"\",\"copyAsset\":false,\"role\":\"acdc-reference\",\"size\":25972,\"visible\":true,\"origin\":\"\",\"legend\":\"\",\"description\":\"\",\"filename\":\"Onlinefloatimage3.png\",\"url\":\"https://assets-eu.researchsquare.com/files/rs-8264438/v1/64db58ac6ac77807eb88e3e8.png\"},{\"id\":99309061,\"identity\":\"854ef934-a162-4efb-9ff7-862d82d3b821\",\"added_by\":\"auto\",\"created_at\":\"2025-12-31 16:09:42\",\"extension\":\"png\",\"order_by\":32,\"title\":\"\",\"display\":\"\",\"copyAsset\":false,\"role\":\"acdc-reference\",\"size\":10900,\"visible\":true,\"origin\":\"\",\"legend\":\"\",\"description\":\"\",\"filename\":\"Onlinefloatimage4.png\",\"url\":\"https://assets-eu.researchsquare.com/files/rs-8264438/v1/79bd00ecfbc0dcff5556a069.png\"},{\"id\":98866483,\"identity\":\"145d98a8-edf6-408f-8584-2268b49e4dea\",\"added_by\":\"auto\",\"created_at\":\"2025-12-23 10:58:29\",\"extension\":\"png\",\"order_by\":33,\"title\":\"\",\"display\":\"\",\"copyAsset\":false,\"role\":\"acdc-reference\",\"size\":55490,\"visible\":true,\"origin\":\"\",\"legend\":\"\",\"description\":\"\",\"filename\":\"Onlinefloatimage5.png\",\"url\":\"https://assets-eu.researchsquare.com/files/rs-8264438/v1/a13d86256717994185010b10.png\"},{\"id\":99309247,\"identity\":\"eb82e31f-957b-4c93-8426-ec616b51a3f3\",\"added_by\":\"auto\",\"created_at\":\"2025-12-31 16:09:56\",\"extension\":\"png\",\"order_by\":34,\"title\":\"\",\"display\":\"\",\"copyAsset\":false,\"role\":\"acdc-reference\",\"size\":117751,\"visible\":true,\"origin\":\"\",\"legend\":\"\",\"description\":\"\",\"filename\":\"Onlinefloatimage6.png\",\"url\":\"https://assets-eu.researchsquare.com/files/rs-8264438/v1/39fc04aa0e5a3ef05c29d7ac.png\"},{\"id\":99309105,\"identity\":\"d22b94e7-a1c3-4a0d-a628-12ae3f6d1532\",\"added_by\":\"auto\",\"created_at\":\"2025-12-31 16:09:44\",\"extension\":\"png\",\"order_by\":35,\"title\":\"\",\"display\":\"\",\"copyAsset\":false,\"role\":\"acdc-reference\",\"size\":188677,\"visible\":true,\"origin\":\"\",\"legend\":\"\",\"description\":\"\",\"filename\":\"Onlinefloatimage7.png\",\"url\":\"https://assets-eu.researchsquare.com/files/rs-8264438/v1/e5f3c4682d94e0e3ab282060.png\"},{\"id\":99309051,\"identity\":\"401ce41b-fd92-4517-bb6e-073c6d42f80e\",\"added_by\":\"auto\",\"created_at\":\"2025-12-31 16:09:41\",\"extension\":\"png\",\"order_by\":36,\"title\":\"\",\"display\":\"\",\"copyAsset\":false,\"role\":\"acdc-reference\",\"size\":12865,\"visible\":true,\"origin\":\"\",\"legend\":\"\",\"description\":\"\",\"filename\":\"Onlinefloatimage8.png\",\"url\":\"https://assets-eu.researchsquare.com/files/rs-8264438/v1/0b0d250a00ece40f8c44af8d.png\"},{\"id\":99309070,\"identity\":\"3dc7bfa4-384d-4d06-82d1-c140833373d7\",\"added_by\":\"auto\",\"created_at\":\"2025-12-31 16:09:42\",\"extension\":\"png\",\"order_by\":37,\"title\":\"\",\"display\":\"\",\"copyAsset\":false,\"role\":\"acdc-reference\",\"size\":267141,\"visible\":true,\"origin\":\"\",\"legend\":\"\",\"description\":\"\",\"filename\":\"Onlinefloatimage9.png\",\"url\":\"https://assets-eu.researchsquare.com/files/rs-8264438/v1/1ad95f712ec8a1a0638430f4.png\"},{\"id\":98866485,\"identity\":\"cf1d2b41-4d03-4000-90c5-188094808ea9\",\"added_by\":\"auto\",\"created_at\":\"2025-12-23 10:58:29\",\"extension\":\"xml\",\"order_by\":38,\"title\":\"\",\"display\":\"\",\"copyAsset\":false,\"role\":\"acdc-reference\",\"size\":132979,\"visible\":true,\"origin\":\"\",\"legend\":\"\",\"description\":\"\",\"filename\":\"4bc765abd50f41369a50ace80a6748e01structuring.xml\",\"url\":\"https://assets-eu.researchsquare.com/files/rs-8264438/v1/deb7077319ff46ae6203fa34.xml\"},{\"id\":98866479,\"identity\":\"10da39ff-2f0e-4ec6-b6df-74b9fd42ce5d\",\"added_by\":\"auto\",\"created_at\":\"2025-12-23 10:58:28\",\"extension\":\"html\",\"order_by\":39,\"title\":\"\",\"display\":\"\",\"copyAsset\":false,\"role\":\"acdc-reference\",\"size\":155363,\"visible\":true,\"origin\":\"\",\"legend\":\"\",\"description\":\"\",\"filename\":\"earlyproof.html\",\"url\":\"https://assets-eu.researchsquare.com/files/rs-8264438/v1/c95834b4f827875f1c04ac16.html\"},{\"id\":100356509,\"identity\":\"df82335f-95df-4b37-9df3-d3465be31722\",\"added_by\":\"auto\",\"created_at\":\"2026-01-16 07:14:25\",\"extension\":\"pdf\",\"order_by\":1,\"title\":\"\",\"display\":\"\",\"copyAsset\":false,\"role\":\"manuscript-pdf\",\"size\":1167369,\"visible\":true,\"origin\":\"\",\"legend\":\"\",\"description\":\"\",\"filename\":\"Nashwacompletefulldesignforscientificreports.pdf\",\"url\":\"https://assets-eu.researchsquare.com/files/rs-8264438/v1_covered_0f4a8e63-917d-4034-92ff-6714103621b6.pdf\"},{\"id\":99308880,\"identity\":\"d48ce0a8-e2e8-410f-9da9-7c452351f1a1\",\"added_by\":\"auto\",\"created_at\":\"2025-12-31 16:09:25\",\"extension\":\"docx\",\"order_by\":0,\"title\":\"\",\"display\":\"\",\"copyAsset\":false,\"role\":\"supplement\",\"size\":5627372,\"visible\":true,\"origin\":\"\",\"legend\":\"\",\"description\":\"\",\"filename\":\"supplementaryfile.docx\",\"url\":\"https://assets-eu.researchsquare.com/files/rs-8264438/v1/315062196ff433ec1c24e1c4.docx\"}],\"financialInterests\":\"No competing interests reported.\",\"formattedTitle\":\"Real-Time Hand Movement Detection using a Custom-Built EEG System\",\"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\":\"info@researchsquare.com\",\"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\":\"Spinal cord injury (SCI), Brain-Computer Interface (BCI), Extreme Gradient Boosting (XGBoost), SMOTE: Synthetic Minority Over-sampling Technique, Motor Imagery, Electroencephalogram (EEG) and Analog to Digital Converter (ADC)\",\"lastPublishedDoi\":\"10.21203/rs.3.rs-8264438/v1\",\"lastPublishedDoiUrl\":\"https://doi.org/10.21203/rs.3.rs-8264438/v1\",\"license\":{\"name\":\"CC BY 4.0\",\"url\":\"https://creativecommons.org/licenses/by/4.0/\"},\"manuscriptAbstract\":\"\\u003cp\\u003eSpinal cord injury causes great disruption of voluntary hand movement, with consequent restrictions in functional independence. This work presents a real-time EEG-based detection system for hand opening and closing movements using a custom-built low-cost acquisition device. The proposed system includes eight EEG channels over motor-related cortical regions, amplified by AD620 instrumentation amplifiers, filtered through analog stages, and digitized with a 16-bit ADS1115 converter. EEG signals were recorded from healthy volunteers who continuously performed forced hand-opening and hand-closing tasks to capture clear cortical patterns associated with both states. Preprocessing included the reduction of artifacts, normalization, and feature selection based on signal variance to enhance the signal. Afterwards, a transformer-based deep learning model was developed to identify the hand state in real time with high accuracy and good temporal stability of the results. The results demonstrate that the combination of lightweight hardware with advanced neural network models allows for reliable detection of motor intent from non-invasive EEG signals. The results showed that the system achieved an accuracy of 97.78% with a latency less than 200 ms. This approach leads to low-cost neurotechnology for real-time assistive applications, pointing out the potentiality of its adaptation for restoring hand functionality in individuals with SCI.\\u003c/p\\u003e\",\"manuscriptTitle\":\"Real-Time Hand Movement Detection using a Custom-Built EEG System\",\"msid\":\"\",\"msnumber\":\"\",\"nonDraftVersions\":[{\"code\":1,\"date\":\"2025-12-23 10:58:23\",\"doi\":\"10.21203/rs.3.rs-8264438/v1\",\"editorialEvents\":[{\"type\":\"communityComments\",\"content\":0}],\"status\":\"published\",\"journal\":{\"display\":true,\"email\":\"info@researchsquare.com\",\"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\":\"9d3ed0a7-705c-4517-8061-b8f8b01ff20d\",\"owner\":[],\"postedDate\":\"December 23rd, 2025\",\"published\":true,\"recentEditorialEvents\":[],\"rejectedJournal\":[],\"revision\":\"\",\"amendment\":\"\",\"status\":\"posted\",\"subjectAreas\":[{\"id\":60007695,\"name\":\"Biological sciences/Biological techniques\"},{\"id\":60007696,\"name\":\"Physical sciences/Engineering\"},{\"id\":60007697,\"name\":\"Biological sciences/Neuroscience\"}],\"tags\":[],\"updatedAt\":\"2026-01-08T17:39:22+00:00\",\"versionOfRecord\":[],\"versionCreatedAt\":\"2025-12-23 10:58:23\",\"video\":\"\",\"vorDoi\":\"\",\"vorDoiUrl\":\"\",\"workflowStages\":[]},\"version\":\"v1\",\"identity\":\"rs-8264438\",\"journalConfig\":\"researchsquare\"},\"__N_SSP\":true},\"page\":\"/article/[identity]/[[...version]]\",\"query\":{\"redirect\":\"/article/rs-8264438\",\"identity\":\"rs-8264438\",\"version\":[\"v1\"]},\"buildId\":\"8U1c8b4HqxoKbykW_rLl7\",\"isFallback\":false,\"isExperimentalCompile\":false,\"dynamicIds\":[84888],\"gssp\":true,\"scriptLoader\":[]}","source_license":"CC-BY-4.0","license_restricted":false}