'About seven billion male chicks - not wanted for meat or eggs - are killed around the world each year, usually in shredding machines or by gas.' This is really wasteful and cruel.
There are genetic tests that can be done on eggs to sex them. But they are not widespread yet due to the expense and complicated process they require.
In 2018 it was discovered that looking at the blood vessels in human eyes can be used to detect gender. This was not something widely expected by experts in looking at retinal scans. 'gender (area under the receiver operating characteristic curve (AUC) = 0.97)'.
Do you know anyone with the necessary chickens and interest to try make up such a dataset?