A medicament aerosol delivery system, comprising: an aerosol generator that aerosolizes a fluid medicament for delivery to a patient as a patient inhales; a pump coupled to the aerosol generator that pumps the fluid medicament to the aerosol generator; a breath sensor that emits a signal as the patient breathes; and a controller coupled to the aerosol generator, the pump, and the breath sensor, wherein the controller receives the signal from the breath sensor, controls a flow of fluid medicament to the aerosol generator in response to the signal, and controls the aerosol generator to start aerosolizing the fluid medicament before the inhalation cycle, in which the controller comprises a processor coupled to the breath sensor and configured to predict when the patient will inhale by monitoring a breath cycle of the patient, wherein the pump couples to the aerosol generator with a line that is primed with the fluid medicament, characterized in that the controller is configured to use tracked data to predict when subsequent inhalations will begin and to direct the pump to deliver fluid from the fluid source to the aerosol generator prior to an inhalation, and to cause the aerosol generator to begin to aerosolize the fluid medicament at a predetermined time period before predicted patient inhalation, and the predetermined time period is between 1% and 30% with respect to the time period representing the duration of inhalation, the controller is configured to cause aerosol generation to stop 1% to 20% before the end of inhalation with respect to the time period representing the duration of inhalation, and in that the controller is configured to change aerosol generation periods (198, 202) depending on the type of treatment. an aerosol generator that aerosolizes a fluid medicament for delivery to a patient as a patient inhales; a pump coupled to the aerosol generator that pumps the fluid medicament to the aerosol generator; a breath sensor that emits a signal as the patient breathes; and a controller coupled to the aerosol generator, the pump, and the breath sensor, wherein the controller receives the signal from the breath sensor, controls a flow of fluid medicament to the aerosol generator in response to the signal, and controls the aerosol generator to start aerosolizing the fluid medicament before the inhalation cycle, in which the controller comprises a processor coupled to the breath sensor and configured to predict when the patient will inhale by monitoring a breath cycle of the patient, wherein the pump couples to the aerosol generator with a line that is primed with the fluid medicament, characterized in that the controller is configured to use tracked data to predict when subsequent inhalations will begin and to direct the pump to deliver fluid from the fluid source to the aerosol generator prior to an inhalation, and to cause the aerosol generator to begin to aerosolize the fluid medicament at a predetermined time period before predicted patient inhalation, and the predetermined time period is between 1% and 30% with respect to the time period representing the duration of inhalation, the controller is configured to cause aerosol generation to stop 1% to 20% before the end of inhalation with respect to the time period representing the duration of inhalation, and in that the controller is configured to change aerosol generation periods (198, 202) depending on the type of treatment.