A Sputum AFB (Acid-Fast Bacilli) Test is a diagnostic test used to detect the bacteria that cause tuberculosis (TB) and other mycobacterial infections in the lungs. It examines thick mucus (sputum) coughed up from the lungs under a microscope or grown in a culture