I want to use a Bayesian approach to estimate the parameter $p$$\theta$ of a binomial distribution $\textsf{Binomial}(\theta,n)$ with the number of Bernoulli experiments $x_i \in \{0,1\}$ being known and fixed to $n$. Choosing my likelihood to be binomial and my prior to be uniform in $[0,1]$, my posterior $f(p|x_1,\dots,x_n)$ becomes a beta distribution.
In the textbook example, the binomial likelihood only takes the sum of positive vs. negative outcomes of $x_i$ into account: \begin{equation} f(x|\theta) = \theta^{\sum x_i} (1-\theta)^{n-\sum x_i} \end{equation}
$f(x|p) = p^{\sum x_i} (1-p)^{n-\sum x_i}$ Together with a uniform prior $f(\theta)=\textsf{Uniform}(0,1)$, the posterior becomes the Beta distribution \begin{equation} f(\theta|s) = \textsf{Beta}(\theta|s+1,n-s+1) . \end{equation} , where $s=\sum x_i$. Unfortunately, $x_i$ is not directly observable. Instead, we are given $\pi_i$ as features to e.g. a neural network, which then provides a probabilistic mapping $f(x_i|\pi_i)$. This probability represents uncertainty about the true, latent value $x_i$.
How can I introducewe incorporate this uncertainty about the outcome $x_i$data into mythe estimate? E.g. assumeif $x_i$ is determined by a neural network$f(x_i|\pi_i)=0.51\ \forall\ 0\leq\ i<n$, assigning probabilities $p(x_i=1|input)$ andwe would expect the MAP estimate of $p(x_i=0|input) = 1-p(x_i=1|input)$$\theta$ to each Bernoulli outcomebe a lot further off from $1$ than if $f(x_i|\pi_i)=0.91$ throughout. How can I avoid discarding this potentially important information?