2  RELATED WORKS 
Recently,  several  researchers  are  trying  to  develop 
and find suitable solutions and strategies to stop the 
outbreak of  the  coronavirus  disease.  Data  scientists 
suggested some work for predicting and forecasting 
new  positive  Covid-19  cases  using  ML  and  DL 
techniques.  DL  and  ML  indeed  provide  effective 
tools  that  learn  trends  from  collected  data,  among 
them the recurrent neural network LSTM which was 
used in a lot of work as well as in this case study. 
Authors  in  (Chimmula  et  al.,  2020)  predict  the 
possible ending point of coronavirus in Canada. They 
apply the LSTM algorithm on the available data until 
March  13,  2020  and  they  give  predictions  for  2 
successive  days  from  the  2nd  to  14th  day.  The 
findings of this work expect that the possible stopping 
time of Coronavirus in Canada could be around June 
2020,  and  a  small  number  of  infections  may  be 
reported  until  December  2020.  Besides,  the  aim  in 
(Arora et al., 2020) was to predict the daily and the 
weekly  number  of  positive  cases  in  32  states  and 
union  territories  of  India.  Four  deep  learning 
techniques:  LSTM,  deep  LSTM,  convolutional 
LSTM,  and  bidirectional  LSTM  were  used.  The 
bidirectional  LSTM  gives  the  best  performance 
evaluated using the MAE metric. Moreover, another 
research in (Tomar et al., 2020) predicts the number 
of COVID-19 cases, recovered cases,  and deceased 
cases during 30 days ahead in India using the LSTM 
model  and  curve  fitting.  Authors  in  (Yang  et  al., 
2020)  apply  a  modified  Susceptible-Exposed-
Infectious-Removed  (SEIR)  model  to  derive  the 
epidemic  curve  and  artificial  intelligence  to  predict 
COVID-19 epidemic trends while giving it peaks and 
sizes in China. Author in (Bouhamed, 2020) develops 
DL  nested  sequence  prediction  models  with  also 
LSTM  to  predict  the  cumulative  case  number  and 
recoveries in 79 countries. The models use the dataset 
until March 13,  2020, and  they are evaluated using 
the R squared metric. The results were encouraging 
for  the  newly  infected  cases.  Predictions  of 
cumulative number of deaths, daily number of new 
cases worldwide, and cumulative number of cases in 
Europe  and  middle  east  regions  were  given  in 
(Direkoglu et al., 2020). This research provides the 
predictions  of  the  next  ten  days.  It  is  based  on  the 
reported time series data of Covid-19 and the LSTM 
model  with  the  dropout  layer.  The  obtained  results 
were  evaluated  by  the  RMSE  and  were  considered 
promising since they were able to predict the possible 
scenarios  regionally  and  globally.  In  the  same 
manner,  authors  in  (Yan  et  al.,  2020)  predict  the 
confirmed  cases  using  the  LSTM  algorithm.  They 
compared  the  deviation  between  LSTM  results  and 
the  results  of  the  digital  prediction  models  (like 
Logistic and Hill equations) with the real data. They 
found  that  the  proposed  model  has  a  smaller 
prediction deviation and better fitting effect. 
A hybrid model is applied in (Zandavi et al., 2020) 
to forecast the number of cases and deaths in the top 
ten most affected countries in Australia. This model 
combines  the  algorithm  LSTM  with  dynamic 
behavioural  models.  The  proposed  approach 
considers  the  effect  of  multiple  factors,  and  the 
parameters are optimized using the genetic algorithm. 
The results showed that the hybrid model outperforms 
the  LSTM  model.  From  another  angle,  authors  in 
(Alakus et  al.,  2020)  use  laboratory data  to  predict 
which patients are likely to receive coronavirus. Their 
predictive model based on DL approaches identified 
patients that have COVID-19 with good accuracy.  
In  addition,  three  approaches  were  applied  in 
(Kırbaş et al., 2020) to predict the confirmed cases in 
Europe: Autoregressive Integrated Moving Average 
(ARIMA), Nonlinear Autoregressive neural network 
(NARNN)  and  Long-Short  term  Memory  (LSTM). 
The LSTM model was more efficient for forecasting 
14  future  days.  It  expects  that  the  rate  of  positive 
cases  will  decrease  slightly  in  many  countries.  In 
(Ayyoubzadeh  et  al.,  2020)  LSTM  and  Linear 
Regression (LR) models are suggested to forecast the 
number  of  positive  COVID-19  cases  in  Iran.  The 
results showed that LR predicted the incidence with 
an RMSE of 7.5 and LSTM with an RMSE of 27.18.  
These works and predictions have been performed 
for different purposes under the scope of COVID-19 
outbreak forecasting and would help the governments 
to  face  the  COVID-19  pandemic  and  help  the 
authorities and decision-makers to manage and deal 
with  their  strategies.  The  LSTM  model  used 
according  to  different  learning  approaches  was 
seeming to be promising in most of them. However, 
it  would  be  interesting  to  explore  more  approaches 
using  this  model  in  order  to  reach  better  accuracy. 
Besides,  no  study  with  accurate  predictions,  has 
considered the case of the outbreak of COVID-19 in 
Morocco  using  LSTM.  Only  three  research 
contributions  consider  the  Morocco’s  case  while 
using  LSTM-based  models  (Ayris  et  al.,  n.d.; 
Bouhamed, 2020; Ksantini et al., 2020). In (Ayris et 
al.,  n.d.),  authors  use  DSPM  (Deep  Sequential 
Prediction  Model)  which  is  a  stacked  LSTM  to 
predict  cumulative  number  of  confirmed  cases  in 
different  countries  in  the  world,  among  them 
Morocco. Note that the obtained average MAE Error 
Rate  was  388.43  which  is  not  a  good  result  if  we 
consider  Morocco’s  case.  We  note  that  the  studied