A very good friend of mine had a CT of his chest taken last week. And then he had his images. And no medical evaluation.
So I said: Come, let’s get this done at home and prepare an app where ๐ฐ๐ ๐๐๐ง ๐๐ฏ๐๐ฅ๐ฎ๐๐ญ๐ ๐ญ๐ก๐ ๐ฌ๐๐๐ง๐ฌ ๐จ๐ฎ๐ซ๐ฌ๐๐ฅ๐ฏ๐๐ฌ. The idea was simple: let’s figure out what existing models and tools from the public domain can be used to evaluate those images and detect issues. As well as: how to run them and what quirks are known. After realizing that several of them are not just ML models, but LLMs, the path with local hosting via #Ollama was clear: who would like to see their most intimate data in the cloud?
A bit of #Python for the backend, a bit of HTML and CSS for the front, tons of Ollama models and several iterations later to understand what the models actually return, jobs for queuing work, polishing, done.
๐ I have to admit, if it was this easy, I would have finished this “oh, this should not take long” project way earlier. Several assumptions were wrong, outcomes from random sampling of the CT scans were not good, model quality was … let’s say most are overconfident when praising what they can do – so I also added a pre-rating for each of them. Since I am no doctor – the user is still free to override this. My recommendation is “๐ฆ๐จ๐ง๐๐ข_๐ฅ๐ฎ๐ง๐ _๐ง๐จ๐๐ฎ๐ฅ๐” as a model. Another obstacle was finding good medical data, since I wanted to keep the data to analyse separate from the “development data”. Then: does it make sense to prepare synthetic data (…not) and why is #DICOM a standard when there are some deviations in the medical data?
Nevertheless: all is solved now. The app works and gives human-readable results.
There is still no evaluation from an expert, but based on the app I prepared, I would say: ๐ก๐ข๐ฌ ๐๐๐ญ๐ ๐ฅ๐จ๐จ๐ค๐ฌ ๐ ๐จ๐จ๐, ๐ง๐จ๐ญ๐ก๐ข๐ง๐ ๐ซ๐๐๐ฅ๐ฅ๐ฒ ๐ญ๐จ ๐ฐ๐จ๐ซ๐ซ๐ฒ ๐๐๐จ๐ฎ๐ญ. This is, of course, not a medical diagnosis.
So, mission done.
๐๐ข๐ญ๐๐ฎ๐ -> ๐ฆ๐๐ซ๐๐๐ฅ๐ฉ๐๐ญ๐ซ๐ข๐๐ค -> ๐๐ก๐จ๐ซ๐๐ฑ๐๐๐_๐๐ซ๐จ๐ฆ_๐๐ข๐ฌ๐ก
https://github.com/marcelpetrick/ThoraxGPT_from_Wish



