An approach for preparing a vaccine using ultraviolet radiation is described. Aspects of this approach involve multiple iterations of inactivation of the vaccine using an ultraviolet radiation source at a set of different wavelengths and dosages. A recognition test of the vaccine using the set of different wavelengths and dosages is performed after the multiple iterations of inactivation. A controller compares results from the inactivation test and the recognition test to determine an area of acceptable radiation dosages and wavelengths generated from the ultraviolet radiation source that irradiate the live organisms without affecting efficacy and safety of the vaccine. The area of acceptable ultraviolet radiation dosages and wavelengths is representative of a difference between an ultraviolet radiation dosage that is required for inactivation and an ultraviolet radiation dosage that leads to a loss of recognition.