The modeling different data behaviour like the human development index as a function of life expectancy, the water capacity of a reservoir with respect to a certain threshold, or the percentage of death rate of an infant before his or her first birthday, are situations which a researcher can face. It is noteworthy that these problems may have in common data with excessive zeros and ones. Then, it is essential to have flexible and accuracy models to fit data with these features. Given the relevance of data modeling with excessive zeros and ones, in this paper, a mixture of discrete and continuous distributions is proposed for modeling data with these behaviors. Additionally, the Unit-Birnbaum-Saunders distribution is considered with the aim to explain the continuous component of the model and the features of a Bernoulli process. The estimation of the parameters is based on the maximum likelihood method. Observed and expected information matrices are derived, illustrating interesting aspects of the likelihood approach. Finally, with practical applications by using real data we can show the advantage of using our proposal concerning the inflated beta model.