{"id":19404693,"url":"https://github.com/batuhanaktan/respiratoryillnessdetectionusingml","last_synced_at":"2026-05-13T01:31:46.337Z","repository":{"id":107814850,"uuid":"322891483","full_name":"BatuhanAktan/RespiratoryIllnessDetectionUsingML","owner":"BatuhanAktan","description":"In the current state of healthcare many hospitals are working over their capacity, and our group wanted to help fix this issue, we used machine learning to diagnose a healthy lung X-ray from a sick one.","archived":false,"fork":false,"pushed_at":"2020-12-20T13:38:41.000Z","size":89460,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-25T00:37:33.734Z","etag":null,"topics":["healthcare","machine-learning","sequential-models","tensorflow"],"latest_commit_sha":null,"homepage":"","language":"Python","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/BatuhanAktan.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,"publiccode":null,"codemeta":null}},"created_at":"2020-12-19T16:36:38.000Z","updated_at":"2020-12-20T13:42:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"e6a1b360-5d0c-4a4b-a542-ad1480098cdc","html_url":"https://github.com/BatuhanAktan/RespiratoryIllnessDetectionUsingML","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BatuhanAktan/RespiratoryIllnessDetectionUsingML","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BatuhanAktan%2FRespiratoryIllnessDetectionUsingML","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BatuhanAktan%2FRespiratoryIllnessDetectionUsingML/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BatuhanAktan%2FRespiratoryIllnessDetectionUsingML/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BatuhanAktan%2FRespiratoryIllnessDetectionUsingML/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BatuhanAktan","download_url":"https://codeload.github.com/BatuhanAktan/RespiratoryIllnessDetectionUsingML/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BatuhanAktan%2FRespiratoryIllnessDetectionUsingML/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32963817,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-12T23:30:32.555Z","status":"ssl_error","status_checked_at":"2026-05-12T23:30:18.191Z","response_time":102,"last_error":"SSL_read: 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":["healthcare","machine-learning","sequential-models","tensorflow"],"created_at":"2024-11-10T11:35:50.633Z","updated_at":"2026-05-13T01:31:46.312Z","avatar_url":"https://github.com/BatuhanAktan.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Diagnosis of respiratory illnesses.\n\nIn the current state of healthcare many hospitals are working over their capacity, and our group wanted to help fix this issue, we used machine learning to diagnose a healthy lung X-ray from a sick one.\n\n\n### Getting Started\n\nWe used the public data provided with more than 4000 chest cts to develop and form a sequential model with tensorflow. We used 64 cts as our sample 32 infected and 32 healthy, with this model after 10 Epochs we were able to hit 100% accuracy.\n\n### Prerequisites\n\nAll the libraries used are in requirements.txt, and they can be installed using pip command.\n\nExample.\n```\npip install numpy\n```\n\n### Installing\n\nThe machine learning model can be installed in the following google drive\n\n```\nhttps://drive.google.com/file/d/1r0XxZCt8s_TWgDvd6Kg_ObjuLs6C2iTJ/view\n```\n\n## Running the tests\n\nTo run these tests we used the model mentioned above and with to test various X-rays and we achieved a total of 100% accuracy in the prediction of 10 X-rays.\n\n### Results\n\n```\n57/57 [==============================] - 40s 698ms/sample - loss: 1.1120e-05 - accuracy: 1.0000 - val_loss: 0.0429 - val_accuracy: 1.0000\n```\nAfter training our machine learning model with 64 X-ray images we were able to get 100% accuracy in the determination of respiratory illnesses and we expect this result to be close to 90% with X-rays that are out of our training set.\n|![Healthy Lung Image](https://github.com/BatuhanAktan/executehacks/blob/main/TestImages/IM-0001-0001.jpeg?raw=true)|![Sick Lung Image](https://github.com/BatuhanAktan/executehacks/blob/main/TestImages/person15_virus_46.jpeg?raw=true)|\n|:---:|:---:|\n|Healthy Lung: IM-0001-0001.jpeg|Sick Lung: person15_virus_46.jpeg|\n```\nImage being processed: IM-0001-0001.jpeg\nExpected Result: Healthy \nResult: Healthy\nImage being processed: person15_virus_46.jpeg\nExpected Result: Sick \nResult: Sick\n```\n(All the images are in the TestImages folder)\n\nThese results can be replicated using our model and using Prediction.py.\n\n### Conclusion\n\nTo conclude, our model can identify resipratory illness presence in a chest X-ray at around 90% accuracy, which in return could provide lifesaving support to patients and reduce the stress on healthcare professionals.\n\n## Authors\n\n* **Batuhan Aktan** - [Github](https://github.com/BatuhanAktan)\n* **Jody Zhou** - [Github](https://github.com/JodyZ0203)\n* **Sam Zhang** - [Github](https://github.com/Dam-Sam)\n\n## License\n\nThis project is licensed under the MIT License.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbatuhanaktan%2Frespiratoryillnessdetectionusingml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbatuhanaktan%2Frespiratoryillnessdetectionusingml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbatuhanaktan%2Frespiratoryillnessdetectionusingml/lists"}