Inclusive and accurate clinical diagnostics using intelligent computation and smartphone imaging