Shares of BigBear.ai (BBAI -15.16%) are falling hard on Tuesday, down 20% as of 1:36 p.m. ET. The drop comes as the S&P 500 and Nasdaq Composite has gained 0.9% and 1.1%, respectively.

The defense-focused artificial intelligence company reported its second-quarter earnings Monday after market close, falling well short of Wall Street's expectations.

BigBear.ai Q2 earnings collapse

BigBear reported a $0.71 loss per share on $32.5 million in revenue, missing analyst forecasts by a wide margin and representing an 18% year-over-year loss. Consensus estimates for the quarter had been for a $0.06 loss on $40.6 million in revenue.

The company also lowered its full-year revenue guidance to between $125 million and $140 million, down significantly from the previous range of $160 million to $180 million. CEO Kevin McAleenan cited disruptions in the company's federal contracts as the primary cause, though he did point to future contract growth potential from newly authorized Department of Homeland Security (DHS) funding.

A drone fires missiles in the sky.

Image source: Getty Images.

While the big tech firms like Microsoft and Alphabet that power AI had blowout recent quarters, BigBear is the latest end-user AI company to show weakness. C3.ai also missed expectations by a mile, though Palantir still continues to fire on all cylinders.

BigBear.ai remains a risky bet

BigBear's sales trajectory is concerning, and its losses are growing. The company has a non-negligible amount of debt already and negative cash flows. Despite this, the stock still carries a hefty premium, granted not nearly as high as Palantir's, but still significant for its current sales and earnings trajectories. I would avoid the stock.