I've got this question here: For example, if it is necessary to predict a disease using both image data and some numeric data, so that the features would be like:
- feature 1: image of the disease. in shape: (batch_size, width,height)
- feature 2: numeric data about the patient(age,height, sex, country, salary...) in shape: (batch_size,number_of_numeric_features)
and the output of the model should be 0/1, 0 is healthy, 1 is sick.
I know one way is to use the flat feature as a shape: (width*height+number_of_numeric_feature) in this case the advantage of CNN in image classification won't be utilized. (a feedforward network)
So my question is: is there a best solution to combine image feature and numeric feature using CNN? Would adding numeric features as image pixels in one channel of the CNN feature helpful? in such case the positional distance of the numeric feature as pixels won't make any sense since they don't have relationship in distance of two pixels.