In the medical field, some specialized applications are currently being used to treat various ailments. These activities are being carried out with extra care, especially for cancer patients. Physicians are seeking the help of technology to help diagnose cancer, its dosage, its current status, cancer classification, and appropriate treatment. The machine learning method developed by an artificial intelligence is proposed here in order to effectively assist the doctors in that regard. Its design methods obtain highly complex cancerous inputs and clearly describe its type and dosage. It is also recommending the effects of cancer and appropriate medical procedures to the doctors. This method ensures that a lot of doctors’ time is saved. In a saturation point, the proposed model achieved 93.31% of image recognition, 6.69% of image rejection, 94.22% accuracy, 92.42% of precision, 93.94% of recall rate, 92.6% of F1-score, and 2178 ms of computational speed. This shows that the proposed model performs well while compared with the existing methods.