The cavitation is a complex phenomenon which is microcosmic, transient, stochastic and multiphased. The extreme condition and related cavitation effects which the collapsed cavities generate will affect the liquid-vapor system greatly. In this article, we accurately simulate heterogeneous cavitation in liquid system with single component multiphase lattice Boltzmann model and successfully reproduce the complete cavitation process of a bubble: inception, growth and collapse. The relationship between the radius of bubble seed and cavitation for a specified tension has been investigated by lattice Boltzmann method simulations. The simulations show excellent agreement with energy considerations based on interface formation and bubble expansion.