Adaptive Stochastic Optimization Techniques with Applications