{"id":16515357,"url":"https://github.com/njmarko/neuralink-mr-sandman","last_synced_at":"2026-05-06T14:38:06.263Z","repository":{"id":84214210,"uuid":"489133995","full_name":"njmarko/neuralink-mr-sandman","owner":"njmarko","description":"Expert rule based system for tracking inputs from neuralink chip and smart-watch in order to improve daily habits, measure sleep efficiency and improve sleep quality.","archived":false,"fork":false,"pushed_at":"2024-03-07T12:07:47.000Z","size":2928,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-02T15:54:17.190Z","etag":null,"topics":["angular","drools-rule-engine","expert-system","neuralink","rule-based-system","sleep-tracker","smart-watch","spring-boot"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/njmarko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-05-05T21:43:28.000Z","updated_at":"2022-06-14T09:46:45.000Z","dependencies_parsed_at":"2023-05-24T01:15:10.891Z","dependency_job_id":null,"html_url":"https://github.com/njmarko/neuralink-mr-sandman","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/njmarko/neuralink-mr-sandman","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/njmarko%2Fneuralink-mr-sandman","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/njmarko%2Fneuralink-mr-sandman/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/njmarko%2Fneuralink-mr-sandman/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/njmarko%2Fneuralink-mr-sandman/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/njmarko","download_url":"https://codeload.github.com/njmarko/neuralink-mr-sandman/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/njmarko%2Fneuralink-mr-sandman/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32698719,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T08:33:17.875Z","status":"ssl_error","status_checked_at":"2026-05-06T08:33:17.221Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular","drools-rule-engine","expert-system","neuralink","rule-based-system","sleep-tracker","smart-watch","spring-boot"],"created_at":"2024-10-11T16:16:50.543Z","updated_at":"2026-05-06T14:38:06.246Z","avatar_url":"https://github.com/njmarko.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# neuralink-mr-sandman\nA sophisticated rule-based system designed to analyze data from a variety of tracking devices, including Neuralink chips, smartwatches, and other wearable sensors, with the objective of enhancing sleep quality.\n\n\u003cdiv align=\"center\"\u003e\n\u003cimg alt=\"signal-visualization\" align=\"center\" width=\"100%\" src=\"https://user-images.githubusercontent.com/34657562/173451811-c6f2b92b-e57a-4cb3-b6ee-c5cb4991ca9e.png\" /\u003e\n  \u003cp align=\"center\"\u003eIlustration 1 - Visualization of the signals generated by the neuralink and smart-watch devices.\u003c/p\u003e\n\u003c/div\u003e\n\n## Application functionalities\n\n- Determines chronotype based on the provided user info\n- Calculates optimal sleep time based on the provided user info and calculated chronotype\n- Monitors daily habits\n  - Alcohol consumption before sleep\n  - Caffeine consumption before sleep\n  - Bright light exposure before sleep\n  - Intense physical activity before sleep\n- Calculates daily bad habits scores\n  - Based on the habit intensity and proximity to the optimal sleep time\n- Tracks brain activity\n  - Determines when the user is awake\n  - Determines when the user falls asleep\n  - Determines sleep stages that the user is going through during the sleep\n    - NREM stages 1-4\n    - REM stage\n  - Detect wakeup\n- Sleep efficiency calculation\n- Daily habits recommendations\n- Detection of the most common sleep disorders\n  - Somnambulism detection\n  - Insomnia detection\n  - Narcolepsy detection\n\n## Technology\n\n- Spring boot application for backend\n- Drools rule-based system\n  - Forward chaining\n  - Complex event processing (CEP)\n  - Templates\n  - Queries\n  - Dynamic salience\n- Two Angular frontend applications\n\n## Devices\n### Noninvasive\n- [Biosignal Sensing Device Using Dynamic Selection of Electrodes](https://patents.google.com/patent/US20230225659A1/)\n### Invasive\n- [First Neuralink implanted in humans](https://x.com/elonmusk/status/1752098683024220632?s=20)\n\n## Application screenshots\n\n\u003cdiv align=\"center\"\u003e\n\u003cimg alt=\"user-info\" align=\"center\" width=\"100%\" src=\"https://user-images.githubusercontent.com/34657562/173448738-77c33c5c-526c-48e1-bfb9-af020b775c05.png\" /\u003e\n  \u003cp align=\"center\"\u003eIlustration 2 - User info form. Chronotype and optimal sleep time are determined based on the provided user information.\u003c/p\u003e\n\u003c/div\u003e\n\n\n\n\u003cdiv align=\"center\"\u003e\n\u003cimg alt=\"signal-driver-generator\" align=\"center\" width=\"100%\" src=\"https://user-images.githubusercontent.com/34657562/173450853-e7ee9415-de8b-4ae5-b361-8593dd6f86ca.png\" /\u003e\n  \u003cp align=\"center\"\u003eIlustration 3 - Project that generates simulated signals from the neuralink and smart-watch devices.\u003c/p\u003e\n\u003c/div\u003e\n\n## References\n- [Medical Neuroscience - Coursera course by Prof Leonard E. White, Ph.D. from Duke University](https://www.coursera.org/learn/medical-neuroscience)\n  - [Certificate earned for completing the 13-week-long Medical Neuroscience course](https://www.coursera.org/account/accomplishments/certificate/JE475HPY7A28)\n- [Why we sleep - Book by Neuroscientist and sleep expert Matthew Walker](https://www.goodreads.com/book/show/34466963-why-we-sleep)\n- [Lex Fridman Podcast - Mathew Walker - Sleep](https://www.youtube.com/watch?v=Hc4XvHTlW3s)\n- [Dr. Matthew Walker: The Science \u0026 Practice of Perfecting Your Sleep | Huberman Lab Podcast #31](https://www.youtube.com/watch?v=gbQFSMayJxk)\n- [Responses to questions from readers on Why we sleep by Mathew Walker](https://sleepdiplomat.wordpress.com/2019/12/19/why-we-sleep-responses-to-questions-from-readers/)\n- [Textbook of Medical Physiology - Guyton \u0026 Hall](https://www.goodreads.com/book/show/202734.Textbook_of_Medical_Physiology)\n- [Neuroscience - Book by prof Dale Purves](https://www.goodreads.com/book/show/15939503-neuroscience)\n\n\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnjmarko%2Fneuralink-mr-sandman","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnjmarko%2Fneuralink-mr-sandman","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnjmarko%2Fneuralink-mr-sandman/lists"}