0
$\begingroup$

I have a medical dataset that contains maternal and foetal data during pregnancy. There are some missing values in the dataset that I am unsure how to handle.

Here is a short example of my dataset:

id    insulin    ultrasound_AC
0     33         2651 
1                2743
2     29  

Patient 0 was prescribed insulin at 33 weeks gestation, patient 2 at 29 weeks. Whereas patient 1 was not prescribed insulin, hence the missing value. Similarly, patient 0's foetus had an ultrasound abdominal circumference measurement of 2651, patient 1 had a measurement of 2743, whereas patient 2 has a missing value for this feature, probably due to not attending this ultrasound appointment.

I am wondering how to handle these missing values.

In the case of the insulin feature, imputing missing values here would be incorrect, as the patients with missing values were never prescribed insulin. I could use SimpleImputer to fill all missing values with zeros, or would this be interpreted by a ML model as though the patient was prescribed insulin from the start of pregnancy?

As for the ultrasound abdominal circumference measurement, I could impute missing values using some imputation method, such as KNN Imputation, but with the data being medical, I am unsure if this is the best method as I do not want to modify the data too much.

Please advise!

$\endgroup$

1 Answer 1

0
$\begingroup$

In your case missing value simply implies that insulin was not given. To separate and handle it i think we can do missing value imputation to 0. I dont think any problem with that.This will work for insulin.

For Ultrasound AC i think you can do two things, you can use KNN to impute values.

$\endgroup$
2
  • $\begingroup$ I have considered filling missing values with '0' for the insulin feature, however could this be interpreted by a ML model as though the patient was prescribed insulin from the start of pregnancy? $\endgroup$
    – sums22
    Feb 9 at 12:47
  • 1
    $\begingroup$ Its should be.. Also you can create a flag too indicate precribed or not. $\endgroup$ Feb 9 at 12:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.