Cross-layer noise analysis in smart digital pixel sensors with integrated deep neural network