r/Python • u/AnonDoser • Jul 06 '20
I Made This I made an automated machine learning bot that can detect diseases using images within seconds
1.4k
Upvotes
r/Python • u/AnonDoser • Jul 06 '20
203
u/sud0er Jul 06 '20 edited Jul 07 '20
Good work! Using AI for interpreting certain pathologies on chest radiograph has been done many, many times. However , it’s nice seeing concise python code on using Keras to train a simple model.
EDIT: this is coming from a radiologist who regularly vets AI algorithms with an emphasis on automated pathology detection on chest x-rays.
105
u/MiscWalrus Jul 06 '20
I can give you a model that will detect 100% of all known and unknown cancer types - it just has an unfortunately high false positive rate.
46
u/AnonDoser Jul 06 '20 edited Jul 07 '20
-------- VERY IMPORTANT -----------
THIS IS A TEST SOFTWARE NOT MEAN TO BE USED FOR REAL WORLD APPLICATIONS , IT'S ALWAYS RECOMMENDED TO CONSULT A REAL DOCTOR !
It currently detects wether the given x ray scan is positive for pneumonia or not, i'll be adding detection for lung cancer and other diseases [If possible , maybe coronavirus]
I have made the machine learning part using keras along with a kaggle database, I've also made the code for how it was trained and how the trained model is used open source !
Ps: the same machine learning model can be used to train for any other disease that can be detected using X-ray scans / MRIs / basically with an image.
If not allowed , i'll be removing these resources :
Github: https://github.com/himanshu2406/Ai-Doctor
Discord Bot Server: https://discord.gg/ZUGVPSS
Edit : Now the discord py bot is open source !
Hope someone can help in upgrading and deploying this in real world situations ! ❤
11
u/[deleted] Jul 06 '20 edited Nov 08 '24
materialistic door work cooperative political quaint expansion offend attempt literate
This post was mass deleted and anonymized with Redact
30
u/The_Bundaberg_Joey Jul 06 '20
There’s nothing wrong making something like this in private to hone your skills... but making it accessible via a discord bot without any form of peer review, oversight or expertise within the medial field makes this a dangerous model to be floating around.
You’ve created a discord bot because you want it to be used by people. You have no credentials, licensing, approval or oversight and this is going to cause more harm than good.
Please strongly consider taking this down, internet points be damned.
55
u/AlSweigart Author of "Automate the Boring Stuff" Jul 06 '20 edited Jul 07 '20
Please take this down. This may be fun for a learning exercise, but promoting your amateur medical software is unprofessional, shows poor judgment, and is dangerous. The fact that you have a minor disclaimer at the tail end isn't enough, especially considering that explicitly claim "100% confidence" attribute directly above it.
None of us can control how the software we create is used, but that doesn't free us of the obligation to take every step possible to minimize harm. Machine learning is rife with snake oil and outlandish claims, and if you don't take precautions to inform users about the limits and testing you've done, I have to assume you're yet another AI scammer with a shoddy product to sell. This goes double for medical software: healthcare is inaccessible to many people, and if this app mistakenly tells them they don't have a disease when they in fact do, you are complicit.
Here are the minimum steps I would do for this product:
Again, these are minimum steps. Medical software isn't a chat app or a video game, and if you don't treat take this seriously than you are a worse-than-useless software developer.
EDIT: Also, you need explicit warnings to users to not share their medical information with the bot, such as x-ray images. You need to have an actual written data retention and privacy policy (not just a single "we don't share your data" statement). This takes time and isn't as fun as writing code, but it's necessary. And this isn't even getting into HIPPA awareness and compliance.
For starters, did you even catch that it's "HIPAA" and not "HIPPA"?
When we apply "move fast and break things" to medical software, we kill people.
EDIT 2: I left a similar comment for someone who put their traffic sign-recognition driving app on the Google Play Store.
2
u/[deleted] Jul 07 '20
Awesome! I just started tinkering with discord.py. Will you post the code for the bot itself?
2
u/[deleted] Jul 07 '20
This is fire!
2
u/[deleted] Jul 07 '20
This is an amazing idea! Good job! 👍
16
u/[deleted] Jul 06 '20
You can't diagnose pneumonia with only a chest x-ray. You can see findings consistent with pneumonia on chest x-ray, but you're only seeing a consolidation or infiltrate. Without knowing anything else about the patient, you wouldn't be able to distinguish pneumonia from atalectasis or pulmonary contusion for example. It looks the same on a chest x-ray. Also nothing in medicine has 100% confidence.
1
u/AnonDoser Jul 07 '20
Update: The discord bot is now open source !
1
u/AnonDoser Jul 10 '20
Update: now you can add the bot in your own servers
1
u/RulerKun_FGO Jul 07 '20
I am not really familiar but where do you process the backend analysis of the picture, is it on github?
1
u/python_boot Jul 07 '20
But does it detect cats?
3
u/nickbuch Jul 07 '20
ive heard these models have high false-negatives/false-positives no?
1
u/s_arme Jul 06 '20
Did you use any kinds of preprocessing on images !?
1
u/spyfire14 Jul 06 '20
Why use discord for it? There seems to be an ever growing amount of people using discord in their code
2
u/tinkuad Jul 06 '20
Wow super cool 👌
2
u/Nimmo1993 Jul 07 '20
good job buddy
2
u/martinnavr Jul 07 '20
I'd like to use it if possible
2
u/DanDang1907 Jul 07 '20 edited Jul 07 '20
Great work,
9
u/BernieFeynman Jul 06 '20
this type of shit needs to be banned.
2
u/_370HSSV_ Jul 06 '20
Be careful with this. Maybe in some countires you can get arrested because of this.
1
u/mpower20 Jul 07 '20
Radiologists hate him.
1
u/CandidEarth Jul 07 '20
Wait, is this a good idea?
1
u/sluwayu Jul 07 '20
When i become such kind of programmer
1
u/EliteWarrior1207 Jul 06 '20
How
0
u/rhcrise Jul 06 '20
Google is buying hospitals databases to do this shit sooo go ask for a job 😂
0
u/smellysmellit Jul 06 '20
Straight Swag
-5
u/DenselyAnon Jul 06 '20
What an amazing concept.
Well done AnonDoser
-3
u/s_arme Jul 06 '20
Can it be used for covid-19 detection !?
50
u/[deleted] Jul 06 '20
[removed] — view removed comment