News for hackers. Stuff that matters.
Re:Ask HN: Machine Learning Engineers, what do you do at work? by schmookeeg on Saturday June 08, 2024 @12:16AM (#40615244)
Getting my models dunked on by people who can't open MS Outlook more than 3 tries out of 5, however, have a remarkable depth and insight into their chosen domain of expertise. It's rather humbling.

Collaborating with nontechnical people is oddly my favorite part of doing MLE work right now. It wasn't the case when I did basic web/db stuff. They see me as a magician. I see them as voodoo priests and priestesses. When we get something trained up and forecasting that we both like, it's super fulfilling. I think for both sides.

Most of my modeling is healthcare related. I tease insights out of a monstrous data lake of claims, Rx, doctor notes, vital signs, diagnostic imagery, etc. What is also monstrous is how accessible this information is. HIPAA my left foot.

Since you seemed to be asking about the temporal realities, it's about 3 hours of meetings a week, probably another 3 doing task grooming/preparatory stuff, fixing some ETL problem, or doing a one-off query for the business, the rest is swimming around in the data trying to find a slight edge to forecast something that surprised us for a $million or two using our historical snapshots. It's like playing wheres waldo with math. And the waldo scene ends up being about 50TB or so in size. :D

Re:Ask HN: Machine Learning Engineers, what do you do at work? by saulrh on Saturday June 08, 2024 @01:32AM (#40615496)
> HIPAA my left foot.

That was my experience as well - training documentation for fresh college grads (i.e. me) directed new engineers to just... send SQL queries to production to learn. There was a process for gaining permissions, there were audit logs, but the only sign-off you needed was your manager, permission lasted 12 months, and the managers just rubber-stamped everyone.

That was ten years ago. Every time I think about it I find myself hoping that things have gotten better and knowing they haven't.

Re:Ask HN: Machine Learning Engineers, what do you do at work? by bick_nyers on Saturday June 08, 2024 @01:55AM (#40615585)
... you didn't have a UAT environment?
Re:Ask HN: Machine Learning Engineers, what do you do at work? by roughly on Saturday June 08, 2024 @04:09AM (#40616095)
There’s an old joke that everyone’s got a testing environment, but some people are lucky enough to have a separate production environment.
Re:Ask HN: Machine Learning Engineers, what do you do at work? by saulrh on Saturday June 08, 2024 @02:47AM (#40615766)
There were a couple "not prod" environments, but they were either replicated directly from prod or so poorly maintained that they were unusable (empty tables, wrong schemas, off by multiple DB major versions, etc), no middle ground. So institutional culture was to just run everything against prod (for bare selects that could be copied and pasted into the textbox in the prod-access web tool) or a prod replica (for anything that needed a db connection). The training docs actually did specify Real Production, and first-week tasks included gaining Real Production access. If I walked in and was handed that training documentation today I'd raise hell and/or quit on the spot, but that was my first job out of college - it was basically everyone's first job out of college, they strongly preferred hiring new graduates - and I'd just had to give up on my PhD so I didn't have the confidence, energy, or pull to do anything about it, even bail out.

That was also the company where prod pushes happened once a month, over the weekend, and were all hands on deck in case of hiccups. It was an extraordinarily strong lesson in how not to organize software development.

(edit: if what you're really asking is "did every engineer have write access to production", the answer was, I believe, that only managers did, and they were at least not totally careless with it. not, like, actually responsible, no "formal post-mortem for why we had to use break-glass access", but it generally only got brought out to unbreak prod pushes. Still miserable.)

Re:Ask HN: Machine Learning Engineers, what do you do at work? by jollofricepeas on Saturday June 08, 2024 @08:38AM (#40617146)
So…

Is it surprising that Engineers in healthcare dont read the actual HIPAA documentation?

Use of health data is permitted so long as it’s for payment, treatment or operations. Disclosures and patient consent are not required.

There are helpful summaries on the US Department of Health and Humans Services website of the various rules (Security, Privacy & Notification)

Source: https://www.hhs.gov/hipaa/for-professionals/privacy/guidance...

This allowance is permitted to covered entities and by extension their vendors (business associates) by HIPAA.

If it wasn’t then, theoretically the US healthcare industry would grind to a halt considering the number of intermediaries for a single transaction.

Example:

Doctor writes script -> EHR -> Pharmacy -> Switch -> Clearinghouse —> PA Processing -> PBM/Plan makes determination

Along this flow there are other possible branches and vendors.

It’s beyond complex.

Re:Ask HN: Machine Learning Engineers, what do you do at work? by aiforecastthway on Saturday June 08, 2024 @09:31AM (#40617441)
> If it wasn’t then, theoretically the US healthcare industry would grind to a halt considering the number of intermediaries for a single transaction.

It just occurred to me that cleaning up our country's data privacy / data ownership mess might have extraordinarily positive second-order effects on our Kafkaesque and criminally expensive healthcare "system".

Maybe making it functionally impossible for there to be hundreds of middlemen between me and my doctor would be a... good thing?

Re:Ask HN: Machine Learning Engineers, what do you do at work? by throwaway936r8 on Saturday June 08, 2024 @09:07PM (#40621233)
I think it would have the opposite effect. We could end up with a few all-in-one systems that would dominate the market and have little incentive to improve or compete on usability and price.
Re:Ask HN: Machine Learning Engineers, what do you do at work? by Spooky23 on Sunday June 09, 2024 @09:59AM (#40624479)
Only if your mortgage isn’t paid by such a middleman.
Re:Ask HN: Machine Learning Engineers, what do you do at work? by specialist on Sunday June 09, 2024 @10:38AM (#40624725)
Correct. Would also mostly stop a lot of scams like identity theft.

A national identity service, like a normal mature economy, would be a massive public policy and public health win.

But it'd slightly decrease profits. So of course is quite impossible to implement.

Re:Ask HN: Machine Learning Engineers, what do you do at work? by outside1234 on Saturday June 08, 2024 @10:33AM (#40617780)
Define operations, because that sounds like a loophole that basically allows you to use it for anything
Re:Ask HN: Machine Learning Engineers, what do you do at work? by connicpu on Saturday June 08, 2024 @06:21PM (#40620578)
Basically the only thing you can't do with the data is disclose it to someone who doesn't also fall under HIPAA
Re:Ask HN: Machine Learning Engineers, what do you do at work? by Spooky23 on Sunday June 09, 2024 @10:00AM (#40624484)
HIPPA protects you against gossipy staff. Beyond that, it’s mostly smoke - entire industries are built on loopholes.

Pre-HIPPA, the hospital would tell a news reporter about your status. Now, drug marketing companies know about your prescriptions before your pharmacy does.

Re:Ask HN: Machine Learning Engineers, what do you do at work? by specialist on Sunday June 09, 2024 @10:44AM (#40624775)
Mid aughts, we devs sat in the meetings discussing how to enable this. With teams from Google Health, Microsoft Health Vault, some pharmas.

In attendance were marketing, biz dev, execs. Ours and theres. But no legal. Hmmm.

And it would have worked if it weren't for those meddling teenagers.

From your comment, I'm inferring they're now allowed to use health records for marketing.

Re:Ask HN: Machine Learning Engineers, what do you do at work? by Spooky23 on Sunday June 09, 2024 @01:01PM (#40625812)
My wife about 9 years ago was admitted to the hospital for a ruptured ectopic pregnancy. The baby would have been about two months along.

On the would-be due date, a box arrived via FedEx of Enfamil samples and a chirpy “welcome baby” message. Of course there was no baby.

It turns out that using prescription data, admission data and other information that is aggregated as part of subrogation and other processes, you can partially de-anonymize/rebuild / health record and make an inference. Enfamil told me what list they used and I bought it, it contained a bunch of information including my wife’s. I also know everyone in my zip code who had diabetes in 2015.

There’s even more intrusive stuff around opioid surveillance.

Re:Ask HN: Machine Learning Engineers, what do you do at work? by specialist on Sunday June 09, 2024 @04:08PM (#40627180)
I'm sorry for your loss. Shit.

> Emfamil samples...

Insult to injury. They're all just ghouls. Profitting from other people's pain.

> what list they used

Who watches the watchers? Nobody.

We had an instance of Lexis/Nexus' (formerly Seisent) demographic database to play with. Most people just can't wrap their heads around how bad things were in the mid-aughts. I was called a "sweaty paranoid kook" by our local paper for simply describing how things worked (no opinion or predictions).

Oh well. Maybe society has started to recognize what's happened.

Thanks for reading my rant. Peace.

Re:Ask HN: Machine Learning Engineers, what do you do at work? by notjulianjaynes on Monday June 10, 2024 @12:52AM (#40630279)
>There’s even more intrusive stuff around opioid surveillance.

Can you please explain more about this or point me towards a source?

Re:Ask HN: Machine Learning Engineers, what do you do at work? by specialist on Sunday June 09, 2024 @10:33AM (#40624684)
This is why I advocate all PII data be encrypted at rest at the field level.

Worked on EMRs (during the aughts). Had yearly HIPAA and other security theater training. Not optional for any one in the field.

Of course we had root access. I forget the precise language, but HIPAA exempts "intermediaries" such as ourselves. How else could we build and verify the system(s). And that's why HIPAA is a joke.

Yes, our systems had consent and permissions and audit logs cooked in. So theoretically peeking at PII could be caught. Alas, it was just CYA. None of our customers reviewed their access logs.

--

I worked very hard to figure out how to protect patient (and voter) privacy. Eventually conceded that deanon always beats anon, because of Big Data.

I eventually found the book Translucent Databases. Shows how to design schemas to protect PII for common use cases. Its One Weird Trick is applying proper protection of passwords (salt + hash) to all other PII. Super clever. And obvious once you're clued in.

That's just 1/2 of the solution.

The other 1/2 is policy (non technical). All data about a person is owned by that person. Applying property law to PII transmutes 3rd party retention of PII from an asset to a liability. And once legal, finance, and accounting people get involved, orgs won't hoard PII unless it's absolutely necessary.

(The legal term "privacy" means something like "sovereignty over oneself", not just the folk understanding of "keeping my secrets private.)

Re:Ask HN: Machine Learning Engineers, what do you do at work? by 1oooqooq on Sunday June 09, 2024 @12:44PM (#40625681)
> Use of health data is permitted so long as it’s for payment, treatment or operations

please, do tell me, where "estimating better pricing models to extract more profit" fit into those?

> Doctor writes script -> EHR -> Pharmacy -> Switch -> Clearinghouse —> PA Processing -> PBM/Plan makes determination

All the OP mentions happens way after the fact of those paths you described. People have already been charged. Treatment was already decided.

Re:Ask HN: Machine Learning Engineers, what do you do at work? by hamasho on Saturday June 08, 2024 @02:05AM (#40615621)
I worked on a project to analyze endoscope videos to find diseases. I examined a lot of images and videos annotated with symptoms of various diseases labeled by assistants and doctors. Most of them are really obvious, but others are almost impossible to detect. In rare cases, despite my best efforts, I couldn't see any difference between the spot labeled as a symptom of cancer and the surrounding area. There's no a-ha moment, like finding an insect mimicking its environment. No matter how many times I tried, I just couldn't see any difference.
Re:Ask HN: Machine Learning Engineers, what do you do at work? by aswegs8 on Saturday June 08, 2024 @10:50AM (#40617900)
Mind sharing how to get a foot into the field? I've got a good amount of domain knowledge from my studies in life science and rather meager experience from learning to code on my own for a few years. It seems like I cant compete with CS majors and gotta find a way to leverage my domain knowledge.
Re:Ask HN: Machine Learning Engineers, what do you do at work? by hamasho on Saturday June 08, 2024 @07:50PM (#40620917)
I'm not an expert in machine learning, but rather a web developer and data engineer helping develop a system to detect diseases from endoscopy images using the model developed by other ML engineers. And it was 5 years ago when I worked on the project, so please take it with a grain of salt.

If you want to learn machine learning for healthcare in general, it may help to start problems with tabular data like CSVs instead of images. Image processing is a lot harder, and takes a lot of time and computational power. But it's best to learn what you're interested in the most.

Anyway, first you need to be familiar with basic; Python, machine learning, and popular libraries like scikit-learn, matplotlib, numpy, and pandas. Those are tons of articles, textbooks, and videos to help you learn them.

If you grasp the basics, I think it's better to learn from actual code to train/evaluate models rather than more theories. Kaggle may be a good starting point. They host a lot of competitions for machine learning problems. There are easy competitions for beginners, and competitions and datasets in the medical field.

You can view notebooks (actual code to solve those problems well written by experts) and popular ones are very educational. You can learn a lot by reading those code, understanding concepts and how to use libraries, and modifying some code to see how it changes the result. ChatGPT is also helpful.

If you want to learn image classification, the technology used to detect objects from images and videos is called image classification and object detection. It uses CNN, one of the deep neural networks. You also need to learn basic image processing, how to train a deep neural network, how to evaluate, and libraries like OpenCV/Pillow/PyTorch/TorchVision. There are a lot of image classification competitions in the medical field on Kaggle too[0][1].

To run those notebooks, I recommend Google Colab. Image processing often uses a lot of GPUs, and you may not have GPUs, or even if you have it's difficult to set up the right environment. It's easier to use those dedicated cloud services and it doesn't cost much.

It's hard to learn, but sometimes fun, so enjoy your journey!

[0] https://www.kaggle.com/datasets/paultimothymooney/chest-xray... [1] https://www.kaggle.com/code/arkapravagupta/endoscopy-multicl...

Re:Ask HN: Machine Learning Engineers, what do you do at work? by soared on Saturday June 08, 2024 @01:14AM (#40615445)
3 hours of meetings a week, that’s incredible. Sounds like your employer understands and values your time!
Re:Ask HN: Machine Learning Engineers, what do you do at work? by visarga on Saturday June 08, 2024 @01:31AM (#40615495)
13 meetings/week, at least one full day of work wasted for me
Re:Ask HN: Machine Learning Engineers, what do you do at work? by schmookeeg on Saturday June 08, 2024 @12:44PM (#40618774)
They really do. This has been my longest tenure at any position by far and Engineer QoL is a massive part of it. Our CTO came up through the DBA/Data/Engineering Management ranks and the empathy is solidly there.

As we grow, I'm ever watchful for our metamorphosis into a big-dumb-company, but no symptoms yet. :)

Re:Ask HN: Machine Learning Engineers, what do you do at work? by constantinum on Saturday June 08, 2024 @01:40AM (#40615525)
> I tease insights out of a monstrous data lake of claims, Rx, doctor notes, vital signs

I'm curious to know the tech stack behind converting unstructured to structured data(for reporting and analysis)

Re:Ask HN: Machine Learning Engineers, what do you do at work? by dax77 on Saturday June 08, 2024 @02:44PM (#40619456)
Take a look at AWS Healthlake and AWS Comprehend Medical
Re:Ask HN: Machine Learning Engineers, what do you do at work? by nomilk on Saturday June 08, 2024 @10:28AM (#40617761)
The Dead Internet Theory says most activity on the internet is by bots [1]. The Dead Privacy Theory says approximately all private data is not private; but rather is accessible on whim by any data scientist, SWE, analyst, or db admin with access to the database.

[1] https://en.wikipedia.org/wiki/Dead_Internet_theory

Re:Ask HN: Machine Learning Engineers, what do you do at work? by htrp on Saturday June 08, 2024 @11:16AM (#40618066)
> The Dead Privacy Theory says approximately all private data is not private; but rather is accessible on whim by any data scientist, SWE, analyst, or db admin with access to the database.

I like this so much I'm definitely stealing it!

Re:Ask HN: Machine Learning Engineers, what do you do at work? by bearjaws on Saturday June 08, 2024 @12:55PM (#40618848)
Damn, I've talked about this many times at my last job (startup that went from 100k patients to ~2.5M in 5 years). I love the name Dead Privacy Theory
Re:Ask HN: Machine Learning Engineers, what do you do at work? by mr_toad on Sunday June 09, 2024 @02:32AM (#40622472)
At least more of that access is logged now. It used to be only the production databases that were properly logged, now it’s more common for every query to be logged, even in dev environments. The next step will be more monitoring of those logs.
Re:Ask HN: Machine Learning Engineers, what do you do at work? by htrp on Saturday June 08, 2024 @11:41AM (#40618271)
>Getting my models dunked on by people who can't open MS Outlook more than 3 tries out of 5, however, have a remarkable depth and insight into their chosen domain of expertise. It's rather humbling.

The people who have lasted in those roles have built up a large degree of intuition on how their domains work (or they would've done something else).

Re:Ask HN: Machine Learning Engineers, what do you do at work? by ProjectArcturis on Saturday June 08, 2024 @12:21PM (#40618603)
What business are you in that predicting health data can make you millions?
Re:Ask HN: Machine Learning Engineers, what do you do at work? by dr_kiszonka on Saturday June 08, 2024 @06:09PM (#40620499)
Insurance, health benefits.
Re:Ask HN: Machine Learning Engineers, what do you do at work? by apwheele on Sunday June 09, 2024 @12:01PM (#40625356)
The scale of health insurance claims is incredible, my company has a process that simply identifies when car insurance should pay the bill instead of medicaid/medicare post traffic accident (subrogation). Seems a minor thing right? We process right at 1 billion a year in related claims (and I don't know our US market share, maybe like 10-20%).

I am guessing every datascientist that works for a BlueCross BlueShield at individual states deals with processes that touch multiple-million dollars of claims.

We even now have various dueling systems -- one company has a model to tack on more diagnoses to push up the bill, another has a process to identify that upcoding. One company has models to auto accept/deny claims, another has an automatic prior authorization process to try to usurp that later denial stage, etc.

Re:Ask HN: Machine Learning Engineers, what do you do at work? by DontchaKnowit on Monday June 10, 2024 @01:00PM (#40635609)
Man, respectfully, sounds like you are doing the dirty immoral work of insurabce companies. AI algos for adding diagnoses to rack up the bill? That is completely disgusting. Wholly unnacceptable and if I ever find out ive been the target of such a scam I will raise holy hell.
Re:Ask HN: Machine Learning Engineers, what do you do at work? by apwheele on Tuesday June 11, 2024 @06:54AM (#40644748)
I am speaking more generally of the industry. You can look at my profile and follow the bread-trail to see whom I work for. It is not insurance, we are a client of state systems, and I work to do the opposite of what you suggest (identify fraud/waste/abuse in insurance claims).

I do not know the chances that any individual provider uses a system to identify what codes to tack onto your bill.

Re:Ask HN: Machine Learning Engineers, what do you do at work? by conkeisterdoor on Saturday June 08, 2024 @12:25PM (#40618627)
This sounds almost exactly like my day-to-day as a solo senior data engineer — minus building and training ML models, and I don't work in healthcare. My peers are all very non-technical business directors who are very knowledgeable about their domains, and I'm like a wizard who can conjure up time savings/custom reporting/actionable insights for them.

Collaborating with them is great, and has been a great exercise in learning how to explain complex ideas to non-technical business people. Which has the side effect of helping me get better at what I do (because you need a good understanding of a topic to be able to explain it both succinctly and accurately to others). It has also taught me to appreciate the business context and reasoning that can drive decisions about how a business uses or develops data/software.

Re:Ask HN: Machine Learning Engineers, what do you do at work? by kvakerok on Saturday June 08, 2024 @11:15PM (#40621745)
HIPAA your left foot because nobody reads fine print anymore and signs their soul away for a one-time $60 discount.